Skip to content

Instantly share code, notes, and snippets.

@bsa7
Last active October 3, 2015 01:44
Show Gist options
  • Save bsa7/602f396160f5f2392053 to your computer and use it in GitHub Desktop.
Save bsa7/602f396160f5f2392053 to your computer and use it in GitHub Desktop.
XEN XCP vm Autostart

Enable autostart of vm in XEN XCP pool

  1. Get the pool uuid:

xe pool-list
  uuid ( RO)                : db61463f-bfc1-8c18-4bef-bb98184b4eb4
    name-label ( RW): SC
    name-description ( RW): Slon cloud stack
    master ( RO): 2f603c5b-fd90-4a4b-8150-3091e13c30d2
    default-SR ( RW): <not in database>
  1. With pool uuid enable autostart of vm's in this pool:

xe pool-param-set uuid=db61463f-bfc1-8c18-4bef-bb98184b4eb4 other-config:auto_poweron=true
  1. Get the uuid of your vm:

xe vm-list
  uuid ( RO)           : cde8d6b6-7bb8-740d-579c-95c4d1643919
    name-label ( RW): GameSrv
    power-state ( RO): halted

  uuid ( RO)           : 483bb571-c0d1-4ed1-8b3d-fee1b9c283c5
    name-label ( RW): Control domain on host: xcp120
    power-state ( RO): running
  1. Enable autostart of your vm:

xe vm-param-set uuid=cde8d6b6-7bb8-740d-579c-95c4d1643919 other-config:auto_poweron=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment