USB storage

fredlim

New Member
Dec 24, 2008
13
0
1
Is it possible to mount USB storage on Linux and Windows guest?
I use openSUSE 11.1 and Windows 2003 R2.
 
Yes, but you cant configure that on the web interface.

You can use the 'hostusb' option (see man qm).

# lsusb

gives you the device IDs.
 
I can see the USB memory using lsusb, but how to assign it to Linux and Windows guest?
 
I assume you talk about KVM based VMs (not OpenVZ)?

To pass through an host usb device use:

Code:
# qm set <vmid> --hostusb vendor_id:product_id
for example, to pass through the following mouse to VM 777:

Bus 004 Device 002: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse

Code:
# qm set 777 --hostusb 046d:c00c
or
Code:
# qm set 777 --hostusb 4.2
You need to start/stop the VM to apply the settings.