[Top][All Lists]

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

Re: [Qemu-devel] external usb flash drive support on qemu virtualization

From: Kumar Girish
Subject: Re: [Qemu-devel] external usb flash drive support on qemu virtualization
Date: Thu, 20 Oct 2016 15:07:07 +0000

Hi All,

I have analysed my code and added the usb configuration while spawning the 
guest CMM. Unfortunately still the usb is not visible.
Could you please help me on this. 
I added this config   "-usb -usbdevice host:090c:1000 " . you can see in the 
last but one line  
Following is my config

/bin/qemu-system-x86_64 -aos cmm -smp 2 -m 3072 -aosimage 
/flash/working/Mos.img -device virtio-prestera --enable-kvm -machine accel=kvm 
-qmp tcp:,server,nowait -netdev 
type=tap,id=eth0,ifname=tun0cmm,script=no,downscript=no  -device 
virtio-net-pci,netdev=eth0,mac=2c:fa:a2:0a:29:46  -netdev 
type=tap,id=eth1,ifname=tun1cmm,script=no,downscript=no  -device 
virtio-net-pci,netdev=eth1,mac=00:0a:1e:11:11:f8  -netdev 
type=tap,id=eth2,ifname=tun2cmm,script=no,downscript=no  -device 
virtio-net-pci,netdev=eth2  -netdev 
type=tap,id=eth3,ifname=tun3cmm,script=no,downscript=no  -device 
virtio-net-pci,netdev=eth3,mac=00:0a:1e:11:11:f8 -netdev 
type=tap,id=eth4,ifname=tun4cmm,script=no,downscript=no  -device 
virtio-net-pci,netdev=eth4 -nographic -pidfile /CMMGuestPid -append -usb 
-usbdevice host:090c:1000  "console=ttyS0 empipaddr= 
empnetmask= empgateway= medora_early.ALU_VMSlotNum=0 
medora_early.ALU_VMPrimaryA=1 medora_early.ALU_VMIsCmm=1"

Have few questions please clarify.

1. Is it possible to add usb configuration once the guest is UP. That is 
dynamically adding the usb configuration 
2. Once the configuration is done,  should I unplug and plug the usb flash 
stick (pendrive) 
3. does lsusb show usb devices at guest also 


-----Original Message-----
From: Stefan Hajnoczi [mailto:address@hidden 
Sent: Wednesday, September 28, 2016 1:56 PM
To: Kumar Girish
Cc: address@hidden
Subject: Re: [Qemu-devel] external usb flash drive support on qemu 

On Mon, Sep 26, 2016 at 03:25:26PM +0000, Kumar Girish wrote:
> I am new to virtualization on Linux. Any help and support is appreciated.
> Explanation of my current setup
> Procesor : intel atom
> linux kernel : 3.10
> Virtualization at kernel : KVM
> Virtualization at application : QEMU 2.7.0
> Problem
> When flash drive(pen drive ) is inserted and mounted, it is mounted and 
> visible at host. But same is not visible at guest VM.

The guest hardware is independent of the host hardware.  Devices plugged into 
the host do not automatically appear inside the guest.

How to make the flash drive available to the guest depends on how you are using 

Are you using a management tool like virt-manager or virsh?
virt-manager has a graphical user interface for passing USB devices into the 
guest.  Go to Details | Add Hardware | USB Host Device.


reply via email to

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