All of lore.kernel.org
 help / color / mirror / Atom feed
* USB passthrough using qemu commandline method in libvirt
@ 2020-03-02  4:55 clement andrew
  2020-03-02  4:58 ` clement andrew
  0 siblings, 1 reply; 2+ messages in thread
From: clement andrew @ 2020-03-02  4:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: stefanha

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

Hi

I'm trying to do usb passthrough using qemu commandline method in libvirt
as below by making changes , but VM failed to create the usb passthrough.
<qemu:commandline>
  <qemu:arg value='-device'/>
  <qemu:arg value='usb-host,vendorid=0x0930,productid=0x6545,bus=usb1.0'/>
</qemu:commandline>

While using just normal qemu command, it was passing just fine.
sudo qemu-system-x86_64 -enable-kvm -m 2G -cpu host -smp 2 -vga qxl -drive
file=/var/lib/libvirt/images/os1.qcow2,index=0,media=disk,format=qcow2
-device usb-host,vendorid=0x0930,productid=0x6545

Is there a guide where i can find out information on this ?

Thanks!

[-- Attachment #2: Type: text/html, Size: 1078 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: USB passthrough using qemu commandline method in libvirt
  2020-03-02  4:55 USB passthrough using qemu commandline method in libvirt clement andrew
@ 2020-03-02  4:58 ` clement andrew
  0 siblings, 0 replies; 2+ messages in thread
From: clement andrew @ 2020-03-02  4:58 UTC (permalink / raw)
  To: qemu-devel; +Cc: stefanha

[-- Attachment #1: Type: text/plain, Size: 1766 bytes --]

Updated Mail:
Forgot to put in system information

Hi

I'm trying to do usb passthrough using qemu commandline method in libvirt
as below by making changes , but VM failed to create the usb passthrough.
<qemu:commandline>
  <qemu:arg value='-device'/>
  <qemu:arg value='usb-host,vendorid=0x0930,productid=0x6545,bus=usb1.0'/>
</qemu:commandline>

While using just normal qemu command, it was passing just fine.
sudo qemu-system-x86_64 -enable-kvm -m 2G -cpu host -smp 2 -vga qxl -drive
file=/var/lib/libvirt/images/os1.qcow2,index=0,media=disk,format=qcow2
-device usb-host,vendorid=0x0930,productid=0x6545

Base OS: Ubuntu 18.04.03

Hypervisor: KVM

VM OS: Ubuntu 18.04

Kernel:
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.2.11/linux-image-unsigned-5.2.11-050211-generic_5.2.11-050211.201908290731_amd64.deb

Libvirt version: 4.0.0 (default from ubuntu 18.04)

Qemu version: 2.11.1 (default from ubuntu 18.04)

Libusb version: 1.0.0 (default from ubuntu 18.04)


Is there a guide where i can find out information on this ?

On Mon, Mar 2, 2020 at 12:55 PM clement andrew <clefrks@gmail.com> wrote:

> Hi
>
> I'm trying to do usb passthrough using qemu commandline method in libvirt
> as below by making changes , but VM failed to create the usb passthrough.
> <qemu:commandline>
>   <qemu:arg value='-device'/>
>   <qemu:arg value='usb-host,vendorid=0x0930,productid=0x6545,bus=usb1.0'/>
> </qemu:commandline>
>
> While using just normal qemu command, it was passing just fine.
> sudo qemu-system-x86_64 -enable-kvm -m 2G -cpu host -smp 2 -vga qxl -drive
> file=/var/lib/libvirt/images/os1.qcow2,index=0,media=disk,format=qcow2
> -device usb-host,vendorid=0x0930,productid=0x6545
>
> Is there a guide where i can find out information on this ?
>
> Thanks!
>

[-- Attachment #2: Type: text/html, Size: 4183 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-02 14:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-02  4:55 USB passthrough using qemu commandline method in libvirt clement andrew
2020-03-02  4:58 ` clement andrew

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.