Problem passing through a USB external hard drive

Jack_9846

Member
Nov 23, 2017
22
1
8
39
Hello all, I am having a problem passing a USB external hard drive through to a Windows Server 2016 KVM, on a machine running PVE 5.1-38, kernel version 4.13.8-3. The device is USB 2.0.

Using both the web interface (by going to the VM and using Add->USB device and adding the device in question, then restarting the KVM), and via the terminal with:

qm set 804 -usb0 host=0000:0000 (with the proper host ID)

and again rebooting the KVM

In both cases the drive shows up as a USB device in the web interface, and appears to be working, but on the windows side it doesn't appear. It isn't in device manager at all, not even as an unrecognized device, and doesn't show up in the disk manager tool.

Also this drive does work. It is usually used with a VMware VM that the KVM in question is cloned from (so it should have the drivers installed already to boot).

Any help anyone could provide would be very much appreciated.
 
just to confirm: you did stop and then start the vm again after adding the usb device? (a restart from inside is not enough)
 
@dcsapak I didn't realize that there was a significant difference between shutting down a VM from inside stopping it. I'll try that and get back to you, thank you!
 
just to confirm: you did stop and then start the vm again after adding the usb device? (a restart from inside is not enough)

So that has been done and there has been no change. The device still doesn't appear in device manager or partition manager.
 
does the syslog say anything ? (journalctl or dmesg)
 
what happens in the logs during the start of the vm ?
 
what happens in the logs during the start of the vm ?

Ok, so the entire syslog during startup is as follows. I've bolded what I see as the relevant parts. It seems the device (LaCie RuggedXL, ID=059f:1024) is repeatedly connecting and disconnecting, and the device number is changing. I'm not sure what that could mean though.

May 07 22:35:15 REDACTED qm[7679]: start VM 200: UPID:REDACTED:00001DFF:0286A674:5AF0FED3:qmstart:200:root@pam:
May 07 22:35:16 REDACTED systemd[1]: Started 200.scope.
May 07 22:35:16 REDACTED systemd-udevd[7690]: Could not generate persistent MAC address for tap200i0: No such file or directory
May 07 22:35:17 REDACTED kernel: device tap200i0 entered promiscuous mode
May 07 22:35:17 REDACTED kernel: vmbr0: port 2(tap200i0) entered blocking state
May 07 22:35:17 REDACTED kernel: vmbr0: port 2(tap200i0) entered disabled state
May 07 22:35:17 REDACTED kernel: vmbr0: port 2(tap200i0) entered blocking state
May 07 22:35:17 REDACTED kernel: vmbr0: port 2(tap200i0) entered forwarding state
May 07 22:35:17 REDACTED qm[7675]: <root@pam> end task UPID:REDACTED:00001DFF:0286A674:5AF0FED3:qmstart:200:root@pam: OK
May 07 22:35:18 REDACTED kernel: usb 1-8: reset high-speed USB device number 9 using ehci-pci
May 07 22:35:18 REDACTED kernel: usb 1-8: device firmware changed
May 07 22:35:18 REDACTED kernel: usb 1-8: USB disconnect, device number 9
May 07 22:35:18 REDACTED kernel: usb 1-8: new high-speed USB device number 10 using ehci-pci
May 07 22:35:18 REDACTED kernel: usb 1-8: New USB device found, idVendor=059f, idProduct=1024
May 07 22:35:18 REDACTED kernel: usb 1-8: New USB device strings: Mfr=10, Product=11, SerialNumber=12
May 07 22:35:18 REDACTED kernel: usb 1-8: Product: LaCie RuggedXL
May 07 22:35:18 REDACTED kernel: usb 1-8: Manufacturer: LaCie
May 07 22:35:18 REDACTED kernel: usb 1-8: SerialNumber: 8a033f31da4b130246000
May 07 22:35:18 REDACTED kernel: usb-storage 1-8:1.0: USB Mass Storage device detected
May 07 22:35:18 REDACTED kernel: scsi host4: usb-storage 1-8:1.0

May 07 22:35:19 REDACTED kernel: scsi 4:0:0:0: Direct-Access ST310005 28AS PQ: 0 ANSI: 2 CCS
May 07 22:35:19 REDACTED kernel: sd 4:0:0:0: Attached scsi generic sg5 type 0
May 07 22:35:19 REDACTED kernel: sd 4:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
May 07 22:35:19 REDACTED kernel: sd 4:0:0:0: [sdc] Write Protect is off
May 07 22:35:19 REDACTED kernel: sd 4:0:0:0: [sdc] Mode Sense: 00 38 00 00
May 07 22:35:19 REDACTED kernel: sd 4:0:0:0: [sdc] Asking for cache data failed
May 07 22:35:19 REDACTED kernel: sd 4:0:0:0: [sdc] Assuming drive cache: write through
May 07 22:35:19 REDACTED kernel: sdc: sdc1
May 07 22:35:19 REDACTED kernel: sd 4:0:0:0: [sdc] Attached SCSI disk
May 07 22:35:27 REDACTED pveproxy[3823]: worker exit
May 07 22:35:27 REDACTED pveproxy[1996]: worker 3823 finished
May 07 22:35:27 REDACTED pveproxy[1996]: starting 1 worker(s)
May 07 22:35:27 REDACTED pveproxy[1996]: worker 7801 started
May 07 22:35:37 REDACTED kernel: usb 1-8: reset high-speed USB device number 10 using ehci-pci
May 07 22:35:38 REDACTED kernel: usb 1-8: device firmware changed
May 07 22:35:38 REDACTED kernel: usb 1-8: USB disconnect, device number 10
May 07 22:35:38 REDACTED kernel: usb 1-8: new high-speed USB device number 11 using ehci-pci
May 07 22:35:38 REDACTED kernel: usb 1-8: New USB device found, idVendor=059f, idProduct=1024
May 07 22:35:38 REDACTED kernel: usb 1-8: New USB device strings: Mfr=10, Product=11, SerialNumber=12
May 07 22:35:38 REDACTED kernel: usb 1-8: Product: LaCie RuggedXL
May 07 22:35:38 REDACTED kernel: usb 1-8: Manufacturer: LaCie
May 07 22:35:38 REDACTED kernel: usb 1-8: SerialNumber: 8a033f31da4b130246000
May 07 22:35:38 REDACTED kernel: usb-storage 1-8:1.0: USB Mass Storage device detected
May 07 22:35:38 REDACTED kernel: scsi host4: usb-storage 1-8:1.0

May 07 22:35:39 REDACTED kernel: scsi 4:0:0:0: Direct-Access ST310005 28AS PQ: 0 ANSI: 2 CCS
May 07 22:35:39 REDACTED kernel: sd 4:0:0:0: Attached scsi generic sg5 type 0
May 07 22:35:39 REDACTED kernel: sd 4:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
May 07 22:35:39 REDACTED kernel: sd 4:0:0:0: [sdc] Write Protect is off
May 07 22:35:39 REDACTED kernel: sd 4:0:0:0: [sdc] Mode Sense: 00 38 00 00
May 07 22:35:39 REDACTED kernel: sd 4:0:0:0: [sdc] Asking for cache data failed
May 07 22:35:39 REDACTED kernel: sd 4:0:0:0: [sdc] Assuming drive cache: write through
May 07 22:35:39 REDACTED kernel: sdc: sdc1
May 07 22:35:39 REDACTED kernel: sd 4:0:0:0: [sdc] Attached SCSI disk
May 07 22:35:40 REDACTED kernel: usb 1-8: reset high-speed USB device number 11 using ehci-pci
May 07 22:35:40 REDACTED kernel: usb 1-8: device firmware changed
May 07 22:35:40 REDACTED kernel: usb 1-8: USB disconnect, device number 11
May 07 22:35:40 REDACTED kernel: usb 1-8: new high-speed USB device number 12 using ehci-pci
May 07 22:35:40 REDACTED kernel: usb 1-8: New USB device found, idVendor=059f, idProduct=1024
May 07 22:35:40 REDACTED kernel: usb 1-8: New USB device strings: Mfr=10, Product=11, SerialNumber=12
May 07 22:35:40 REDACTED kernel: usb 1-8: Product: LaCie RuggedXL
May 07 22:35:40 REDACTED kernel: usb 1-8: Manufacturer: LaCie
May 07 22:35:40 REDACTED kernel: usb 1-8: SerialNumber: 8a033f31da4b130246000
May 07 22:35:40 REDACTED kernel: usb-storage 1-8:1.0: USB Mass Storage device detected
May 07 22:35:40 REDACTED kernel: scsi host4: usb-storage 1-8:1.0

May 07 22:35:42 REDACTED kernel: scsi 4:0:0:0: Direct-Access ST310005 28AS PQ: 0 ANSI: 2 CCS
May 07 22:35:42 REDACTED kernel: sd 4:0:0:0: Attached scsi generic sg5 type 0
May 07 22:35:42 REDACTED kernel: sd 4:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
May 07 22:35:42 REDACTED kernel: sd 4:0:0:0: [sdc] Write Protect is off
May 07 22:35:42 REDACTED kernel: sd 4:0:0:0: [sdc] Mode Sense: 00 38 00 00
May 07 22:35:42 REDACTED kernel: sd 4:0:0:0: [sdc] Asking for cache data failed
May 07 22:35:42 REDACTED kernel: sd 4:0:0:0: [sdc] Assuming drive cache: write through
May 07 22:35:42 REDACTED kernel: sdc: sdc1
May 07 22:35:42 REDACTED kernel: sd 4:0:0:0: [sdc] Attached SCSI disk
May 07 22:36:00 REDACTED systemd[1]: Starting Proxmox VE replication runner...
May 07 22:36:01 REDACTED systemd[1]: Started Proxmox VE replication runner.
May 07 22:36:14 REDACTED pvedaemon[1966]: <root@pam> starting task UPID:REDACTED:00001F44:0286BD70:5AF0FF0E:vncproxy:200:root@pam:
May 07 22:36:14 REDACTED pvedaemon[8004]: starting vnc proxy UPID:REDACTED:00001F44:0286BD70:5AF0FF0E:vncproxy:200:root@pam:
May 07 22:36:17 REDACTED pvedaemon[1966]: <root@pam> end task UPID:REDACTED:00001F44:0286BD70:5AF0FF0E:vncproxy:200:root@pam: OK
May 07 22:37:00 REDACTED systemd[1]: Starting Proxmox VE replication runner...
May 07 22:37:01 REDACTED systemd[1]: Started Proxmox VE replication runner
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!