Skip to content

Instantly share code, notes, and snippets.

@edgarnadal
Created October 8, 2017 18:10
Show Gist options
  • Save edgarnadal/5fb0c6c049e24c40a2dbd5998368dd3b to your computer and use it in GitHub Desktop.
Save edgarnadal/5fb0c6c049e24c40a2dbd5998368dd3b to your computer and use it in GitHub Desktop.
Auto power on VMs when XenServer 6.x startup

Setting the Virtual Machines to Auto-Start

Gather the UUID’s of the Virtual Machine you want to auto-start by typing:

xe vm-list

Note: This generates a list of Virtual Machines in your pool or server and their associated UUID’s.

Copy the UUID of the Virtual Machines you want to auto-start, and type the following command for each Virtual Machine to auto-start:

xe command to enable auto power on feature for the specified VM

xe vm-param-set uuid=UUID other-config:auto_poweron=true

Note: Replace UUID with the UUID of the Virtual Machine to auto-start.

Repeat for all vm’s you like to autostart.

Important to switch this off if you are going to use HA, DR and Pool upgrade functionality because the auto-start function interfered with High Availability, Disaster Recovery and Pool upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment