{"id":567,"date":"2014-09-12T22:30:28","date_gmt":"2014-09-12T22:30:28","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=567"},"modified":"2019-11-23T12:36:16","modified_gmt":"2019-11-23T12:36:16","slug":"how-to-exportimport-a-xenserver-vm-from-the-command-line","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/how-to-exportimport-a-xenserver-vm-from-the-command-line\/","title":{"rendered":"How to export\/import a XenServer VM from the Command Line"},"content":{"rendered":"<p>We can list the VM&#8217;s by running<\/p>\n<pre>xe vm-list<\/pre>\n<p>You can export a VM using either the name of the VM or by using the uuid.\u00a0 The above command list both so you can use which ever one you want.<\/p>\n<p>You will also need to shutdown the VM your going to export.<\/p>\n<pre>xe vm-shutdown vm=ubuntu<\/pre>\n<p>Export by Name<br \/>\nThe name of the VM is&#8221;ubuntu&#8221;.<\/p>\n<pre>xe vm-export vm=ubuntu filename=\/backup\/ubuntu.xva<\/pre>\n<p>Export using uuid<\/p>\n<pre>xe vm-export uuid=b24dcd65-5e12-4576-2f39-46ecab9362ab filename=\/backup\/ubuntu.xva<\/pre>\n<p>Importing VM<\/p>\n<pre>xe vm-import vm=centos5 filename=\/backup\/ubuntu.xva<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>We can list the VM&#8217;s by running xe vm-list You can export a VM using either the name of the VM or by using the uuid.\u00a0 The above command list both so you can use which ever one you want. &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/how-to-exportimport-a-xenserver-vm-from-the-command-line\/\">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":[75,175,176,275],"class_list":["post-567","post","type-post","status-publish","format-standard","hentry","category-xenserver","tag-backup","tag-export","tag-vm","tag-xenserver"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/567","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=567"}],"version-history":[{"count":5,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/567\/revisions"}],"predecessor-version":[{"id":2824,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/567\/revisions\/2824"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}