{"id":3331,"date":"2024-02-26T23:10:39","date_gmt":"2024-02-26T23:10:39","guid":{"rendered":"https:\/\/voodoo.business\/?p=3331"},"modified":"2024-02-26T23:10:39","modified_gmt":"2024-02-26T23:10:39","slug":"copy-kvm-virtual-machine","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2024\/02\/26\/copy-kvm-virtual-machine\/","title":{"rendered":"Copy KVM virtual machine"},"content":{"rendered":"\n<p>This is much simpler than you&#8217;d expect (provided there are no hardware passthoughs, and there usually isn&#8217;t), All you need to do is copy both the Disk and the XML file (Typically in \/etc\/libvirt\/qemu) then <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1- edit the following in the XML file <\/h2>\n\n\n\n<p>Create a new virtual machine ID<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">uuidgen<\/pre>\n\n\n\n<p>Create new MAC addresses for every network adapter<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">https:\/\/olavmrk.github.io\/html-macgen\/<\/pre>\n\n\n\n<p>Change the path to the disks to point to where you put the new copy of the disks<\/p>\n\n\n\n<p>Thats it, now you need to tell KVM about it so&#8230;.<\/p>\n\n\n\n<p>2- Tell KVM about the new definition with the define function<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">virsh define \/etc\/libvirt\/qemu\/newxmlfile.xml<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is much simpler than you&#8217;d expect (provided there are no hardware passthoughs, and there usually isn&#8217;t), All you need to do is copy both the Disk and the XML file (Typically in \/etc\/libvirt\/qemu) then 1- edit the following in the XML file Create a new virtual machine ID uuidgen Create new MAC addresses for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140,139],"tags":[],"class_list":["post-3331","post","type-post","status-publish","format-standard","hentry","category-kvm","category-virtualization-linux"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/3331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=3331"}],"version-history":[{"count":7,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/3331\/revisions"}],"predecessor-version":[{"id":3338,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/3331\/revisions\/3338"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=3331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=3331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=3331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}