您的位置:首页 > 运维架构 > Linux

linux主机用virtualbox虚拟winxp中使用USB设备

2011-04-14 21:26 561 查看
主机操作系统是centos 5.2,安装了virtualbox 3.2.10,在virtualbox中安装了windows xp sp2。但是U盘和MP3等设备一直无法在windows虚拟机中使用。

解决方法:http://wiki.centos.org/HowTos/Virtualization/VirtualBox

VirtualBox requires the user have write access to "usbfs" devices for USB access. As root perform the following:

mkdir /vbusbfs

echo "none /vbusbfs usbfs rw,devgid=$(awk -F : '/vboxusers/ {print $3}' /etc/group),devmode=664 0 0" >> /etc/fstab

mount -a


If
running CentOS as a guest OS in a VM the same development and dkms
packages should be installed in the VM prior to installing VBox Guest
Additions.

执行以上操作后问题解决:将MP3连接到主机上,不需要mount,在虚拟机中点击USB图标可以看到有一项ROCK MP3,选中即可在windows xp中使用。

另外,自己还按照网络上一些论坛里讲的方法进行了操作:把登录用户添加到vboxusers群组中。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: