VMware

VMware ESX Server 2.0

Features | Documentation | Knowledge Base | Discussion Forums

previous Prev   Contents   Last   Next next

Executing Commands When ESX Server Requests the Guest Service to Halt or Reboot a Virtual Machine

Executing Commands When ESX Server Requests the Guest Service to Halt or Reboot a Virtual Machine

In a Linux guest, you can have the guest service execute specific commands when ESX Server asks it to halt or reboot the virtual machine's guest operating system. If you use nonstandard utilities or want to do additional things before shutting down or rebooting the guest operating system, you can override the default commands the guest service executes by modifying the /etc/vmware/dualconf.vm startup script in the guest to start the guest service with the following command line options:

/etc/vmware/vmware-guestd --halt-command <command>

where <command> is the command to execute when ESX Server asks the guest service to halt the guest operating system

/etc/vmware/vmware-guestd --reboot-command <command>

where <command> is the command to execute when ESX Server asks the guest service to reboot the guest operating system

previous Prev   Contents   Last   Next next