From Fedora Project Wiki

(Create page)
 
No edit summary
Line 11: Line 11:
# Make sure the guest is configured with spice graphics and qxl video (this is the default if you chose 'Fedora 18' when installing)
# Make sure the guest is configured with spice graphics and qxl video (this is the default if you chose 'Fedora 18' when installing)
# Go to the 'Controller USB' page, change type to 'USB 2', click apply
# Go to the 'Controller USB' page, change type to 'USB 2', click apply
# Go: Add Hardware->USB Redirection->Spice->Apply
# Go: Add Hardware->USB Redirection->Spice->Finish
# Start the VM, but close virt-manager
# Start the VM, but close virt-manager
# From the command line, as root, run: <br><pre>virt-viewer f18</pre>
# From the command line, as root, run: <br><pre>virt-viewer f18</pre>
# With virt-viewer, log into the guest so you have graphical desktop access
# With virt-viewer, log into the guest so you have graphical desktop access
# In virt-viewer, go to File->USB Redirection, and select your USB device
# In virt-viewer, go to File->USB device selection, and select your USB device
# Verify the device shows up in the guest and is usable
# Verify the device shows up in the guest and is usable
# In virt-viewer, go to File->USB Redirection, and unselect your device
# In virt-viewer, go to File->USB device selection, and unselect your device
# Verify the device is once again usable on the host
# Verify the device is once again usable on the host



Revision as of 11:42, 1 November 2012

Description

Configure USB redirection for your guest, which allows streaming USB access to your VM, even if it's on a different host!

Setup

Initial test day setup (basically a function F18 VM). And a USB device to let your guest access.

How to test

  1. Shut off your guest. Open the hardware view in virt-manager
  2. Make sure the guest is configured with spice graphics and qxl video (this is the default if you chose 'Fedora 18' when installing)
  3. Go to the 'Controller USB' page, change type to 'USB 2', click apply
  4. Go: Add Hardware->USB Redirection->Spice->Finish
  5. Start the VM, but close virt-manager
  6. From the command line, as root, run:
    virt-viewer f18
  7. With virt-viewer, log into the guest so you have graphical desktop access
  8. In virt-viewer, go to File->USB device selection, and select your USB device
  9. Verify the device shows up in the guest and is usable
  10. In virt-viewer, go to File->USB device selection, and unselect your device
  11. Verify the device is once again usable on the host

Expected Results

No obvious errors occur, USB device is accessible like normal.