Does anyone successfully use USB drive in Windows7 guest?

简介: 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 th...
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 
目录
相关文章
|
存储 安全 前端开发
USB Image Tool:Windows下的直接写盘利器 【开源硬件佳软介绍 #2】
这个问题,我们从磁盘结构讲起。磁盘内部所有的存储区域,必然分为分区表和数据区域两大块。而数据区域按分区表分区后,每个分区还被文件系统封装和管理[注B]:
2403 1
USB Image Tool:Windows下的直接写盘利器 【开源硬件佳软介绍 #2】
|
Windows
微软提供Windows USB/DVD Download Tool:刻录WINDOWS安装系统到U盘
微软提供Windows USB/DVD Download Tool:刻录WINDOWS安装系统到U盘
176 0
|
Linux Windows
报错:Web server failed to start. Port 9002 was already in use.端口被占用解决(Windows)
报错:Web server failed to start. Port 9002 was already in use.端口被占用解决(Windows)
663 0
|
Windows
微软提供Windows USB/DVD Download Tool:刻录WINDOWS安装系统到U盘
微软提供Windows USB/DVD Download Tool:刻录WINDOWS安装系统到U盘
223 0
|
数据安全/隐私保护 Windows 小程序
(转载)Windows: "net use" command introduction
1)建立空连接: net use ""IP"ipc$ "" /user:"" (一定要注意:这一行命令中包含了3个空格) 2)建立非空连接: net use ""IP"ipc$ "密码" /user:"用户名" (同样有3个空格) 3)映射默认共享: net use z: ""IP"c$ "密码" ...
670 0
|
Windows 搜索推荐
提示Windows Phone IP over USB Transport (IpOverUsbSvc)未运行,如何解决
原文:提示Windows Phone IP over USB Transport (IpOverUsbSvc)未运行,如何解决 uwp项目在安装测试时提示,“引导“Device”失败。
1943 0