Configuring a USB passthrough
Like PCI devices, we can also pass USB devices directly into a virtual machine without power cycling a VM. We can connect varieties of USB devices, such as flash drives, webcams, scanners, and so on, directly into the VM. In this section, we are going to see how to passthrough a USB device into a KVM-based VM and OpenVZ container.
Note
Although a USB passthrough works, there have been many incidents of device errors when this passthrough has been used. Commit extensive tests over several days to ensure that it works in a test lab before deploying it in a production cluster. In some cases, an entire node needed to be rebooted to clear out errors due to a USB passthrough.
How to do it…
For a KVM-based VM, a USB passthrough can be configured through the Proxmox GUI. However, for OpenVZ containers, it can only be configured through a CLI.
The following steps describe how to configure a USB passthrough for a KVM-based VM:
Log in to the Proxmox GUI and select the VM.
Click...