VMware Workstation 4.5
Using USB Devices in a Virtual Machine
Using USB Devices in a Virtual Machine
The following sections describe how to use USB devices in a virtual machine:
VMware Workstation 4 provides a two-port USB 1.1 controller. You can use up to two USB devices in your virtual machine if both your host operating system and your guest operating system support USB. If your host computer supports USB 2.0 devices, you can use those devices in the virtual machine.
Note: Windows NT and Linux kernels older than 2.2.17 do not support USB.
Although your host operating system must support USB, you do not need to install device-specific drivers for your USB devices in the host operating system if you want to use those devices only in the virtual machine.
On a Windows 2000 host computer with USB 2.0 support, be sure you are using the Microsoft USB 2.0 driver for the USB controller. Third-party USB 2.0 drivers, such as those provided by some motherboard manufacturers, are not supported. For notes on replacing the third-party drivers, see Replacing USB 2.0 Drivers on a Windows 2000 Host.
Notes on USB Support in Version 4
Notes on USB Support in Version 4
We have tested a variety of USB devices with this release. In general, if the guest operating system has appropriate drivers, you should be able to use PDAs, printers, storage (disk) devices, scanners, MP3 players, digital cameras and memory card readers.
Modems and certain streaming data devices, such as speakers and Web cams, do not work properly.
Enabling and Disabling the USB Controller
Enabling and Disabling the USB Controller
The virtual machine’s USB ports are enabled by default. If you will not be using USB devices in a virtual machine, you can disable its USB controller using the virtual machine settings editor.
Connecting USB Devices
Connecting USB Devices
When a virtual machine is running, its window is the active window and a USB device is plugged into the host computer, the device automatically connects to the guest instead of the host. This autoconnect feature can be disabled in the USB Controller panel of the virtual machine settings editor (VM > Settings). If all of the virtual machine’s USB ports are already occupied when it is trying to connect automatically to a new device, a dialog box gives you a choice: you can either disconnect one of the existing USB devices to free its port or ignore the new device, allowing the device to connect to the host.
Choose VM > Removable Devices to connect specific USB devices to your virtual machine. You can connect up to two USB devices at a time. If the physical USB devices are connected to the host computer through a hub, the virtual machine sees only the USB devices, not the hub.
There is a menu item for each of the USB ports. Move the mouse over one of these items to see a cascading menu of devices that are plugged into your host computer and available for use. To connect a device to the virtual machine, click its name.
If a device is already connected to that port, click the name of a new device to release the first device and connect the new one.
To release a connected device, click None on the cascading menu for the port to which it is connected.
If you physically plug a new device into the host computer and the autoconnect feature does not connect it to a virtual machine, the device is initially connected to the host. Its name is also added to the VM > Removable Devices menu so you can connect it to the virtual machine manually.
Using USB with a Windows Host
Using USB with a Windows Host
Windows 2000, Windows XP and Windows Server 2003 hosts: When a particular USB device is connected to a virtual machine for the first time, the host detects it as a new device named VMware USB Device and installs the appropriate VMware driver.
Windows XP and Windows Server 2003 hosts: User confirmation is required in the Found New Hardware Wizard. Select the default action Install the software automatically. Once the software is installed, the guest operating system detects the USB device and searches for a suitable driver.
When you are synchronizing a PDA, such as a Palm handheld or Handspring Visor, to a virtual machine for the first time, the total time required to load the VMware USB device driver in the host and the PDA driver in the guest may exceed the device’s connection timeout value. This causes the device to disconnect itself from the computer before the guest can synchronize with it. If this occurs, let the guest finish installing the PDA driver, dismiss any connection error warnings, then try synchronizing the PDA again. The second attempt should succeed.
Replacing USB 2.0 Drivers on a Windows 2000 Host
Replacing USB 2.0 Drivers on a Windows 2000 Host
To use VMware Workstation 4 on a Windows 2000 host that has USB 2.0 ports, you must use the Microsoft USB 2.0 drivers for the USB controller in the host operating system. If your host operating system is using a third-party driver a driver supplied by your motherboard vendor, for example you must replace it.
Take the following steps to check the provider of your driver:
- Go to the Device Manager. Right-click My Computer, choose Properties, click the Hardware tab, then click Device Manager.
- Expand the listing for Universal Serial Bus controllers.
- Right-click the listing for the controller and choose Properties.
- Click the Driver tab. If the driver provider shown on that page is Microsoft, you have the correct driver already.
If the driver provider is not Microsoft, download the latest USB driver for your host operating system from the Microsoft Web site and follow the Microsoft instructions to install it. Details are available in Microsoft knowledge base article 319973.
Installing USB Devices as a Non-Administrator
Installing USB Devices as a Non-Administrator
Any user on a Windows host can connect USB devices for use in a virtual machine. You no longer need administrative privileges on the host to connect a USB device to a virtual machine.
This functionality is not enabled by default. To enable it, you must use a text editor such as Notepad to add one line to the global configuration file. This file is
C:\Documents and Settings\ \Application Data\VMware\config.ini
Add the following line anywhere in the file:
Note: A user with administrative privileges on the host operating system must install a USB device on the host before it can be connected by users who do not have administrative privileges.
Using USB with a Linux Host
Using USB with a Linux Host
On Linux hosts, VMware Workstation uses the USB device file system to connect to USB devices. In most Linux systems that support USB, the USB device file system is at /proc/bus/usb. If your host operating system uses a different path to the USB device file system, you can change it in the virtual machine settings editor (VM > Settings > USB). Enter the correct path in the Path to usbdevfs field.
Who Has Control over a USB Device?
Who Has Control over a USB Device?
Only one computer host or guest can have control of a USB device at any one time.
Device Control on a Windows Host
Device Control on a Windows Host
When you connect a device to a virtual machine, it is «unplugged» from the host or from the virtual machine that previously had control of the device. When you disconnect a device from a virtual machine, it is «plugged in» to the host.
Caution: On Windows 2000, Windows XP and Windows Server 2003 hosts, you need to take a special step to disconnect USB network and storage devices from the host. There is a system tray icon called Eject Hardware on Windows 2000 and Safely Remove Hardware on Windows XP and Windows Server 2003. Use this icon to disconnect the device from the host before connecting it to a virtual machine.
Note: On Windows 2000, Windows XP and Windows Server 2003 hosts, when you connect a USB network or storage device in a virtual machine, you may see a message on your host that says the device can be removed safely. This is normal behavior, and you can simply dismiss the dialog box. However, do not remove the device from your physical computer. VMware Workstation automatically transfers control of the device to the virtual machine.
Under some circumstances, if a USB storage device is in use on the host (for example, one or more files stored on the device are open on the host), an error appears in the virtual machine when you try to connect to the device. You must let the host complete its operation or close any application connected to the device on the host, then connect to the device in the virtual machine again.
Device Control on a Linux Host
Device Control on a Linux Host
On Linux hosts, guest operating systems can use devices that are not already in use by the host that is, devices that are not claimed by a host operating system driver.
If your device is in use by the host and you try to connect it to the guest using the VM > Removable Devices menu, a dialog box appears, informing you that there is a problem connecting to the device.
To disconnect the device from the host, you must unload the device driver. You can unload the driver manually as root (su) using the rmmod command. Or, if the driver was automatically loaded by hotplug, you can disable it in the hotplug configuration files in the /etc/hotplug directory. See your Linux distribution’s documentation for details on editing these configuration files.
A related issue sometimes affects devices that rely on automatic connection (as PDAs often do).
If you have successfully used autoconnection to connect the device to your virtual machine, then experience problems with the connection to the device, take the following steps:
- Disconnect and reconnect the device. You can either unplug it physically, then plug it back in or use the VM >Removable Devices menu to disconnect it and reconnect it.
- If you see a dialog box warning that the device is in use, disable it in the hotplug configuration files in the /etc/hotplug directory.
Disconnecting USB Devices from a Virtual Machine
Disconnecting USB Devices from a Virtual Machine
Before unplugging a USB device or using the VM > Removable Devices menu to disconnect it from a virtual machine, be sure it is in a safe state.
You should follow the procedures the device manufacturer specifies for unplugging the device from a physical computer. This is true whether you are physically unplugging it, moving it from host to virtual machine, moving it between virtual machines or moving it from virtual machine to host.
This is particularly important with data storage devices (a Zip drive, for example). If you move a data storage device too soon after saving a file and the operating system has not actually written the data to the disk, you can lose data.
Human Interface Devices
Human Interface Devices
USB human interface devices, such as the keyboard and mouse, are not handled though the virtual machine’s USB controller. Instead, they appear in the virtual machine as a standard PS/2 keyboard and mouse, even though they are plugged into USB ports on the host.
Windows USB/DVD Download Tool
Overview
When you download Windows from Microsoft Store, you have two options: You can download a collection of compressed files, or you can download an ISO file. An ISO file combines all the Windows installation files into a single uncompressed file.
If you choose to download an ISO file so you can create a bootable file from a DVD or USB drive, copy the Windows ISO file onto your drive and then run the Windows USB/DVD Download Tool. Then simply install Windows onto your computer directly from your USB or DVD drive.
When you download the ISO file, you must copy it onto a USB or DVD. When you’re ready to install Windows, insert the USB drive or DVD with the ISO file on it and then run Setup.exe from the root folder on the drive.
This allows you to install Windows onto your machine without having to first run an existing operating system. If you change the boot order of drives in your computer’s BIOS, you can run the Windows installation directly from your USB drive or DVD when you first turn on your computer. Please see the documentation for your computer for information about how to change the BIOS boot order of drives.
Making copies
To install the software, you can make one copy of the ISO file on a disc, USB flash drive, or other media.
After you’ve installed the software and accepted the license terms that accompany the software, those license terms apply to your use of the software. The license terms for Windows permit you to make one copy of the software as a back-up copy for re-installation on the licensed computer. If you do not delete your copy of the ISO file after installing the Windows software, the copy of the ISO file counts as your one back-up copy.
If you need to download the software again, you can go to your Download Purchase History in your Microsoft Store account and access the download there.
Installation
To install the Windows USB/DVD Download Tool:
2. Click Download then Run.
3. Follow the steps in the setup dialogs. You’ll have the option to specify where to install the Windows USB/DVD Download Tool.
You must be an administrator on the computer on which you are installing the Windows USB/DVD Download tool. It requires the Microsoft .NET Framework version 2.0 or higher.
System requirements
Windows XP SP2, Windows Vista, or Windows 7 (32-bit or 64-bit)
Pentium 233-megahertz (MHz) processor or faster (300MHz is recommended)
50MB of free space on your hard drive
DVD-R drive or 4GB removable USB drive
For Windows XP users
The following applications must be installed prior to installing the tool:
Microsoft .NET Framework 2.0 must be installed. It can be downloaded here.
Microsoft Image Mastering API v2 must be installed. It can be downloaded here.
Using the Windows USB/DVD Download Tool
Before you run the Download Tool, make sure you have purchased the Windows ISO download from Microsoft Store and downloaded the Windows ISO file to your drive. If you have purchased Windows but have not yet downloaded the ISO file, you can download the ISO file from your Microsoft Store Account.
To make a copy of your Windows ISO file:
1. Click the Windows START button, and click WINDOWS USB/DVD DOWNLOAD TOOL in the ALL PROGRAMS list to open the Windows USB/DVD Download Tool.
2. In the SOURCE FILE box, type the name and path of your Windows ISO file, or click BROWSE and select the file from the OPEN dialog box. Click NEXT.
3. Select USB DEVICE to create a copy on a USB flash drive or select DVD disk to create a copy on a DVD disk.
4. If you are copying the file to a USB flash drive, select your USB device in the drop-down list and click BEGIN COPYING. If you are copying the file up to a DVD, click BEGIN BURNING.
When your Windows ISO file is copied to your drive, install Windows by moving to the root folder of your DVD or USB drive, and then double-click Setup.exe.
Frequently Asked Questions
Where can I download .NET framework 2.0?
The .NET framework can be downloaded here.
Where can I download Image Mastering API 2.0?
The Image Mastering API can be downloaded here.
What size USB drive is required?
You need a USB drive with a minimum of 4GB of free space.
Can I use my newly created USB drive to install Windows on someone else’s computer?
No. The Windows ISO file on the USB drive is only intended to be used to install Windows on the licensed user’s own computer.
Can I back up to a CD-ROM?
No. The Windows ISO file is too large to fit on a CD.
Can I back up to a Blu-ray Disc?
Yes, as long as your DVD drive can write to a Blu-ray Disc.
IfI have other files on the USB drive will the Windows USB/DVD download tool delete them?
This tool requires the USB drive to be completely blank before the Windows files are copied. This helps ensure that the device is bootable after the copying has completed.
Can I backup to an external hard drive or other device with enough free disk space?
Yes, but this is not recommended. The device must be formatted in order for the device to be bootable. A dedicated USB flash drive would be a better option.
Can I use the Windows USB/DVD Download Tool to back up other files?
No. This tool is only for use with the Windows ISO file purchased from Microsoft Store.
Does the tool support dual-layer DVD discs for burning?
No. Currently, the tool does not support dual-layer DVD discs.
Troubleshooting
The tool is asking me to install the .NET framework and Image Mastering API before I install the tool
If you’re running Windows XP, you must install the .NET Framework 2.0 and the Image Mastering API 2.0 before installing the tool. You can download .NET framework here and you can download the Image Mastering API here.
A restart may be required after installing the .NET framework and the Image Mastering API.
When creating a bootable USB device, I am getting an error about bootsect
To make the USB drive bootable, you need to run a tool named bootsect.exe. In some cases, this tool needs to be downloaded from your Microsoft Store account. This may happen if you’re trying to create a 64-bit bootable USB device from a 32-bit version of Windows. To download bootsect:
1. Login to your Microsoft Store account to view your purchase history.
2. Look for your Windows purchase.
3. Next to Windows, there is an Additional download options drop-down menu.
4. In the drop-down menu, select 32-bit ISO.
5. Right-click the link, and then save the bootsect.exe file to the location where you installed the Windows USB/DVD Download Tool (e.g. C:\Users\username\AppData\Local\Apps\Windows USB DVD Download Tool).
6. Once the file has been saved, go back to the Windows USB/DVD Download Tool to create your bootable USB device.
My USB drive is not in the list of available devices
If you don’t see your USB drive in the list of available devices, please make sure the drive is inserted in the USB port, and then click the Refresh button beside the list of available drives.
I inserted a blank DVD in my DVD-ROM drive, but the Windows USB/DVD Download Tool doesn’t recognize it
If there are multiple drives on the system, the tool will select the first one that is capable of burning DVDs. If you have multiple DVD-R drives, try inserting the blank DVD into another DVD-R drive. If that doesn’t help, please make sure that your disc isn’t damaged and that your DVD-R drive is operational. Contact Product Support if issues continue to arise.
I inserted a blank DVD in my DVD-ROM drive, but the tool won’t let me burn it
Make sure the disc isn’t a dual-layer DVD disc. Currently, dual-layer discs are not supported within the tool.