www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
Hi,

Does anyone successfully use USB drive in Windows7 guest? If I pass a
USB drive to Windows7 guest, Device Manager may find this device but
the USB mass storage driver can't be installed successfully. I have
tried many times. Is the emulated USB controller is so old and
Windows7 doesn't support it? I can't use PCI passthrough feature to
pass the whole USB controller to VM, because the hypervisor also needs
to use some USB ports.

If I use Windows XP or Linux, the USB drive can work well.

Thanks,
flypen
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

 
André Weidemann | 25 Jun 14:24 2011

Picon

Re: Does anyone successfully use USB drive in Windows7 guest?

Hi,

On 25.06.2011 03:32, Flypen CloudMe wrote:
> Hi,
>
> Does anyone successfully use USB drive in Windows7 guest? If I pass a
> USB drive to Windows7 guest, Device Manager may find this device but
> the USB mass storage driver can't be installed successfully. I have
> tried many times. Is the emulated USB controller is so old and
> Windows7 doesn't support it? I can't use PCI passthrough feature to
> pass the whole USB controller to VM, because the hypervisor also needs
> to use some USB ports.
>
> If I use Windows XP or Linux, the USB drive can work well.
>

Try the following when starting qemu-kvm. Replace sdX with your USB device.

...
-device usb-ehci,id=ehci \
-drive if=none,id=usbstick,file=/dev/sdX \
-device usb-storage,bus=ehci.0,drive=usbstick \
...

If would like to add the device while your VM is running, you may omit 
the last two lines and add this one instead:
-monitor telnet:127.0.0.1:11111,server,nowait,nodelay

Add the device using the two commands below:
echo "drive_add 0 id=usbdrive,if=none,file=/dev/sdX"| /bin/nc -w1 
posted on 2015-11-26 17:07  秦瑞It行程实录  阅读(291)  评论(0编辑  收藏  举报
www.cnblogs.com/ruiyqinrui