让VirtualBox客户机使用usb

注意:本文最后更新于 2699 天前,有关的内容可能已经发生变化,请参考使用。

问题如下

Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The
service might be not installed on the host computer.

Result Code: 0×80004005 Component: Host Interface:
IHost {81729c26-1aec-46f5-b7c0-cc7364738fdb} Callee:
IMachine {31f7169f-14da-4c55-8cb6-a3665186e35e}

原因是由于当前帐户无法识别USB设备,虽然在UBUNTU下是好的,解决方法:

  • 增加用户组usbfs
    $ sudo groupadd usbfs  
  • 查看usbfs用户组的gid
    $ cat /etc/group | grep usbuser
    usbuser:x:1001:
  • 把当前用户增加到usbuser组
    $ sudo gedit /etc/group  

usbuser:x:1001:  

修改为

usbuser:x:1002:holmesian(这里改成你的帐户名)  
  • 为USB设备重新设置权限编辑/etc/fstab文件,添加下面两行,注意你的gid可能不是1002
    $ sudo gedit /etc/fstab  

在末尾加上

# 1001 is the USB group IDI  
none /proc/bus/usb usbuser devgid=1001,devmode=664 0 0  

重新启动后,就可以在客户机中使用USB设备了。


「倘若有所帮助,不妨酌情赞赏!」

Holmesian

感谢您的支持!

使用微信扫描二维码完成支付


相关文章

发表新评论