{"id":2952,"date":"2020-01-11T17:21:16","date_gmt":"2020-01-11T23:21:16","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2952"},"modified":"2021-12-11T10:42:46","modified_gmt":"2021-12-11T16:42:46","slug":"auto-start-vm-after-xenserver-reboot","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/auto-start-vm-after-xenserver-reboot\/","title":{"rendered":"Auto Start VM after XenServer reboot"},"content":{"rendered":"\n<p>SSH or gain command line access to XenServer<\/p>\n\n\n\n<p>First we need to enable the Pool to allow auto starting<br>Second we will need to turn on the auto_poweron to true<\/p>\n\n\n\n<p>In the following examples replace the UUIDs with your UUIDs<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Find Pool UUID<\/h2>\n\n\n\n<p>You can find the pool UUID by running the  &#8220;xe pool-list&#8221; Command.  Note: you&#8217;ll still have a pool even if there is only a single server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># xe pool-list\nuuid ( RO) : 2e587aeb-de94-hf29-3eda-923d8he634fe<\/pre>\n\n\n\n<p>Enable auto_poweron for the pool<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">xe pool-param-set uuid=2e587aeb-de94-hf29-3eda-923d8he634fe other-config:auto_poweron=true<\/pre>\n\n\n\n<p>Verify that it is enabled<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">xe pool-param-list uuid=2e587aeb-de94-hf29-3eda-923d8he634fe  | grep auto_poweron<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">List VM UUID&#8217;s<\/h2>\n\n\n\n<p>Locate the UUID&#8217;s of the VM&#8217;s you want to start<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># xe vm-list\nuuid ( RO)           : 521be58a-3495-ea29-02a0-85ffcda06583\n     name-label ( RW): CentOS 7\n    power-state ( RO): running<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Enable <\/strong>auto start<\/h2>\n\n\n\n<p>Run the following command for each VM you want to auto start.  Change the UUID to the UUID of the vm you want to start.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">xe pool-param-set uuid=521be58a-3495-ea29-02a0-85ffcda06583  other-config:auto_poweron=true<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Print parameter settings <\/h2>\n\n\n\n<p>Use the following command to verify that the auto_poweron option is enabled.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">xe vm-param-list uuid=521be58a-3495-ea29-02a0-85ffcda06583 | grep -i poweron | cut -d\";\" -f1<\/pre>\n\n\n\n<p>Example output<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>                      other-config (MRW): auto_poweron: true<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/support.citrix.com\/article\/CTX133910\">https:\/\/support.citrix.com\/article\/CTX133910<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSH or gain command line access to XenServer First we need to enable the Pool to allow auto startingSecond we will need to turn on the auto_poweron to true In the following examples replace the UUIDs with your UUIDs Find &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/auto-start-vm-after-xenserver-reboot\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[866,339,233,865,601,275],"class_list":["post-2952","post","type-post","status-publish","format-standard","hentry","category-xenserver","tag-auto-start","tag-boot","tag-citrix","tag-vm-list","tag-xe","tag-xenserver"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=2952"}],"version-history":[{"count":5,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2952\/revisions"}],"predecessor-version":[{"id":4318,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2952\/revisions\/4318"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}