VMware ESXi and vSphere Cluster Management
Connect or Disconnect USB Devices in VMware Workstation Player Virtual Machines
Learn how to connect a USB device to a running VMware Workstation Player VM, verify it in the guest, safely disconnect it, and return it to the host.
VMware Workstation Player can use USB passthrough to assign a physical USB device connected to the host computer to a virtual machine (VM). This lets the guest operating system use a flash drive, scanner, hardware key, or another supported USB peripheral.
The device normally belongs to one operating system at a time. When you connect it to the guest, VMware disconnects it from the host. When you disconnect it from the guest, control returns to the host.
Understand host and guest USB ownership
The host operating system is installed directly on the physical computer running VMware Workstation Player. The guest operating system runs inside the VM.
A physical USB device can generally be controlled by either the host or the powered-on guest, but not both at once. This ownership change is the central idea behind USB passthrough:
- Connected to the host: Host applications can use the device, but the guest does not have direct control of it.
- Connected to the guest: The guest can use the device, and the host releases it.
- Disconnected from the guest: The device becomes available to the host again.
Requirements before connecting a USB device
- The target VM must be powered on. A USB device cannot be attached to a VM that is powered off.
- The USB device must be physically plugged into the host computer.
- The host must recognize the device. Test it on the host before troubleshooting the VM.
- The guest must include a compatible built-in or vendor-provided driver.
- Applications using the device should be closed on the host before attempting passthrough.
For storage, make sure pending transfers and synchronization tasks have finished. For specialized peripherals, check whether the guest application requires a particular driver, permission, or configuration.
Automatic USB connection behavior
When a USB device is inserted while a VM is running, Player may direct the newly inserted device to the active guest instead of leaving it with the host. The active virtual machine window is the VMware window currently selected for keyboard and mouse input.
Automatic behavior can depend on the device type, which window has focus, Player configuration, and host and guest support. Do not assume that insertion always attaches the device to the guest. Check the guest and host, then use the manual connection procedure when necessary.
Example: a device inserted while the VM is active
- Power on the target VM and leave its window active.
- Insert the supported USB device into the host computer.
- Check whether the device appears automatically in the guest.
- If it remains available on the host, attach it manually through Player > Removable Devices.
Connect a USB device through the Player menu
Use this procedure to attach a detected USB device to a running guest:
- Start the VM and wait for the guest operating system to finish booting.
- Insert the USB device into the host computer if it is not already connected.
- In the running VM window, open the Player menu.
- Open Removable Devices. This submenu lists detected removable hardware, including eligible USB devices.
- Select the USB device you want to use.
- Choose Connect (Disconnect from host).
- Wait for the guest to detect the device.
- Verify the device in the guest operating system.
Player > Removable Devices > [USB device] > Connect (Disconnect from host)The device may disappear from host file managers or host device tools immediately after the ownership change. That is expected: the guest now controls the physical device.
Connect or disconnect from the VM status-bar icon
Player may show a removable-device or USB icon in the VM status bar or taskbar area. This icon provides a shortcut to the same ownership controls.
- Locate the removable-device or USB icon in the running VM interface.
- Right-click the icon.
- Select the desired USB device.
- Choose the available connect action to assign it to the guest, or the disconnect action to return it to the host.
This shortcut performs the same operation as the Removable Devices menu; it only provides a faster route.
Verify the device inside the guest
Connecting a device in Player does not guarantee that the guest has mounted it or assigned it a usable path. Verification depends on the device type and guest operating system.
USB storage
- Open the guest file manager and look for a new drive or mounted volume.
- Use the guest disk-management utility to check whether the device is detected but not mounted.
- If the volume is present but has no drive path or mount point, assign one using the guest's normal storage tools.
USB peripherals
- Check the guest's device settings or device manager.
- Install the manufacturer's guest driver if the operating system does not provide one.
- Open the relevant guest application and test the scanner, hardware key, or other peripheral.
Disconnect a USB device and return it to the host
Before changing ownership, stop all activity involving the device. For removable storage, use the guest operating system's safe-eject or unmount command first.
- Close guest applications that are using the USB device.
- Stop file transfers, backups, synchronization, and other writes.
- For storage, use the guest's Eject, Safely Remove, or Unmount control.
- With the VM still running, open Player > Removable Devices.
- Select the USB device currently attached to the guest.
- Choose Disconnect (Connect to host).
- Wait for the host operating system to detect the device again.
Player > Removable Devices > [USB device] > Disconnect (Connect to host)You can use the status-bar shortcut instead: right-click the removable-device icon, select the attached device, and choose the disconnect action that connects it back to the host.
Example: attach a USB flash drive to a Windows or Linux guest
- Insert the flash drive into the host computer.
- Confirm that the host recognizes it, then close any host file manager or synchronization window using the drive.
- Power on the target VM.
- Open Player > Removable Devices.
- Select the flash drive and choose Connect (Disconnect from host).
- Open the guest file manager or disk utility and locate the drive.
- Read or modify the files from the guest as needed.
- When finished, close files and applications, finish all transfers, and safely eject or unmount the drive in the guest.
- Choose Disconnect (Connect to host) in Player.
- Confirm that the host detects the flash drive and then use the host's safe-removal process before physically unplugging it.
Example: use a USB peripheral in the guest
- Connect a supported scanner, hardware key, or similar peripheral to the host.
- Attach it from the Removable Devices menu or the status-bar device icon.
- Install or confirm the required driver in the guest.
- Test the peripheral with its guest application.
- Close the application and return the device to the host when guest use is complete.
USB device connection states
Common USB passthrough issues
Safe removal and data protection
- Stop file transfers before disconnecting the device from either operating system.
- Close applications that have files, ports, or device handles open.
- Use the guest's safe-eject or unmount process before returning removable storage to the host.
- After the device returns to the host, use the host's safe-removal process before unplugging it.
- Never physically unplug storage while either system may still be writing to it.
Changing ownership without an eject or unmount can leave cached writes pending and may corrupt the filesystem or lose data.
Compatibility and passthrough limitations
Some specialized USB devices require guest drivers, elevated permissions, firmware support, or application-specific configuration. A device can appear in Player yet remain unusable until the guest driver is installed.
Host software can also prevent passthrough. Backup, synchronization, security, endpoint-management, and device-management tools may keep a device open. Close or pause those tools only when appropriate for the host's security and data-protection requirements.
USB passthrough is different from shared folders. Passthrough assigns the physical USB device to the guest. Shared folders provide access to selected host files without attaching the physical USB storage device to the guest.
Exam-relevant points
- The VM must be powered on before a USB device can be attached.
- The device must be physically connected and recognized by the host.
- Connect (Disconnect from host) attaches the device to the guest.
- Disconnect (Connect to host) returns the device to the host.
- The host and guest generally cannot control the same physical USB device at the same time.
- Safe-eject or unmount removable storage before changing ownership.
- Player connection does not replace the need for compatible guest drivers or guest-side mounting.
For a concise repeatable procedure, use the USB device connection and disconnection guide as a reference.