
VMware, Inc. 237
Chapter 11 Using Disks and Disk Drives
Lockfilesarecreatedinsubdirectorieswitha.lcksuffix.Thelockingsubdirectories
resideinthesamedirectoryasthevirtualmachine’s.vmdkfiles.Alockingsubdirectory
andlockfilearecreatedfor.vmdkfiles,.vmxfiles,and.vmemfiles.
SincetheWorkstation6.0release,aunifiedlockingmethodisusedonallho
stop
erating
systems,sofilessharedbetweenthemarefullyprotected.For example,ifoneuseron
aLinuxhosttriestopoweronavirtualmachinethatisalreadypoweredonbyanother
userwithaWindowshost,thelockfilespreventtheseconduserfrompoweringonthe
vi
rtualmachine.
Whenavirtualmachinepowersoff,itremovesthelockingsubdirectoriesandtheirlock
files.Ifitcannotremovetheselockingcontrols,oneormorestalelockfilesmight
remain.Forexample,ifthehostmachinefailsbeforethevirtualmachineremovesits
lockingcontrols,stalelockfilesremain.
Whenthevi
rtualmac
hinerestarts,itscansanylockingsubdirectoriesforstalelockfiles
and,whenpossible,removesthem.Alockfileisconsideredstaleifbothofthe
followingconditionsaretrue:
Thelockfilewascreatedonthesamehostthatisnowrunningthevirtualmachine.
Theprocessthatcreatedthelockisnolongerrunning.
Ifeitheroftheseconditionsisnottrue,adialogboxwarnsyouthatthevirtualmachine
cannotbepoweredon.Youcandeletethelockingdirectoriesandtheirlockfiles
manually.
Locksalsoprotectphysicaldiskpartitions.However,thehostoperatingsy
stemisnot
aw
areofthislockingconventionandthusdoesnotrecognizeit.Forthisreason,
VMwarerecommendsthatthephysicaldiskforavirtualmachinenotbeinstalledon
thesamephysicaldiskasthehostoperatingsystem.
IDE and SCSI Disk Types
VirtualdiskscanbesetupasIDEdisksforanyguestoperatingsystem.Theycanbeset
upasSCSIdisksforanyguestoperatingsystemwithadriverfortheLSILogicor
BusLogicSCSIadapteravailableinaWorkstationvirtualmachine.Youdetermine
whichSCSIadaptertouseatthetimeyo
ucreatethevirtualmac
hine.
Avirtualdiskofeithertypecanbestoredoneithertypeofphysicalharddisk.Thatis,
thefilesthatmakeupanIDEorSCSIvirtualdiskcanbestoredonanIDEharddiskor
aSCSIharddisk.Theycanalsobestore
donothertypesoffast‐
accessstoragemedia.
NOTETouseSCSIdisksina32‐bitWindowsXPvirtualmachine,downloadaspecial
SCSIdriverfromtheDownloadspageoftheVMwareWebsite.Followtheinstructions
ontheWebsitetousethedriverwithafreshinstallationofWindowsXP.
Kommentare zu diesen Handbüchern