Hi, i have a unusual task. I wanted to know how i can passthrough USB devices via CLI, while my VM is on.
Basically it always possible and always works fine via UI.
As of today i can do this by editing .vmx file of my VM, adding path of usb device. But editing .vmx file is only possible when VM is off.
Could anybody help me with that ?
No, i didn’t try this method, but actually i need to passthrough USB device by usb path, but before it i should now this path, as that method shows it by VID and PID, unfortunately it doesn’t compatible with my case.
First of all i need to start the VM and only then i can see all the paths of connected usb devices.
then i should add new line to .vmx file.
usb.autoConnect.device0 = "path:1/3/0/1 autoclean:1"
But as i said before editing of .vmx file is possible only VM is off, as Vcenter can do the same when VM is on. I’m looking for the same solution but from CLI.