From Fedora Project Wiki

(Modernize this case)
(Note that on Fedora 20 USB2 is the default for new VMs)
Line 9: Line 9:
|actions=
|actions=


# Start with a shutoff VM. Open the VM details page.
=== Verify the VM is configured for USB2 ===
# Select 'Controller USB' and change to USB2. Click 'Apply'
 
VMs created with virt-manager and virt-install on Fedora 20 or later are configured with USB2 by default, but pre-existing VMs may not have it.
 
# Start with a shutoff VM. Open the VM defails page.
# Select 'Controller USB' and verify model is USB2. If not, change it to USB2 and click apply.
 
=== Attach the host USB device ===
 
# Start the VM
# Start the VM
# Add Hardware->USB Host Device
# Add Hardware->USB Host Device

Revision as of 16:58, 4 October 2013

Description

Attach a physical USB device to your guest.

Setup

Functioning Fedora host and a VM of any OS. More VM OS and USB devices the merrier!

How to test

Verify the VM is configured for USB2

VMs created with virt-manager and virt-install on Fedora 20 or later are configured with USB2 by default, but pre-existing VMs may not have it.

  1. Start with a shutoff VM. Open the VM defails page.
  2. Select 'Controller USB' and verify model is USB2. If not, change it to USB2 and click apply.

Attach the host USB device

  1. Start the VM
  2. Add Hardware->USB Host Device
  3. Choose the device you want to assign from the list, like: 009:002 SanDisk Extreme
  4. Click Finish
  5. Verify that the guest shows up in 'lsusb' output in the guest.
  6. Verify the device's functionality in the guest (this will be device specific)
  7. Select the device in virt-manager, and click 'Remove'.
  8. Verify the device again appears in the host, and is functional on the host.

Expected Results

No obvious errors occur.