Comment 5 for bug 1320360

Revision history for this message
Martin Röh (mar7in) wrote : Re: [Qemu-devel] [Bug 1320360] [NEW] usb passthrough not working anymore

Hi,

if I try to start the vm by virt-manager I get this detailed error log:

Fehler beim Starten der Domain: internal error: early end of file from
monitor: possible problem:
qemu-system-x86_64: -device usb-host,hostbus=1,hostaddr=3,id=hostdev0:
'usb-host' is not a valid device model name

Traceback (most recent call last):
   File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in
cb_wrapper
     callback(asyncjob, *args, **kwargs)
   File "/usr/share/virt-manager/virtManager/asyncjob.py", line 127, in
tmpcb
     callback(*args, **kwargs)
   File "/usr/share/virt-manager/virtManager/domain.py", line 1363, in
startup
     self._backend.create()
   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 917, in create
     if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error: early end of file from monitor: possible
problem:
qemu-system-x86_64: -device usb-host,hostbus=1,hostaddr=3,id=hostdev0:
'usb-host' is not a valid device model name

Regards

Martin

Am 18.05.2014 06:52, schrieb Gonglei (Arei):
> Hi,
>
> From qemu-1.7 release version, the old usb-host(host-linux.c) had been removed,
> re-implemented by libusbx. So you should build qemu with --enable-libusb, then
> you can use usb pass-through capacity.
>
> BTW, Gerd, should we enable libusb by default now? Thanks.
>
>
> Best regards,
> -Gonglei
>
>> -----Original Message-----
>> From: <email address hidden>
>> [mailto:<email address hidden>] On
>> Behalf Of Martin R?h
>> Sent: Saturday, May 17, 2014 3:35 AM
>> To: <email address hidden>
>> Subject: [Qemu-devel] [Bug 1320360] [NEW] usb passthrough not working
>> anymore
>>
>> Public bug reported:
>>
>> Hi,
>>
>> I'm using qemu 2.0.0 with opensuse 13.1 x84_64 bit as host and window7
>> as guest. Til qemu version 1.6.2 USB passthrough works perfectly, but
>> starting with qemu 2.0.0 passthrough stop working. I can still add the
>> usb device but when I start the guest following message appears:
>>
>> "unable to execute QEMU command 'device_add': 'usb-host' is not a valid
>> device model name"
>>
>> Then the guest will not start.
>>
>> I try it with different usb devices (iphone, stick, hdd), always the
>> same error.
>>
>> Are there any news / hints about this ?
>>
>> Regards
>>
>> Martin
>>
>> ** Affects: qemu
>> Importance: Undecided
>> Status: New
>>
>> --
>> You received this bug notification because you are a member of qemu-
>> devel-ml, which is subscribed to QEMU.
>> https://bugs.launchpad.net/bugs/1320360
>>
>> Title:
>> usb passthrough not working anymore
>>
>> Status in QEMU:
>> New
>>
>> Bug description:
>> Hi,
>>
>> I'm using qemu 2.0.0 with opensuse 13.1 x84_64 bit as host and window7
>> as guest. Til qemu version 1.6.2 USB passthrough works perfectly, but
>> starting with qemu 2.0.0 passthrough stop working. I can still add the
>> usb device but when I start the guest following message appears:
>>
>> "unable to execute QEMU command 'device_add': 'usb-host' is not a
>> valid device model name"
>>
>> Then the guest will not start.
>>
>> I try it with different usb devices (iphone, stick, hdd), always the
>> same error.
>>
>> Are there any news / hints about this ?
>>
>> Regards
>>
>> Martin
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/qemu/+bug/1320360/+subscriptions
>