<div dir="ltr"><div><div><div><div><div><div>Hello,<br><br></div>I've been running virt-manager built from master for a while now, and I can't get usb redirection or copy-and-paste between guest and host to work. I'm using xen, and qemu (upstream) is also built from master (using live ebuilds on gentoo). Guest has virtio/qemu-ga/vdagent installed, but all relevant devices (for example, virtio-serial) appear hidden in the guest's device manager (guest is windows). When displaying the properties panel for such devices, I get a status along the lines of "device is currently not connected to the computer".<br><br></div>What I've done is set up a spice display for the guest, which also adds a virtio-serial device. I've had to add the spice channel manually. I then added spice usb redirection, and configured a detected usb device for passthrough. Here's the resulting XML config:<br><br><a href="http://pastebin.com/MGuh45fC">http://pastebin.com/MGuh45fC</a><br><br></div>And here's the resulting qemu command line as reported by ps aux:<br><br>/usr/libexec/xen/bin/qemu-system-i386 -xen-domid 2 -chardev socket,id=libxl-cmd,path=/run/xen/qmp-libxl-2,server,nowait -no-shutdown -mon chardev=libxl-cmd,mode=control -chardev socket,id=libxenstat-cmd,path=/run/xen/qmp-libxenstat-2,server,nowait -mon chardev=libxenstat-cmd,mode=control -nodefaults -name win10 -vnc none -display none -k en-us -serial pty -spice port=5900,tls-port=0,addr=0.0.0.0,password=s3kr1t,agent-mouse=on,disable-copy-paste -device qxl-vga,vram_size_mb=64,ram_size_mb=64 -boot order=c -usb -usbdevice tablet -smp 4,maxcpus=4 -net none -machine xenfv -m 3968 -drive file=/dev/zvol/tank/windows,if=scsi,bus=0,unit=0,format=raw,readonly=off,cache=writeback<br><br></div>Also I can't get a second qxl device to work (as per the instructions for dual monitor on windows, one has to create two devices and not set the number of heads to two), but this is not as critical as usbredir and copy/paste.<br><br></div>Is this a bug? Is there something missing from my configuration? Any help would be greatly appreciated. Thanks.<br><br></div><div>Here's a list of relevant packages installed, along with enabled USE flags. If you're not familiar with gentoo jargon, -9999 means live version (built from git master, usually) and USE flags refer to configuration options enabled during the configure stage before building. Also on a sidenote, KVM support is disabled in the kernel, in case this can trigger the disabling of functionality when building relevant packages...<br><br>[ebuild   R    ] app-emulation/spice-protocol-0.12.10::gentoo  0 KiB<br>[ebuild   R    ] sys-firmware/seabios-1.7.5-r1::gentoo  USE="binary seavgabios" 0 KiB<br>[ebuild   R    ] app-emulation/spice-0.12.6-r2::gentoo  USE="-libressl -sasl -smartcard -static-libs" 0 KiB<br>[ebuild   R    ] net-misc/spice-gtk-0.30-r1::gentoo  USE="dbus gtk3 introspection (policykit) pulseaudio python usbredir -gstreamer -lz4 -sasl -smartcard -static-libs -vala -webdav" PYTHON_SINGLE_TARGET="python2_7 -python3_4" PYTHON_TARGETS="python2_7 python3_4" 0 KiB<br>[ebuild   R   *] app-emulation/virt-manager-9999::gentoo  USE="gtk (policykit) -debug -gnome-keyring -sasl" LINGUAS="en_GB -as -bg -bn_IN -bs -ca -cmn -cs -da -de -es -fi -fr -gu -hi -hr -hu -is -it -ja -kn -ko -ml -mr -ms -nb -nl -or -pa -pl -pt -pt_BR -ro -ru -sk -sr -sr@latin -sv -ta -te -tr -uk -vi -zh_CN -zh_TW" PYTHON_TARGETS="python2_7" 0 KiB<br>[ebuild   R   *] app-emulation/qemu-9999::local  USE="aio alsa caps curl fdt filecaps gtk jpeg lzo ncurses nls opengl png pulseaudio sdl seccomp spice threads usb usbredir uuid vhost-net vnc xattr xen -accessibility -bluetooth -debug -glusterfs -gnutls -gtk2 -infiniband -iscsi -nfs -numa -pin-upstream-blobs -python -rbd -sasl -sdl2 (-selinux) -smartcard -snappy -ssh -static -static-softmmu -static-user -systemtap -tci {-test} -vde -virtfs -vte -xfs" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="x86_64 -aarch64 -alpha -arm -cris -i386 -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -moxie -or32 -ppc -ppc64 -ppcemb -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -unicore32 -xtensa -xtensaeb" QEMU_USER_TARGETS="-aarch64 -alpha -arm -armeb -cris -i386 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -or32 -ppc -ppc64 -ppc64abi32 -ppc64le -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -tilegx -unicore32 -x86_64" 0 KiB<br>[ebuild   R   *] app-emulation/xen-tools-9999::local  USE="hvm pam python screen system-qemu system-seabios -api -custom-cflags -debug -doc -flask -ocaml -ovmf -pygrub -qemu -static-libs" PYTHON_TARGETS="python2_7" 0 KiB<br>[ebuild   R   *] app-emulation/libvirt-9999::local  USE="caps libvirtd macvtap nls (policykit) qemu systemd udev vepa xen -apparmor -audit -avahi -firewalld -fuse -glusterfs -iscsi -lvm -lxc -nfs -numa -openvz -parted -pcap -phyp -rbd -sasl (-selinux) -uml -virt-network -virtualbox (-wireshark-plugins)" 0 KiB<br><br></div><div>Best regards,<br></div><div>George<br></div></div>