Issue of usb emulation with qemu
On 04/09/2012 06:42 AM, tangming wrote:
Recentlly I have an usb emulation issue with qemu. There is one usb device on
host, and now I need this usb device to be used by several VMs.
I enable the usb emulation with the VMs' qemu parameter "-usbdevice
host:xxxx:xxxx", with individual qemu instance for each vm.
but seems that only one vm can use this usb normally. Is there any way to share the emulated usb device with two or more VMs? Any suggestions will be appreciated,
Quoted 2 lines
mike
Hi, Guys Recentlly I have an usb emulation issue with qemu. There is one usb device on
host, and now I need this usb device to be used by several VMs.
I enable the usb emulation with the VMs' qemu parameter "-usbdevice
host:xxxx:xxxx", with individual qemu instance for each vm.
but seems that only one vm can use this usb normally. Is there any way to share the emulated usb device with two or more VMs? Any suggestions will be appreciated, Best Regards, Ming //******************************************************************************************************* hi . qemu users and developers,
please tell me how to emulate usb with guest os (single vm)
i m using following configuration..
vikas@vikas-ThinkCentre-A70:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=11.04 DISTRIB_CODENAME=natty DISTRIB_DESCRIPTION="Ubuntu 11.04"
vikas@vikas-ThinkCentre-A70:~$ uname -a Linux vikas-ThinkCentre-A70 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux
QEMU emulator version 1.0,1, Copyright (c) 2003-2008 Fabrice Bellard
i am not able to use with single guest os ..
i have tried all efforts by using (-usb -usbdevice host:xxx:xxx) also
please ........ help me
Thanks and Regards
vikas pandey
u
dear sir,
this is vikas pandey,i am using qemu and i am abe to run some of kernel image and initrd which is available on qemu site for testing purpose. now my ami is to connect the host usb and access the content after running iso image or specifing kernel and initrd image on qemu .
for this task i have followed some procedure which is inlined.... //************************************************************************************************************************************************************************
cat /etc/lsb-release
Host pc discription :
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
==>uname -a
Linux vikas-ThinkCentre-A70 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux
QEMU emulator version 1.0,1, Copyright (c) 2003-2008 Fabrice Bellard
fist i have checked with iso images
step 1:
dd of=ubuntuimage bs=1024 seek=10485760 count=0
step 2:
qemu -hda ubuntuimage -cdrom m1040_wifi.iso -usbdevice host:1e3d:2093 -m 192 -boot dusb_create: no bus specified, using "usb.0" for "usb-host"
(it is a problem which is not permitting guest os to access completly even media will be detected on console while booting on qemu and we can add usb in qemu but in qemue gues os shelll it is not detecting any where )
husb: open device 1.6
husb: config #1 need -1
husb: 1 interfaces claimed for configuration 1
husb: grabbed usb device 1.6
husb: config #1 need 1
husb: 1 interfaces claimed for configuration 1
husb: config #1 need 1
husb: 1 interfaces claimed for configuration 1
=========>2nd i have used kernel and initrd image
step >qemu-system-arm -kernel zImage.integrator -initrd arm_root.img -hda ubuntuimage -usb -usbdevice host:1e3d:2093 -m 128
segmantation fault
//********************************************************************************************************************************************
please suggest me as soon as possible ,and please tell me that is it compulsary that use kvm and libvirt with qemu for using host usb or not..
because i have also tried alot with libvirt but every time it is having some different -2 error currently error related with libvirt is ..
==>virsh -c qemu:///system list
virsh: /usr/lib/libvirt.so.0: version `LIBVIRT_0.9.3' not found (required by virsh)
virsh: /usr/lib/libvirt.so.0: version `LIBVIRT_0.9.0' not found (required by virsh)
virsh: /usr/lib/libvirt.so.0: version `LIBVIRT_PRIVATE_0.9.3' not found (required by virsh)
virsh: /usr/lib/libvirt.so.0: version `LIBVIRT_0.9.2' not found (required by virsh
plese tell me now what should ido...
thanks& regardsvikas pandey
Thanks and Regards
vikas pandey