I need to use VMWare Fusion as VirtualBox doesn’t seem to be available for Mac M1 any longer.
There has been no trouble creating a VM and interacting with it via terminal. But, I am not able to interact with USB-attached devices. I see VMWare connections like what is below, whereas I was expecting to see something like
STLink as the name of one of the devices.
vagrant@vagrant:~$ lsusb Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 005: ID 0e0f:0002 VMware, Inc. Virtual USB Hub Bus 002 Device 004: ID 0e0f:0002 VMware, Inc. Virtual USB Hub Bus 002 Device 003: ID 0e0f:0006 VMware, Inc. Virtual Keyboard Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Using Vagrant with VirtualBox, one might include something like this to configure usb.
config.vm.provider "virtualbox" do |vb| vb.gui = false vb.memory = "2048" vb.cpus = 2 vb.customize ['modifyvm', :id, '--usb', 'on'] vb.customize ['modifyvm', :id, '--usbehci', 'on'] vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'STLink', '--vendorid', '0x0483', '--productid', '0x3748'] ...
With vagrant-vmware-desktop, there is apparently no ‘customize’ object (?), so I am guessing I need to use something akin to
vmware.vmx["ethernet0.virtualdev"] = "vmxnet3" but I really don’t know what it will take.
How do I pass USB devices to the guest this with VMWare Fusion?