Use Device Connect or Disconnect
You can connect and disconnect removable devices such as floppy drives, DVD/CD-ROM drives, ISO images, USB devices, sound adapters, and network adapters.
If you plan to script commands to connect or disconnect a virtual device, and for the exit codes are, see Exit Codes for the VMware Tools Configuration Utility.
- Some devices cannot be shared between the host and guest operating systems or between two guest operating systems. For example, only one virtual machine or the host can access the physical CD-ROM drive at any one time.
- The controls for connecting and disconnecting devices might not be available, depending on whether your system administrator has enabled them.
You can run the configuration utility to connect and disconnect virtual devices. For security reasons, this ability is disabled by default. To connect or disconnect devices, you must first change the settings in the configuration file.
- Configure the virtual machine to allow devices to connect or disconnect.
- Edit the configuration (.vmx) file of the virtual machine with a text editor.
- If the following properties are not listed in the file, add them and set them to FALSE.isolation.device.connectable.disable = "FALSE" isolation.device.edit.disable = "FALSE"
- Save and close the file.
- Open a command prompt or terminal in the guest operating system.
- Change to the VMware Tools installation directory.Operating SystemDefault PathWindowsC:\Program Files\VMware\VMware ToolsLinux and Solaris/usr/sbinFreeBSD/usr/local/sbinMac OS X/Library/Application Support/VMware Tools
- Typeto list available devices.utility-namedevice listForutility-name, use the guest-specific application name.Operating SystemUtility NameWindowsVMwareToolboxCmd.exeLinux, Solaris, and FreeBSDvmware-toolbox-cmdMac OS Xvmware-tools-cli
- Type the command to determine whether a device is connected.utility-namedevice statusdevice-nameFordevice-name, use one of the names displayed when you used thelistsubcommand.
- Type the command to connect or disconnect the device.utility-namedevicedevice-namesubcommandOptionActiondevice-nameUse one of the names displayed when you used thelistsubcommand.subcommandUseenableordisable.
The device is connected or
disconnected, as you specified.