USB Device Missing After VM Reboot

longhair

Member
Jun 27, 2014
113
0
16
I am trying to add an external USB 3.0 hard drive for Windows 2008 R2 vm.

Following the steps USB physical port mapping

Code:
:.../# qm monitor 100
qm>_info usbhost
   [B] Bus 10, Addr 5, Port 2, Speed 5000 Mb/s
        Class 00: USB device 1234:5678, Device Name 5678[/B]
    Bus 1, Addr 2, Port 2, Speed 480 Mb/s
        Class 00: USB device 8765:4321, USB Flash Drive
qm>_q

/etc/pve/qemu-server/100.conf

Code:
...
startup: order=2, up=600, down=1200
[B]usb0: host=10-2[/B]
vga: qxl
...

Shutdown VM
Start VM

Code:
:.../# qm monitor 100
qm>_info usbhost
    Bus 1, Addr 2, Port 2, Speed 480 Mb/s
        Class 00: USB device 8765:4321, USB Flash Drive
qm>_q


Bus 10, Addr 5, Port 2, Speed 5000 Mb/s...
is missing.
 
Figured out the problem.

The external usb drive goes to sleep after 5 minutes and the only way to wake it up is to unplug it and plug it back in.

Not very handy...
 
There is a way to configure the host system to avoid the USB Connection goes into suspend Mode. I've had once the Same Situation but cant remember the command you Need to ad to the boot Command line.
 
I did a lot of reading and I think I found something that will work:

Code:
hdparm -B 255 /dev/sd[I]X[/I]

[I]X being the letter of the actual drive[/I]

Also needed to plug the USB 3.0 device into a USB 2 port so it would be recognized by Windows :(
 
Still having this problem and I am not able to unplug and re-plug the usb device every 5 minutes.
 
Maybe hdparm -Z can help

I've tried hdparm 2 weeks ago without any success.

Code:
  -Z     Disable  the  automatic power-saving function of certain Seagate drives (ST3xxx models?), to prevent them  from  idling/spinning-down at inconvenient times.
 
WD Passports.

It is "simple" stuff like this that I am forced to move back Windows to physical machines :(