Bug 681525 - No usb passthrough on virtual machines
Summary: No usb passthrough on virtual machines
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: 6.0
Assignee: Gerd Hoffmann
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-02 13:36 UTC by julien.savary
Modified: 2013-01-09 23:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-03 11:44:00 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description julien.savary 2011-03-02 13:36:30 UTC
Description of problem:

Results of lsusb :

Host machine (RHEL WS 6) 
"Bus 002 Device 006: ID 0529:0001 Aladdin Knowledge Systems HASP v0.06"

Virtual machine on which the usb-passthrough was set :
"Bus 001 Device 001: ID 0000:0000"

The result is the same with a centos 5.5 or a red hat 5 in the virtual machine.

I tried too with a usb key (different ID), with no more success.

Version-Release number of selected component (if applicable):

Up to date version of RHEL WS 6 on 21 feb 2011

How reproducible:

Every time I try to passtrough a usb device to a virtual machine.

Steps to Reproduce:
1. Create / migrate a virtual machine with virt-manager or manually
2. Try to add a usb device with virt-manager or in the vm config file
3. Launch the vm and cry -_- .
  
Actual results:


Expected results:

Physical usb dongle/usb key should be seen by the virtual machines when passed through.

Additional info:

Settings of the vm :

"
<domain type='kvm'>
 <name>fuel40</name>
 <uuid>94898b44-1308-4092-
3e12-769eb2b0affe</uuid>
 <memory>317440</memory>
 <currentMemory>317440</currentMemory>
 <vcpu>1</vcpu>
 <os>
   <type arch='x86_64' machine='rhel5.4.0'>hvm</type>
   <boot dev='hd'/>
 </os>
 <features>
   <acpi/>
   <apic/>
   <pae/>
 </features>
 <clock offset='utc'/>
 <on_poweroff>destroy</on_poweroff>
 <on_reboot>restart</on_reboot>
 <on_crash>restart</on_crash>
 <devices>
   <emulator>/usr/libexec/qemu-kvm</emulator>
   <disk type='file' device='disk'>
     <driver name='qemu' type='raw' cache='none'/>
     <source file='/var/lib/libvirt/images/fuel40.img'/>
     <target dev='vda' bus='virtio'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
   </disk>
   <interface type='network'>
     <mac address='25:54:00:87:1d:ba'/>
     <source network='default'/>
     <model type='virtio'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
   </interface>
   <input type='mouse' bus='ps2'/>
   <graphics type='vnc' port='-1' autoport='yes' keymap='fr'/>
   <video>
     <model type='cirrus' vram='9216' heads='1'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
   </video>
   <hostdev mode='subsystem' type='usb' managed='yes'>
     <source>
       <vendor id='0x0529'/>
       <product id='0x0001'/>
     </source>
   </hostdev>
   <memballoon model='virtio'>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
   </memballoon>
 </devices>
</domain>

I tried to disable SElinux (SELINUX=disabled in /etc/sysconfig/selinux followed by a reboot). No more results.

The deamon aksusbd was dealing on the host with the usb dongle. I stopped it
No more results.

I tried and installed in /usr/local http://wiki.qemu.org/download/qemu-0.13.0.tar.gz, the keys/usb dongle are seen by virtual machines, so I think there's no problem on the kernel side.

Comment 2 Dor Laor 2011-03-03 11:44:00 UTC
Sorry but we're not supporting this scenario:
Bug 620657 - (unsupported) Unsupported device uses need to be documented in release notes.

We blocked it since it was not stable upstream.


Note You need to log in before you can comment on or make changes to this bug.