Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rajibdpi/271d8b83656565b9f5d64df9fe9748b4 to your computer and use it in GitHub Desktop.
Save rajibdpi/271d8b83656565b9f5d64df9fe9748b4 to your computer and use it in GitHub Desktop.
Auto-Start a Virtual Machine at XenServer and XCP-NG Server 7.X.md

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.

@habibulilalbaab
Copy link

you are a hero. I have followed many ways, it turns out that the problem is I have not activated the pool

@rajibdpi
Copy link
Author

you are a hero. I have followed many ways, it turns out that the problem is I have not activated the pool

Now working well?

@JacoboSV
Copy link

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment