JustinChase Posted November 8, 2015 Share Posted November 8, 2015 I've had some USB devices (bluetooth keyboard, wireless mouse, wireless remote control) passed thru to my windows 8.1 VM for some time now. Yesterday I updated to unRAID 6.1.3 (from 6.1.2). This morning I was unable to control the VM with either the mouse or the keyboard. This has happened occasionally in the past, it just sort of freezes up and I have to reboot the VM. So, I did that, and after restarting the windows VM, I'm still unable to control windows with any of these devices. I then connected to the VM via remote desktop and it seems the bluetooth is not enabled inside the windows VM, and I've got a yellow exclamation in device manager (I think this might be for the remote control, which hasn't worked in quite some time actually). I see a couple of mouse and keyboard items listed in device manager, but they appear generic, so I'm not sure if they are actually my devices. So, I am wondering how I might verify if the devices are actually being passed thru to windows. I can see the devices in the tools section of unRAID, but there doesn't seem to be anything I can find which shows what is being passed to another VM. Here is the XML of the windows VM, in case it offers any clues... <domain type='kvm' id='1' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> <name>Windows 8</name> <uuid>cfb4d0c9-bbc1-f08e-4cf8-0be83e2e4853</uuid> <description>Windows 8 with nVidia 550ti passthru</description> <metadata> <vmtemplate name="Custom" icon="windows.png" os="windows"/> </metadata> <memory unit='KiB'>3145728</memory> <currentMemory unit='KiB'>2097152</currentMemory> <memoryBacking> <nosharepages/> <locked/> </memoryBacking> <vcpu placement='static'>2</vcpu> <cputune> <vcpupin vcpu='0' cpuset='0'/> <vcpupin vcpu='1' cpuset='1'/> </cputune> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-q35-2.3'>hvm</type> </os> <features> <acpi/> <apic/> </features> <cpu mode='host-passthrough'> <topology sockets='1' cores='2' threads='1'/> </cpu> <clock offset='localtime'> <timer name='rtc' tickpolicy='catchup'/> <timer name='pit' tickpolicy='delay'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='writeback'/> <source file='/mnt/disks/KINGSTON_SNVP325S264GB_40BS106CT72Z-part1/Windows8.1.qcow2'/> <backingStore/> <target dev='hdc' bus='virtio'/> <boot order='1'/> <alias name='virtio-disk2'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/backup/Programs/WindowsISOs/en_windows_8_1_x64_dvd_2707217.iso'/> <backingStore/> <target dev='hda' bus='sata'/> <readonly/> <boot order='2'/> <alias name='sata0-0-0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/backup/Programs/WindowsISOs/virtio-win-0.1.109.iso'/> <backingStore/> <target dev='hdb' bus='sata'/> <readonly/> <alias name='sata0-0-1'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <controller type='usb' index='0' model='ich9-ehci1'> <alias name='usb'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <alias name='usb'/> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0' multifunction='on'/> </controller> <controller type='sata' index='0'> <alias name='ide'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/> </controller> <controller type='pci' index='0' model='pcie-root'> <alias name='pcie.0'/> </controller> <controller type='pci' index='1' model='dmi-to-pci-bridge'> <alias name='pci.1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/> </controller> <controller type='pci' index='2' model='pci-bridge'> <alias name='pci.2'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/> </controller> <controller type='virtio-serial' index='0'> <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/> </controller> <interface type='bridge'> <mac address='00:16:3e:c8:c8:c8'/> <source bridge='br0'/> <target dev='vnet0'/> <model type='virtio'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/0'/> <target port='0'/> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/0'> <source path='/dev/pts/0'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <channel type='unix'> <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/Windows 8.org.qemu.guest_agent.0'/> <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/> <alias name='channel0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <hostdev mode='subsystem' type='usb' managed='yes'> <source> <vendor id='0x045e'/> <product id='0x0745'/> <address bus='1' device='9'/> </source> <alias name='hostdev0'/> </hostdev> <hostdev mode='subsystem' type='usb' managed='yes'> <source> <vendor id='0x0a12'/> <product id='0x0001'/> <address bus='1' device='8'/> </source> <alias name='hostdev1'/> </hostdev> <hostdev mode='subsystem' type='usb' managed='yes'> <source> <vendor id='0x147a'/> <product id='0xe03e'/> <address bus='1' device='7'/> </source> <alias name='hostdev2'/> </hostdev> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x05' function='0x0'/> </memballoon> </devices> <qemu:commandline> <qemu:arg value='-device'/> <qemu:arg value='ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=2,chassis=1,id=root.1'/> <qemu:arg value='-device'/> <qemu:arg value='vfio-pci,host=01:00.0,bus=pcie.0,multifunction=on,x-vga=on'/> <qemu:arg value='-device'/> <qemu:arg value='vfio-pci,host=01:00.1,bus=pcie.0'/> </qemu:commandline> </domain> Here is the devices list... 00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06) 00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06) 00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06) 00:14.0 USB controller: Intel Corporation 9 Series Chipset Family USB xHCI Controller 00:16.0 Communication controller: Intel Corporation 9 Series Chipset Family ME Interface #1 00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (2) I218-V 00:1a.0 USB controller: Intel Corporation 9 Series Chipset Family USB EHCI Controller #2 00:1b.0 Audio device: Intel Corporation 9 Series Chipset Family HD Audio Controller 00:1c.0 PCI bridge: Intel Corporation 9 Series Chipset Family PCI Express Root Port 1 (rev d0) 00:1c.3 PCI bridge: Intel Corporation 9 Series Chipset Family PCI Express Root Port 4 (rev d0) 00:1c.4 PCI bridge: Intel Corporation 9 Series Chipset Family PCI Express Root Port 5 (rev d0) 00:1c.6 PCI bridge: Intel Corporation 9 Series Chipset Family PCI Express Root Port 7 (rev d0) 00:1d.0 USB controller: Intel Corporation 9 Series Chipset Family USB EHCI Controller #1 00:1f.0 ISA bridge: Intel Corporation 9 Series Chipset Family Z97 LPC Controller 00:1f.2 SATA controller: Intel Corporation 9 Series Chipset Family SATA Controller [AHCI Mode] 00:1f.3 SMBus: Intel Corporation 9 Series Chipset Family SMBus Controller 01:00.0 VGA compatible controller: NVIDIA Corporation GF116 [GeForce GTX 550 Ti] (rev a1) 01:00.1 Audio device: NVIDIA Corporation GF116 High Definition Audio Controller (rev a1) 03:00.0 PCI bridge: ASMedia Technology Inc. Device 1184 04:01.0 PCI bridge: ASMedia Technology Inc. Device 1184 04:03.0 PCI bridge: ASMedia Technology Inc. Device 1184 04:05.0 PCI bridge: ASMedia Technology Inc. Device 1184 04:07.0 PCI bridge: ASMedia Technology Inc. Device 1184 05:00.0 SATA controller: Marvell Technology Group Ltd. Device 9215 (rev 11) 06:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02) 07:00.0 Multimedia controller: Philips Semiconductors SAA7160 (rev 02) 08:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02) 09:00.0 VGA compatible controller: NVIDIA Corporation GK208 [GeForce GT 720] (rev a1) 09:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1) 0a:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller Quote Link to comment
dlandon Posted November 8, 2015 Share Posted November 8, 2015 Try this: http://lime-technology.com/forum/index.php?topic=41922.0 Quote Link to comment
jonp Posted November 8, 2015 Share Posted November 8, 2015 Try this: http://lime-technology.com/forum/index.php?topic=41922.0 Actually I'm pretty interested to see how that works out. I haven't used Q35 in quite a while, so I'm not sure how the nec-xhci controller will work out there. Should be fine, but honestly not sure. Justin, you will need to remove the two existing USB virtual controllers in your XML: <controller type='usb' index='0' model='ich9-ehci1'> <alias name='usb'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <alias name='usb'/> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0' multifunction='on'/> </controller> And replace that with this: <controller type='usb' index='0' model='nec-xhci'/> Quote Link to comment
JustinChase Posted November 9, 2015 Author Share Posted November 9, 2015 When I tried to run the VM, I got this... internal error: Did not find USB device 45e:745 Quote Link to comment
jonp Posted November 9, 2015 Share Posted November 9, 2015 When I tried to run the VM, I got this... internal error: Did not find USB device 45e:745 Go check the System Devices page. Does that device show up (with a 0 in front of the 45e) in your USB devices list? Looks like it's not attached to the system. Maybe when you rebooted, the device lost it's connection internally somehow? Quote Link to comment
JustinChase Posted November 10, 2015 Author Share Posted November 10, 2015 No, it's not there. I'll reboot the server now and see if that helps get me running again. Quote Link to comment
jonp Posted November 10, 2015 Share Posted November 10, 2015 No, it's not there. I'll reboot the server now and see if that helps get me running again. You could probably just have tried to unplug and plug the USB device in again to see if that worked. Quote Link to comment
syntaxx Posted November 10, 2015 Share Posted November 10, 2015 I think I have experience it. If you passthrough just the usb device it will work only on startup of the VM. However, if you pull it and you plugged it in again it will not work. You need to passthrough the entire usb controller to make it work. Quote Link to comment
JustinChase Posted November 12, 2015 Author Share Posted November 12, 2015 I forgot to report back, rebooting the server did the trick, the windows VM sees the devices again, and is running fine now. I'll report back if the issue presents again. thanks for the help. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.