Specifications

Administration Guide
72 VMware, Inc.
You!perform!these!power!operations!from!the!toolbar!buttons!and!menus!in!the!
consoles.!For!more!information!on!changing!the!power!state!of!a!virtual!machine!in!a!
console,!see!“Special!Power! Options !for!Virtual!Machines”!on!page 157.
Scripts!can!run!when!using!the!power!buttons!in!the!VMware!Management! Interface.!
See!“Running!the!VMware!Management!Interface”!on!page 80.
Scripts!can!be!executed!only!when!the!VMware!guest!operating!system!service!is!
running.!The!guest!service!starts!by!default!when!you!start!the!guest!operating!system.!
See!“Using!the!VMware!Guest!Operating!System!Service”!on!page 49.
Default!scripts!are!included!in!VMware!Tools.
!The!default!script!executed!when!
suspending!a!virtual!machine!stops!networking!for!the!virtual!machine!while!the!
default!script!executed!when!resuming!a!virtual!machine!starts!networking!for!the!
virtual!machine.
In!addition,!you!can!create!your!own!scripts.!The!scripts!you!run!must!be!batch!files!for!
Windows!hosts!but
!can!be!any!executable!format!(such!as!shell!or!Perl!scripts)!for!Linux!
hosts.!You!should!be!completely!familiar!with!these!types!of!scripts!before!you!modify!
the!default!scripts!or!create!your!own.
If!you!create!your!own!scripts,!associate!each!script!with!its!particular!power!operation.!
See!“Choosing!Scripts
!for!VMware!Tools!to!Run!During!Power!State!Changes!on!
page 162.
For!scripts!and!their!associated!power!operations!to!work,!the!following!conditions!
must!be!met:!
! The!VMware!guest!operating!system!service!must!be!running!in!the!virtual!
machine.!
! The!version!of!VMware!Tools!must!be!updated!to!the!current!version.!If!you!are!
using!a!virtual!machine!created!with!an!older!version!of!VMware!ESX!Server!or!
another!older!VMware!product,!update!VMware!Tools!to!the!version!included!in!
this!release.
! Depending!upon!the!operation!the!script!performs,!the!virtual!machine!must!have!
a!virtual!network!adapter!connected,!otherwise!the!power!operation!fails.
Issues to Consider
When!you!reinstall!VMware!Tools!after!you!upgrade!the!VMware!ESX!Server!software,!
any!changes!you!made!to!the!default!scripts!are!overwritten.!Any!scripts!you!created!
on!your!own!remain!untouched,!but!do!not!benefit!from!any!underlying!changes!that!
enhance!the!default!scripts.