VMware Communities
danielrosehill
Contributor
Contributor

Configure connection rules for USB devices (Linux host, Windows guest)

Hi!

I'm using a Windows VM on an Ubuntu Linux host (22.04 LTS). I have Workstation Pro.

I would like to set up a couple of USB connection rules:

-> Always connect this device when detected (printer)

-> Never connect this device when detected (phone)

Is there a way to do this? I can't find connection rules anywhere under the various USB settings pages.

0 Kudos
1 Reply
bluefirestorm
Champion
Champion

Not sure if this will work, you could try to add the following to the VM vmx. It might affect only the menu.

#allow any USB printer
usb.numClassRestrictions = "1"
usb.classRestrictions0.allow = "TRUE"
usb.classRestrictions0.classID = "7"

#disallow specific phone device
usb.numDeviceRestrictions = "1"
usb.DeviceRestrictions0.allow = "FALSE"
usb.DeviceRestrictions0.vendorID = "<your phone vendor ID in hexformat>"
usb.DeviceRestrictions0.productID = "<your phone product ID in hexformat>"

0 Kudos