VMware, Inc. 125
Chapter 5 Installing and Using VMware Tools
Customizations to VMware Tools
Customizationsincludemodifyingorwritingscriptsthatrunwhenavirtualmachine’s
powerstatechanges,executingcommandswhenyoushutdownorrestartaLinux,
Solaris,orFreeBSDguest,andpassingcommandsinstringsthatruninstartupscripts.
How VMware Tools Scripts Affect Power States
WhenVMwareToolsisinstalled,ifyouconfigureavirtualmachine’spowercontrolsto
usetheguest,orsoft,poweroptions,oneormoredefaultscriptsrunontheguest
wheneveryouchangethepowerstateofthevirtualmachine.Youchangethepower
statebyusingmenucommandsorbycl
ickingtheSuspend,Resume,PowerOn,and
PowerOffbuttons.
Whatthedefaultscriptsdodependsinpartontheguestoperatingsystem:
OnmostMicrosoftWindowsguests,butnotwindowsNTandWindowsMe,the
defaultscriptexecutedwhenyoususpendavirtualmachinereleasestheIP
addressofthevirtualmachine.Thedefaultscriptexecutedwhenyouresumea
virtualmachinerenewstheIPaddressofthevirtualmachine(thisaffectsonly
vi
rtualmachinesconfiguredtouseDHCP).ScriptscannotberunonWindows95
guests.
InWindowsguests,thedefaultscriptsarelocatedintheProgram
Files\VMware\VMware Toolsfolder.
OnmostLinux,Solaris,andFreeBSDguests,thedefaultscriptexecutedwhenyou
suspendavirtualmachinestopsnetworkingforthevirtualmachine.Thedefault
scriptexecutedwhenyouresumeavirtualmachinestartsnetworkingforthe
virtualmachine.ScriptscannotberunonNetWareandFreeBSDguests.
OnLinux,Solaris, andFr
eeBSDguests,thedefaultscriptsarelocatedinthe
/etc/vmware-toolsdirectory.
Youcancreateyourownscriptsandusetheminsteadofthedefaultscriptsshownin
Table 5‐4.
Kommentare zu diesen Handbüchern