Ubuntu 10.04 Virtualbox USB设备分配 解决方法

在Ubuntu 10.04当中安装Virtualbox 4.0后,需要添加usb设备,已经更简单的在 VirtualBox中使用 USB的方案了:

For Lucid

Add yourself to the user group vboxusers , then log out and back in, to make use of available USB devices. To do this via the graphical interface, click in the menu System/Administration/ Users and Groups.

原来 VirtualBox在运行时不是以当前用户身份运行的,而是单独创建了一个叫做 vboxusers的用户组,而默认情况下你的当前用户是不在 这个用户组里面的, VirtualBox也就没有访问 USB设备的权限了。

可以根据以下步骤进行:

 

  1. 查看用户信息命令   id
  2. 查看用户所在组信息   groups
  3. 添加自己到vboxusers组当中   gpasswd -a xiaoxia  vboxusers 
  4. 重启计算机,并确保Virtualbox虚拟机设置中USB控制器的两个选项有效,使用时插入USB设备,在虚拟机中的可分配USB设备列表中打勾确认即可。
  5. (可选)获取usb设备的vendorld和productld。命令行输入VBoxManage list usbhost即可查看

 

posted on 2011-08-02 12:55  9号  阅读(454)  评论(0编辑  收藏  举报

导航