3 Replies Latest reply on Jun 23, 2019 6:17 PM by bonnie201110141

    Prevent USB device from autoconnect

    Falcon55 Lurker

      Hello,

      how can I prevent an special usb device from autoconnecting to a virtual machine?

        • 1. Re: Prevent USB device from autoconnect
          bonnie201110141 Expert
          VMware Employees

          There are two ways a USB device is connected to a VM automatically.

           

          1) If you have configured autoconnect option like below in .vmx file from your VM directory

          usb.autoConnect.device0 = "vid:pid"

           

          then the device will be automatically connected to the VM when plugged in or at VM power on. Please see VMware Knowledge Base

           

          In this situation, just remove above entry from .vmx file

           

          2) If you have configured to ask VMware Workstation to always connect a specific USB device to a VM, and remember the choice, the USB device will be automatically connected to the VM when plugged in. To prevent this, please remove corresponding entry from %programdata%\VMware\VMware USB Arbitration Service\usbarb.rules. After removed, please plug in the USB device again, and make it connect to the host and remember the choice.

           

          Let me if it works for you.

          • 2. Re: Prevent USB device from autoconnect
            Falcon55 Lurker

            unfortunately, the conetnt of this file (2) is

             

            {

              "version": 1,

              "rules": []

            }

             

            so no entry there. The USB Device is an USB HUB with Network Adapter, and I want the network adapter to be connected to the host automatically.

            • 3. Re: Prevent USB device from autoconnect
              bonnie201110141 Expert
              VMware Employees

              Then please do the following to enable logs:

              1) VM > Settings > Optoins > Advanced > Gather debugging information to Full, and check "Gather verbose USB debugging information"

              2) Power on the VM and reproduce the issue

               

              Please then attach vmware.log from your VM directory.