Linux Virtualbox:“其他人正在使用USB设备”错误,如何让(mac)主机松手?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14689354/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 18:55:19  来源:igfitidea点击:

Virtualbox: "USB device in use by someone else" error, how to make (mac) host let go?

linuxubuntuvirtualboxmodem

提问by user1678406

I'm trying to set up a USB Fax Modem in Ubuntu through Virtual Box but I'm not sure how to do so.

我正在尝试通过 Virtual Box 在 Ubuntu 中设置 USB 传真调制解调器,但我不确定如何操作。

Host OS = Mac OS X
Virtual Box Guest OS = Ubuntu 12.04
56k USB Fax/Modem = Lenovo 43R1786 (43R1815) by Conexant

On the host os, I can see /dev/tty.usbmodem24680241. I enabled USB Controller, and found my modem as "Conexant USB Modem", so I enabled that. Now, when I run the guest OS, and from the Virtual Box menu for that OS, I go to Devices > USB Devices > Conexant USB Modem, it says:

在主机操作系统上,我可以看到 /dev/tty.usbmodem24680241。我启用了 USB 控制器,发现我的调制解调器是“Conexant USB 调制解调器”,所以我启用了它。现在,当我运行来宾操作系统时,从该操作系统的 Virtual Box 菜单中,我转到设备 > USB 设备 > 科胜讯 USB 调制解调器,它说:

Failed to attach the USB device Conexant USB modem to the virtual machine Ubuntu32. USB device is in use by someone else. Looks like it means that the host (mac) grabbed the device first. How can I get it to let go so the guest can use it? Am I setting it up the right way?

无法将 USB 设备 Conexant USB 调制解调器连接到虚拟机 Ubuntu32。USB 设备正在被其他人使用。看起来这意味着主机(mac)首先抓住了设备。我怎样才能让它放开以便客人可以使用它?我是否以正确的方式设置它?

Thanks!

谢谢!

采纳答案by user1678406

I figured it out. You are supposed to:

我想到了。你应该:

  1. Plug in the device, let the host grab it
  2. In the host, go to virtual box, and edit the configuration for the guest to use usb, and add a filter to include the plugged in device
  3. Unplug the device
  4. Start the guest os
  5. When the guest os is running, plug in the device.
  1. 插上设备,让主机抢到
  2. 在host中,进入virtual box,编辑guest使用usb的配置,并添加过滤器以包含插入的设备
    • 请注意,您可能需要安装扩展包才能启用 USB 2.0
  3. 拔掉设备
  4. 启动来宾操作系统
  5. 当来宾操作系统运行时,插入设备。

Virtual box will grab the usb device and make it available for the guest. The guest will then go on and try to identify and configure the device.

Virtual box 将抓取 USB 设备并使其可供访客使用。然后,来宾将继续尝试识别和配置设备。

Done.

完毕。

Notes:
Done have a running or saved instance of the guest(virtual machine) running while changing the settings.

注意:
在更改设置时,已运行或已保存的来宾(虚拟机)实例正在运行。