To automatically connect a particular USB device:
Caution: Be aware that you may "break" the USB functionality for your virtual machine if you configure conflicting autoconnect settings.
Identifying and Obtaining the USB Device's Vendor ID and Product ID
On a Linux host, after you connect the USB device, you can find the vendor and product ID in the /proc/bus/usb/devices file. For example:
more /proc/bus/usb/devices
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0529 ProdID=0001 Rev= 2.15
S: Manufacturer=AKS
S: Product=HASP HL 2.15
Here, 529 is the vendor ID and 1 is the product ID for the HASP HL device.
On a Windows host, you may find the vendor and product IDs in the registry.
Caution: This procedure involves accessing the registry. Incorrect changes to the registry can leave your system unstable or unable to run. Always back up the registry before you edit it, and exercise caution in making changes to the registry. VMware takes no responsibility for problems that may arise.
Editing the Virtual Machine's Configuration File
The configuration (.vmx) file is normally located in the same directory in which the virtual machine was created. Make sure the virtual machine is powered off before you edit this file.
To autoconnect the HASP HL device from the previous example, add the following line in the .vmx file of the virtual machine:
usb.autoConnect.device0 = "0x529:0x1"
Or, for the Cruzer Mini device, add:
usb.autoConnect.device0 = "0x781:0x7101"
Note: Prepend 0x to each value — it must be in hex format.
You can specify multiple devices for autoconnect, provided that there are not more than two USB devices available to the host at the same time. Multiple entries for autoConnect are shown in the following example. An ellipsis ( ? ) indicates the omission of an actual vendor or product ID. You need to include a specific value, as shown for device0 and device1.
usb.autoConnect.device0 = "0x529:0x1"
usb.autoConnect.device1 = "0x781:0x7101"
usb.autoConnect.device2 = ....
usb.autoConnect.device3 = ....
For more information about using USB devices in Workstation 5, see "Using USB Devices in a Virtual Machine" in the VMware Workstation 5 User's Manual.
detail URL : http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1648联系客服