Workstation User’s Manual
130 VMware, Inc.
Topreventastringfrombeingpassedfromthehosttotheguestthroughtheservice,
setthefollowinglineinyourvirtualmachine’sconfigurationfile:
isolation.tools.getMachineID.disable = "TRUE"
String in a Startup Command
Ratherthansettingthemachine.idparameterintheconfigurationfile,youcanpass
thestringtotheguestoperatingsystemfromthecommandlinewhenyoupoweron
thevirtualmachine.Followingisanexampleofsuchastartupcommand(enteredon
oneline):
“C:\Program Files\VMware\VMware Workstation\vmware -s
'machine.id=Hello World'
C:\Virtual Machines\win2000\win2000.vmx”
Usethismethodtodeployvirtualmachinesonanetworkusingacommon
configurationfilewhileprovidingeachmachinewithitsownuniqueidentity.
Launcheachvirtualmachinewiththevmware -scommand.Eachvirtualmachinedisk
filemustbecopiedintoitsowndirectoryifitsharesitsfilenamewithanothervi
rtual
machinedi
skfile.
OnaLinuxhost,themachineIDpassedonthecommandlinetakesprecedenceandis
passedtotheguestoperatingsystemifthefollowingconditionsaremet:
AvirtualmachineIDisspecifiedinthevirtualmachine’sconfiguration(.vmx)file
whichisusedtoopenthevirtualmachine.
YouspecifyamachineIDonthecommandline.
Use a String in a Startup Script to Set a Name and IP Address
ThefollowingexampleusesaWindowshosttoillustratehowyoucanusetheservice
toretrieveastringcontainingwhatbecomesthevirtualmachine’smachinenameand
IPaddress.Inthisexample,W2K‐VMisthemachinenameand148.30.16.24isthe
IP address.
Kommentare zu diesen Handbüchern