You can set whether a USB device connects to your Mac or to your virtual machine whenever you attach the device.
This setting can be different for each virtual machine. If you set the default plug-in action for a virtual machine, but the virtual machine is not powered on when you attach the device, the device attaches to the Mac.