8

解决在opensuse下virtualbox无法挂载主机USB设备的问题

 2 years ago
source link: https://blog.chih.me/use-USB-in-virtualbox-at-openSUSE.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

解决在opensuse下virtualbox无法挂载主机USB设备的问题

0 Comments

因为要用virtualbox中的Windows虚拟机设置G602的可编程键,所以需要把G602的USB无线接收器挂载到虚拟机上,结果发现virtualbox右下角USB设备那里尽管有logitech USB Receiver这个选项,但它是灰色的,无法选中。

因为已经确认当前用户已经加入vboxusers组、并已经安装Oracle Extensions扩展包,那么问题应该从其他方向寻找。

在Google了一段时间后,终于在openSUSE论坛找到了解决方法

源中的包,/usr/lib/udev/rules.d/60-vboxdrv.rules 里面有 4 行规则被用 # 号注释掉了,有安全隐患。把那 4 行注释打开应该就可以了。

找到那四行并取消注释就可以了:

  • SUBSYSTEM=="usb_device", ACTION=="add", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers"
  • SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers"
  • SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
  • SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"

闲话几句:Linux就这点不方便,各个发行版有自己的打包方式,结果在使用上总是有细微差别。每次换一个发行版总要折腾一些莫名其妙的问题。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK