I have had success in adding a USB device to a KVM virtual machine by adding it to the conf file and restarting the vm.
An example line in the conf file is:
usb0: host=1058:1042
This works OK.
If I wish to add another device, I presume that I would add another line so:
usb1: host=XXXX:XXXX
Is this correct?
There is also the occasional need to be able to add USB devices "on the fly" - just as if you had plugged them into a physical machine, and use them without rebooting.
In the vm monitor, I have tried:
usb_add host:XXXX:YYYY
where XXXX is the vendor id, and YYYY is the product id, both obtained from the 'info usbhost' command (or lsusb from a console window).
I have also tried
usb_add host:2.9
where 2 is the bus, and 9 is the address.
I have had no success with either if these methods. I have tried three separate USB devices, all to no avail.
Has anyone managed to get the hotplugging of USB devices to work? If so, what's the trick!
pveversion output:
pve-manager: 3.0-23 (pve-manager/3.0/957f0862)
running kernel: 2.6.32-22-pve
proxmox-ve-2.6.32: 3.0-107
pve-kernel-2.6.32-20-pve: 2.6.32-100
pve-kernel-2.6.32-22-pve: 2.6.32-107
lvm2: 2.02.95-pve3
clvm: 2.02.95-pve3
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-1
pve-cluster: 3.0-4
qemu-server: 3.0-20
pve-firmware: 1.0-23
libpve-common-perl: 3.0-4
libpve-access-control: 3.0-4
libpve-storage-perl: 3.0-8
vncterm: 1.1-4
vzctl: 4.0-1pve3
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-13
ksm-control-daemon: 1.1-1
An example line in the conf file is:
usb0: host=1058:1042
This works OK.
If I wish to add another device, I presume that I would add another line so:
usb1: host=XXXX:XXXX
Is this correct?
There is also the occasional need to be able to add USB devices "on the fly" - just as if you had plugged them into a physical machine, and use them without rebooting.
In the vm monitor, I have tried:
usb_add host:XXXX:YYYY
where XXXX is the vendor id, and YYYY is the product id, both obtained from the 'info usbhost' command (or lsusb from a console window).
I have also tried
usb_add host:2.9
where 2 is the bus, and 9 is the address.
I have had no success with either if these methods. I have tried three separate USB devices, all to no avail.
Has anyone managed to get the hotplugging of USB devices to work? If so, what's the trick!
pveversion output:
pve-manager: 3.0-23 (pve-manager/3.0/957f0862)
running kernel: 2.6.32-22-pve
proxmox-ve-2.6.32: 3.0-107
pve-kernel-2.6.32-20-pve: 2.6.32-100
pve-kernel-2.6.32-22-pve: 2.6.32-107
lvm2: 2.02.95-pve3
clvm: 2.02.95-pve3
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-1
pve-cluster: 3.0-4
qemu-server: 3.0-20
pve-firmware: 1.0-23
libpve-common-perl: 3.0-4
libpve-access-control: 3.0-4
libpve-storage-perl: 3.0-8
vncterm: 1.1-4
vzctl: 4.0-1pve3
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-13
ksm-control-daemon: 1.1-1