Citrix XenServer 6.0 enable VM autostart

Unlike previous versions, VMs do not have a visible property in the GUI allowing autostart. This has been claimed to collide with the HA function of the licensed version. While I believe there is a more elegant way of doing that (like – ignoring this property if HA is enabled), the following method can allow your free XenServer allow autostart of VMs:
xe pool-param-set uuid=UUID other-config:auto_poweron=true

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

Replace the relevant UUID values with the true required value. A small one-liner script to handle the 2nd part (enabling it for the VMs), which would enable autostart for ALL vms:

for i in `xe vm-list is-control-domain=false –minimal | tr , ‘  ‘`; do xe vm-param-set uuid=$i other-config:auto_poweron=true; done

Cheers

Tags: , ,

One Response to “Citrix XenServer 6.0 enable VM autostart”

  1. Autostart VM in free version of XenServer 6.x | SysAdmin Says:

    […] http://run.tournament.org.il/citrix-xenserver-6-0-enable-vm-autostart/ […]

Leave a Reply