If you connect to a virtual guest from a Red Hat Enterprise Linux client machine, you have to install several SPICE packages before you can share USB devices between the client and the guest.
To use USB devices on Red Hat Enterprise Linux clients
- Install SPICE packages on clientOn your Linux client machine, install the following packages:
- spice-usb-share
- kmod-kspiceusb-rhel60 for Red Hat Enterprise Linux 6 orkmod-kspiceusb-rhel5u6 for Red Hat Enterprise Linux 5
These packages are available on the Red Hat Network, from the Red Hat Enterprise Linux Supplementary Software channel for your version of Red Hat Enterprise Linux. To install the packages, run:# yum install spice-usb-share kmod-kspiceusb
- Run SPICE USB servicesStart the spiceusbsrvd service and load the kspiceusb module. Run:
# service spiceusbsrvd start # modprobe kspiceusb
- Install RHEV-Tools on guestLocate the CD drive to access the contents of the Guest Tools ISO, and launch
RHEV-ToolsSetup.exe. If the Guest Tools ISO is not available in your CD drive, contact your system administrator. After the tools have been installed, you will be prompted to restart the machine for changes to be applied. - Open firewall portsAllow connections on TCP port 32023 on any firewalls between the guest machine and the client machine.
- Enable USB Auto-ShareOn the User Portal, select your guest machine. Ensure that you have enabled SPICE USB Auto-Share on the guest machine.
- Attach USB deviceConnect to your guest machine. Place the SPICE console window of your guest desktop in focus, then attach a USB device to the client. The USB device displays in your guest desktop.
When you close the SPICE session the USB device will no longer be shared with the guest.