小编Mik*_*l R的帖子

USB 设备在 Vagrant 中不可见

我试图在 Vagrant(操作系统:Windows 10)中制作可见的 USB 设备,这就是为什么我将这两行添加到 Vagrant 文件中

 vb.customize ['modifyvm', :id, '--usb', 'on']
 # Provider-specific configuration so you can fine-tune various
 # backing providers for Vagrant. These expose provider-specific options.
 # Example for VirtualBox:
 config.vm.provider "virtualbox" do |vb|
 #   # Display the VirtualBox GUI when booting the machine
 vb.gui = true
 #   # Configure dongle
 vb.customize ['modifyvm', :id, '--usb', 'on']
 vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'VC', '--vendorid', '0x046E', '--productid', '0x0001']
Run Code Online (Sandbox Code Playgroud)

结尾

但是当我使用时,我vagrant up看不到这个 USB 设备。它在 VirtualBox 设备管理器中标记为未知设备。设备在本地 …

windows vagrant

3
推荐指数
2
解决办法
9719
查看次数

标签 统计

vagrant ×1

windows ×1