{"id":195,"date":"2011-06-16T20:57:00","date_gmt":"2011-06-16T20:57:00","guid":{"rendered":"http:\/\/turtlellc.com\/index.php\/copying-vm-while-running\/"},"modified":"2011-06-16T20:57:00","modified_gmt":"2011-06-16T20:57:00","slug":"copying-vm-while-running","status":"publish","type":"post","link":"https:\/\/www.turtle.works\/knowledge\/copying-vm-while-running\/","title":{"rendered":"Copying VM While Running"},"content":{"rendered":"<p><span style=\"font-family:trebuchet ms;\">NOTE: I receive a checksum failure error during vm-import when following this method.<\/p>\n<p>To copy a VM while it is still running:<\/span><\/p>\n<ol style=\"font-family: trebuchet ms;\">\n<li>Create a snapshot<\/li>\n<li>Export as backup<\/li>\n<li>Import the backup<\/li>\n<\/ol>\n<p><span style=\"font-family:trebuchet ms;\">Here are the details:<\/span><\/p>\n<p><span style=\"font-weight: bold; font-family:trebuchet ms;\" >Create a Snapshot<\/span><\/p>\n<ol style=\"font-family: trebuchet ms;\">\n<li>ssh into XenServer<\/li>\n<li>run xe vm-snapshot vm=&#8221;VM Name&#8221; new-name-label=&#8221;Name the snapshot&#8221;<\/li>\n<li>when it completes write down the UUID returned<\/li>\n<\/ol>\n<p><span style=\"font-weight: bold; font-family:trebuchet ms;\" >Export as Backup<\/span><\/p>\n<ol style=\"font-family: trebuchet ms;\">\n<li>ssh into XenServer<\/li>\n<li>xe template-export template-uuid=&#8221;UUID from step 3 above&#8221; filename=&#8221;Name the .xva file&#8221;<\/li>\n<li>View progress in XenCenter<\/li>\n<\/ol>\n<p><span style=\"font-weight: bold; font-family:trebuchet ms;\" >Import the Backup<br \/><\/span><\/p>\n<ol style=\"font-family: trebuchet ms;\">\n<li>ssh into XenServer<\/li>\n<li>xe vm-import filename=&#8221;Name the .xva file to import&#8221; sr-uuid=&#8221;SR to restore it to&#8221;<\/li>\n<\/ol>\n<p><span style=\"font-family:trebuchet ms;\">Hints:<\/span><\/p>\n<p><span style=\"font-family:trebuchet ms;\">Use df -ha to view existing disks and available space<br \/>Use xe sr-list to find the sr-uuid needed in Import the Backup step 2.<br \/><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: I receive a checksum failure error during vm-import when following this method. To copy a VM while it is still running: Create a snapshot Export as backup Import the backup Here are the details: Create a Snapshot ssh into XenServer run xe vm-snapshot vm=&#8221;VM Name&#8221; new-name-label=&#8221;Name the snapshot&#8221; when it completes write down the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.turtle.works\/knowledge\/copying-vm-while-running\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Copying VM While Running&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-195","post","type-post","status-publish","format-standard","hentry","category-xenserver"],"_links":{"self":[{"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/posts\/195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/comments?post=195"}],"version-history":[{"count":0,"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/posts\/195\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/media?parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/categories?post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/tags?post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}