Auto-Start a Virtual Machine at XenServer 7.X
Enable auto-start on XenServer:
copy the UUID and use:
To auto-start the VM_host_name1, just:
# xe pool-listuuid ( RO) : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
copy the UUID and use:
# xe pool-param-set uuid=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX other-config:auto_poweron=true
Now XenServer supports auto-start. Let’s find the correct VM:
# xe vm-listuuid ( RO) : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXname-label ( RW): Control domain on host: XenSever_host_namepower-state ( RO): runninguuid ( RO) : AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAAname-label ( RW): VM_host_name_1power-state ( RO): runninguuid ( RO) : BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBBname-label ( RW): VM_host_name_2power-state ( RO): running
To auto-start the VM_host_name1, just:
# xe vm-param-set uuid=AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA other-config:auto_poweron=true
Done, now with XenCenter, we can modify the auto-start order and delays.