Auto-Start a Virtual Machine at XenServer and XCP-NG Server 7.X.md December 1, 2018 by Rajib Ahmed Enable auto-start on XenServer and XCP-NG Server:
# xe pool-list
output like this:
uuid ( 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 or XCP-NG Server supports auto-start. Let’s find the correct VM:
# xe vm-list
output like this:
uuid ( RO) : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
name-label ( RW): Control domain on host: XenSever_host_name
power-state ( RO): running
uuid ( RO) : AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA name-label ( RW): VM_host_name_1 power-state ( RO): running
uuid ( RO) : BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB name-label ( RW): VM_host_name_2 power-state ( RO): running
# xe vm-param-set uuid=AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA other-config:auto_poweron=true
Done, now with XenServer or XCP-NG Server, we can modify the auto-start order and delays.
you are a hero. I have followed many ways, it turns out that the problem is I have not activated the pool