October 10, 20178 yr My Usb 3.0 card has been working just fine for several weeks being passed through to a windows VM. Today it disappeared slowly, first one device gone, then another. Now there is no sign of it in the VM, although the vfio-pci line is still present on the flash drive, and it still seems able to be seen in the libvirt hotplug drop down, although that does not work to pass devices through to the VM. How to track this down? unraid-diagnostics-20171009-2107.zip Edited October 25, 20178 yr by btrcp2000 fixed link
October 10, 20178 yr Oct 9 19:50:10 UNRAID kernel: usb 2-1.4: new high-speed USB device number 7 using ehci-pci Oct 9 19:50:22 UNRAID kernel: usb 2-1.4: reset high-speed USB device number 7 using ehci-pci Oct 9 19:50:22 UNRAID kernel: usb 2-1.4: reset high-speed USB device number 7 using ehci-pci Oct 9 19:50:22 UNRAID kernel: usb 2-1.4: USB disconnect, device number 7 Oct 9 19:50:24 UNRAID kernel: usb 2-1.4: new high-speed USB device number 8 using ehci-pci Oct 9 19:50:24 UNRAID kernel: usb 2-1.4: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 64 Oct 9 19:50:24 UNRAID kernel: usb 2-1.4: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64 Oct 9 19:51:30 UNRAID kernel: usb 2-1.4: USB disconnect, device number 8 Oct 9 19:51:45 UNRAID kernel: usb 2-1.4: new high-speed USB device number 9 using ehci-pci Oct 9 19:51:55 UNRAID kernel: usb 2-1.4: reset high-speed USB device number 9 using ehci-pci Oct 9 19:51:56 UNRAID kernel: usb 2-1.4: reset high-speed USB device number 9 using ehci-pci Oct 9 19:51:56 UNRAID kernel: usb 2-1.4: USB disconnect, device number 9 this is the part of your syslog that makes me wonder. usb resets and then it detects a new usb device, resets then finds another new usb device. i wonder if your bios settings for usb timeouts can be adjusted?
October 10, 20178 yr Author That time of the evening was me plugging/unplugging different things trying to figure it out. It would have disappeared sometime much earlier than that today
October 10, 20178 yr Author From bad to worse. I removed the vfio-pci line and rebooted thinking I would try reinstalling and add it back. Now cannot be reached via webserver and the shares aren't there.
October 10, 20178 yr What USB 3.0 card is it? Nevermind I see it in your diagnostics. Don't know about VIAs so no help here. I have seen others post of lots of resets with the Frisco Logic. Mine sure has problems on one of my unRAID servers. I was passing it through to the VM and every couple of weeks OR LESS it locks up the whole box. I just installed a NEC/Renesas controller to replace it tonight and will see if I have eliminated the problem in a few weeks one way or the other. Edited October 10, 20178 yr by BobPhoenix
October 11, 20178 yr Author another weird thing is that the syslinux config is still lacking the line that i deleted, but the card is now working inside the VM anyway
October 11, 20178 yr Evidently like MB nics you don't need to stub them to pass the card through to the VM. unRAID is doing everything necessary to pass it through to the VM. This works and worked well for me on my 4 nic MB when I needed to use one of the 4 for unRAID and the other 3 in VMs. It could cause problems doing it this way when you restart the VM you could see problems that don't show up on the first boot. I never experienced any with my nics and you may not either but it generally a better idea (I believe anyway) to stub the cards you are going to pass through to a VM.
October 25, 20178 yr Author Built a brand new Win10 Vm a few days ago and just saw the same VIA USB card disappear for no reason again. Going to try removing the vfio line again. unraid-diagnostics-20171025-1017.zip EDIT: aaaaaaaaaaaaand, it's back like nothing ever happened just by removing the vfio line from Flash. I guess it doesn't have to be stubbed. I think my link in the first post was broken. For anyone searching for this same problem, it is an Inateck PCI-E to USB 3.0 5-Port PCI Express Card and 15-Pin Power Connector, Mini PCI-E USB 3.0 Hub Controller Adapter, with Internal USB 3.0 20-PIN Connector - Expand Another Two USB 3.0 Ports. Seems to work well except for this weirdness, but I haven't tested 3.0 speeds yet, no need. Edited October 25, 20178 yr by btrcp2000 updated with solution
October 25, 20178 yr You usually don't have to stub a USB card. It just won't appear in the other devices area to select until you add it to the XML manually. Then, if you un-check it and save the setup you can't just go back in and check it again but rather you'd have to add it to the xml manually again.
October 25, 20178 yr Author Maybe I'm using the word "stub" incorrectly. All I ever did was add the vfio pcie line per the instructions (which maybe i never had to do), then checked the box inside the VM config. But I have never manually edited an XML file for this. Oh well, it works.
October 26, 20178 yr No, you're using it right. I'm just saying that stubbing the card won't affect it working or not. If you take out the stub line and uncheck the box in the VM config then the card would disappear from the VM setup window and you couldn't check it again. All the stubbing does is make it appear in the setup, not make it so you can use it. But,, you could add it back in by manually editing the XML for the VM without stubbing it and then it appears checked on the setup page.
Archived
This topic is now archived and is closed to further replies.