How to set XenServer Virtual Machines to auto start in 6.0 & 6.1

How to set XenServer VM to autostart

I have a hard time finding this post on how to setup a VM to Autostart on XenServer 6.0 and 6.1. I included a link to the original post and the steps I used to reproduce below.

If you find this, I hope it helps you.

http://www.virtues.it/2011/10/xenserver6-vm-auto-start-feature/

Here it is: How to set XenServer Virtual Machines to auto start in 6.0 & 6.1

Alternative configuration

For me it still is a very useful feature to ensure my Citrix License Server is automatically started when my XenServer is booted, so luckily for me Bill also gave the right commands to enable the feature with the CLI and have the perfect setup back for my Homelab

You first have to enable the auto power on feature at pool level, before being able to configure it for each VM individually.

* Find the uuid of the Pool:

[root@ ~]# xe pool-list

uuid ( RO) : [uuid-pool]

name-label ( RW): [pool-name]

name-description ( RW): [pool-desc]

master ( RO): [uuid-xs]

default-SR ( RW): [uuid-sr]

 

Which returns the following values:

uuid-pool: A unique identifier for the Pool.

pool-name: The name given to the Pool.

pool-desc: The description set for the Pool.

uuid-xs: The unique identifier of the XenServer that currently is the Pool Master.

uuid-sr: The unique identifier for the default Storage Repository configured for the Pool.

 

* Enable the auto power on feature at pool level:

[root@ ~]# xe pool-param-set uuid=[uuid-pool] other-config:auto_poweron=true

 

Which uses the following additional syntax:

uuid-pool: A unique identifier for the Pool.

 

* Find the uuid of the VM:

The quicky way to find the uuid of your VM is to run the vm-list command. This does however give you an overview of all VMs, so if you have alot of VMs defined, try to narrow it done with the name-label parameter (which is case sensitive). With the uuid known for the VM, you can easily enable the auto start feature.

[root@ ~]# xe vm-list

uuid ( RO) : [uuid-vm]

name-label ( RW): [vm-name]

power-state ( RO): [vm-power]

 

Which returns the following values:

uuid-vm: A unique identifier for the Virtual Machine.

vm-name: The name given to the Virtual Machine.

vm-power: Shows the power state the VM is currently in (running, halted).

 

* Enable the auto power on feature for the specified VM:

[root@ ~]# xe vm-param-set uuid=[uuid-vm] other-config:auto_poweron=true

 

Which uses the following additional syntax:

uuid-vm: A unique identifier for the Virtual Machine.

Article written by Jesse Perry (JP)

Hi there, I am Jesse Perry. I have run an IT Service business for over a decade, been working in the Computer Industry for much longer.

Please comment with your real name using good manners.

Leave a Reply