Workstation User’s Manual
356 VMware, Inc.
Access and Use a USB Device on a Linux Host
OnLinuxhosts,WorkstationusestheUSBdevicefilesystemtoconnecttoUSBdevices.
IftheUSBdevicefilesystemisnotlocatedin/proc/bus/usb,youmustmounttheUSB
filesystemtothatlocation.
Beforeyoubegin,addaUSBcontrollertothevirtualmachineifthevirtualmachine
doe
snothaveone.Se
e“A d d aUSBControllertoaVirtualMachine”onpage 352.
DonotattempttoaddaUSBdrive’sdevicenodedirectory(forexample,/dev/sda)to
thevirtualmachineasaharddisk.
To access and use a USB device on a Linux host
1Runthefollowingcommandasroot:
mount -t usbfs none /proc/bus/usb
2 ConnecttheUSBdevicetothehostandbeginusingit.
How Device Control Is Shared Between Host and Guest
OnlythehostortheguestcanhavecontrolofaUSBdeviceatanyonetime.Device
controloperatesdifferently,dependingonwhetherthehostisaLinuxoraWindows
computer.
Device Control on a Windows Host
Whenyouconnectadevicetoavirtualmachine,itisdisconnectedfromthehostor
fromthevirtualmachinethatpreviouslyhadcontrolofthedevice.Whenyou
disconnectadevicefromavirtualmachine,itisreturnedtothehost.
Undersomecircumstances,ifaUSBstoragedeviceisinus
eonthehost(forexampl
e,
oneormorefilesstoredonthedeviceareopenonthehost),anerrorappearsinthe
virtualmachinewhenyoutrytoconnecttothedevice.Youmustletthehostcomplete
itsoperationorcloseanyapplicationconnectedtothedeviceonthehost,andconnect
tothede
viceinthevirtualmachineagain.
OnWindowsXPandWindowsServer2003hosts,whenyouconnectaUSBnetworkor
storagedevicetoavirtualmachine,amessagemightappearonthehostthatsaysthe
devicecanberemovedsafely.Thisisnormalbehavior
,andyoucandi
smissthedialog
box.However,donotremovethedevicefromyourphysicalcomputer.
Ifthenetworkorstoragedevicedoesnotdisconnectfromthehost,usetheappropriate
systemtrayicontodisconnectit.OnWindowsXPandWindowsServer2003,itiscalled
SafelyRemoveHardware.
Comentários a estes Manuais