VMware, Inc. 127
Chapter 5 Installing and Using VMware Tools
Beforecreatingcustomscripts,makesurethatthefollowingconditionsaremetinthe
guestoperatingsystem:
ThevirtualmachineisusingthelatestversionofVMwareTools.
TheVMwareToolsserviceisrunninginthevirtualmachine.
Dependingontheoperationthescriptperforms,thevirtualmachinehasavirtual
networkadapterconnected.Ifnot,thepoweroperationfails.
(Linux,Solaris,andFreeBSDguestsonly)ToeditascriptbyusingtheEditbutton
ontheScriptstab,xtermandvimustbeinstalledintheguestoperatingsystem
andmustbeinyourPATH.Youmustbearootusertoeditthescript.
To create scripts to override default VMware Tools scripts
1 Determinewhetheryouwanttocreateyo
urcustomscriptbymakingchangesto
thedefaultscriptandsavingittoanewlocation.
InWindowsguests,thedefaultscriptsarelocatedintheProgram
Files\VMware\VMware Toolsfolder.
OnLinux,Solaris, andFreeBSD,thedefaultscriptsarelocatedinthe
/etc/vmware-toolsdirectory.
2Modifythedefaultscriptandsaveitwithad
ifferentnameorwriteadifferent
script.
OnWindowsguests,ifyouwriteanewscript,createthescriptasabatchfile.
For Linux,Solaris,andFreeBSD,createthescriptinanyexecutableformat(suchas
shellorPerlscripts).
YoucanalsousetheEditbuttonontheSc
riptstaboftheVMwareToolscontrol
paneltoeditacustomscript.Youcanalsoeditscriptsmanuallyusinganytext
editor.
3Associateeachcustomscriptwithitsparticularpoweroperation:
aOntheScriptstaboftheVMwareToolscontrolpanel,selecttheappropriate
scriptevent.
b SelecttheUseScriptcheckbo
x,selectCustomscript,andusetheBrowse
buttontopointtothescriptyouwanttouse.
cClickOK.
WhenyoureinstallVMwareToolsafteryouupdatetheWorkstationsoftware,any
changesyoumadetothedefaultscriptsareoverwritten.Anycustomscriptsyou
createdremainuntouched,butdonotbe
nefitfromanyunderlyingchangesthat
enhancethedefaultscripts.
Kommentare zu diesen Handbüchern