Žilinská univerzita > Fakulta riadenia a informatiky > Katedra informačných sietí

How to setup auto start for virtual machines within XenServer 6.2

For XenServer of versions 6.x were removed direct GUI ability to setup auto-start of Virtual Machines after the startup of main XenServer server. This ability have to be setup using CLI (Command line). To do that we have to:

1) Use ssh client for login into your xen server, and become the root

2) List your VM machines using the command:

 xe vm-list

in my case the command provides the list of my machines. From the list we mainly need the UUID identity of VM:

[root@NetlabXen-2 ~]# xe vm-list
uuid ( RO)           : f7c5d724-689c-395e-cbb2-e73f2cb162fe
     name-label ( RW): BP - Parac - Deb64
    power-state ( RO): halted

uuid ( RO)           : 250fc57a-0892-c85c-fca7-ff2e670a1a35
     name-label ( RW): Moravcik-IP
    power-state ( RO): halted

uuid ( RO)           : cdce7275-8fda-ce17-f065-b8a2b11ab26f
     name-label ( RW): Dancik-IP
    power-state ( RO): halted

uuid ( RO)           : affe14ef-ecab-c91f-150c-7c3a81a81fd1
     name-label ( RW): Kamailio Presence
    power-state ( RO): halted


Yellow selection marks the machine for which we will activate the auto-startup. To do that the command is applied:

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

where we have to replace UUID with reall UUID of selected VM Machine. In my case:

 xe vm-param-set uuid=250fc57a-0892-c85c-fca7-ff2e670a1a35 other-config:auto_poweron=true


www link: http://support.citrix.com/article/CTX133910