In my home lab I have a couple of machines that I want to start up as soon as the host starts up and in a particular order, that’s the AD controller followed by the vCenter Server server. Both are Windows virtual machines but the procedure works with any virtual machine actually.
The tip is described in the vSphere Basic System Administration PDF document available at VMware.com, page 140.
- In the inventory, display the host where the virtual machine is located.
- Select the host and click the Configuration tab.
- Click Virtual Machine Startup/Shutdown, and click Properties
- Select Allow virtual machines to start and stop automatically with the system.
- Click Continue immediately if the VMware Tools starts to have the operating system boot immediately after VMware Tools starts.
- To have the operating system start after a brief delay, enter a Default Startup Delay time. This delay allows time for VMware Tools or the booting system to run scripts.
- Select a shutdown action and enter a Default Shutdown Delay value to delay shutdown for each virtual machine by a certain amount of time. This shutdown delay applies only if the virtual machine has not already shut down before the delay period elapses. If the virtual machine shuts down before that delay time is reached, the next virtual machine starts shutting down.
- Use Move Up and Move Down to specify the order in which the virtual machines start when the system starts.
- To configure user-specified autostartup and autoshutdown behavior for any virtual machine, select the virtual machine and click Edit.
In my case my Virtual Machine Startup and Shutdown Behavior looks like this:
- My AD controller starts first, then as soon as the VMware Tools starts but with a maximum delay of 60 seconds then,
- The second VM start up (vCenter Server).
- Then once all VMs in the Automatic Startup section have all started up, the system carries on with the VMs in the Any Order section. In my case I have a third VM which is not tied to a particular order and has different settings than the defaults.