Contents
Previous Next
Executing Commands After You Power Off or Reset a Virtual Machine
In a Linux guest, you can have the VMware Tools service execute specific commands when you shut down or restart the guest operating system. This is in addition to any script that you may have specified to run when you shut down the guest operating system.
In order to execute these commands, you need to modify /etc/vmware-tools/tools.conf. The commands are:
halt-command = <command>
(where <command> is the command to execute when you shut down the guest operating system)
reboot-command = <command>
(where <command> is the command to execute when you restart the guest operating system)