usb passthrough not working anymore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
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
Peter Wu (lekensteyn) wrote : | #1 |
Gonglei (arei-gonglei) wrote : RE: [Qemu-devel] [Bug 1320360] [NEW] usb passthrough not working anymore | #2 |
Hi,
From qemu-1.7 release version, the old usb-host(
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:/
>
> 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:/
Martin Röh (mar7in) wrote : Re: [Bug 1320360] Re: usb passthrough not working anymore | #3 |
The command line is
/usr/bin/
pc-i440fx-
-smp 2,sockets=
424ca5ec-
-chardev
socket,
-mon chardev=
base=localtime,
-no-hpet -no-shutdown -global PIIX4_PM.
PIIX4_PM.
ich9-usb-
ich9-usb-
-device
ich9-usb-
-device
ich9-usb-
-device ahci,id=
file=/opt/
virtio-
-netdev tap,fd=
virtio-
-chardev pty,id=charserial0 -device
isa-serial,
-vnc 127.0.0.1:0 -device VGA,id=
intel-hda,
hda-duplex,
virtio-
Am 17.05.2014 01:15, schrieb Lekensteyn:
> Be sure to add the -usb option. What is your command line?
>
> See also
> http://
>
Martin Röh (mar7in) wrote : Re: [Qemu-devel] [Bug 1320360] [NEW] usb passthrough not working anymore | #4 |
Hi,
as far as I can see from the rpm specs of the opensuse rpm package the
--enable-libusb is set .
Regards
Martin
Am 18.05.2014 06:52, schrieb Gonglei (Arei):
> Hi,
>
> From qemu-1.7 release version, the old usb-host(
> 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:/
>>
>> 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:/
>
Martin Röh (mar7in) wrote : | #5 |
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,
'usb-host' is not a valid device model name
Traceback (most recent call last):
File "/usr/share/
cb_wrapper
callback(
File "/usr/share/
tmpcb
callback(
File "/usr/share/
startup
self.
File "/usr/lib64/
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,
'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(
> 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:/
>>
>> 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...
Gonglei (arei-gonglei) wrote : | #6 |
Hi,
> -----Original Message-----
> From: Martin Röh [mailto:<email address hidden>]
> Sent: Monday, May 19, 2014 4:40 AM
> To: Gonglei (Arei); Bug 1320360; <email address hidden>
> Cc: Gerd Hoffmann
> Subject: 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,
> 'usb-host' is not a valid device model name
>
>
> Traceback (most recent call last):
> File "/usr/share/
> cb_wrapper
> callback(asyncjob, *args, **kwargs)
> File "/usr/share/
> tmpcb
> callback(*args, **kwargs)
> File "/usr/share/
> startup
> self._backend.
> File "/usr/lib64/
> 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,
> 'usb-host' is not a valid device model name
>
The above error information shows "usb-host" didn't been built in qemu-system-x86_64
binary file. You can get the qemu-2.0.0 source files from http://
and rebuild it with '--enable-libusb' during configure.
Best regards,
-Gonglei
Gerd Hoffmann (kraxel-redhat) wrote : | #7 |
On So, 2014-05-18 at 22:36 +0200, Martin Röh wrote:
> Hi,
>
> as far as I can see from the rpm specs of the opensuse rpm package the
> --enable-libusb is set .
> > BTW, Gerd, should we enable libusb by default now? Thanks.
By default libusb will be used when found on the system.
When it isn't there qemu will be built without usb-host support.
If you explicitly ask for libusb support (via --enable-libusb) and
libusbx isn't found configure should fail.
cheers,
Gerd
Bruce Rogers (brogers-q) wrote : | #8 |
Martin,
The OBS Virtualization/qemu project doesn't build QEMU v2.0 with libusb support for openSUSE 13.1, because the version provided in that distro was 1.0.9, and QEMU's configure requires 1.0.13.
Bruce
Maarten (login-6) wrote : | #9 |
Hi, I've done the following on my OpenSUSE 13.1 install where I'm in sore need of USB passthrough with QEMU 2.0.0
1) zypper source-install qemu to get the sources
2) update of libusb to 1.0.18 from the hardware:
3) removed the version check for --enable-libusb in qemu.spec to ensure that this flag is set when building
The output of rpmbuild -bb /usr/src/
error: Failed build dependencies:
xen-devel is needed by qemu-2.
Any input is greatly appreciated.
Maarten (login-6) wrote : | #10 |
xen-devel was not an issue (that package was installed so that dependency was resolved immediately) but libusb-devel is still reported as missing, even though I have a 1.0.18 version of a libusb-1_0-devel installed. I would think it's only the package name that is different. I'm not overly familiar with the build process, therefore I'm not certain if it would be sufficient to modify the qemu.spec build spec with the library name as it is installed on my system. Thanks.
Maarten (login-6) wrote : | #11 |
I went ahead and modified the qemu.spec to require libusb-1_0-devel instead of libusb-devel. That seems to work as according to the build output it includes /usr/include/
It looks like something may be broken when building seabios.
ASL Input: /usr/src/
AML Output: /usr/src/
Listing File: /usr/src/
Hex Dump: /usr/src/
Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 246 Optimizations
Traceback (most recent call last):
File "./scripts/
for line in fileinput.input():
File "/usr/lib64/
line = self.readline()
File "/usr/lib64/
self._file = open(self.
IOError: [Errno 2] No such file or directory: '/usr/src/
make[1]: *** [/usr/src/
make[1]: Leaving directory `/usr/src/
make: *** [build-
make: Leaving directory `/usr/src/
error: Bad exit status from /var/tmp/
Now I'm well and truly stuck. Is there a way to leave seabios out of the equation or can this be resolved?
Thomas Huth (th-huth) wrote : | #12 |
Triaging old bug tickets... can you still reproduce this issue with the latest version of QEMU? Or could we close this ticket nowadays?
Changed in qemu: | |
status: | New → Incomplete |
Martin Röh (mar7in) wrote : Re: [Bug 1320360] Re: usb passthrough not working anymore | #13 |
Hi,
the ticket can be close. All works fine with actual opensuse tumbleweed
and qemu 2.10.0 :-)
Best regards
Martin
Am 03.10.2017 um 12:42 schrieb Thomas Huth:
> Triaging old bug tickets... can you still reproduce this issue with the
> latest version of QEMU? Or could we close this ticket nowadays?
>
> ** Changed in: qemu
> Status: New => Incomplete
>
Thomas Huth (th-huth) wrote : | #14 |
Thanks for checking again!
Changed in qemu: | |
status: | Incomplete → Fix Released |
Be sure to add the -usb option. What is your command line?
See also http:// git.qemu. org/?p= qemu.git; a=blob; f=docs/ usb2.txt; h=c7a445afcd55f e1f12033d529d66 8a1306d5a9f4; hb=HEAD# l111