qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB passthrough using qemu commandline method in libvirt


From: clement andrew
Subject: Re: USB passthrough using qemu commandline method in libvirt
Date: Mon, 2 Mar 2020 12:58:23 +0800

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 <address@hidden> 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!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]