{"id":54,"date":"2022-12-08T00:11:07","date_gmt":"2022-12-08T00:11:07","guid":{"rendered":"https:\/\/wp.hesling.com\/?p=54"},"modified":"2022-12-08T02:59:24","modified_gmt":"2022-12-08T02:59:24","slug":"qemu-windows-11-snapshots","status":"publish","type":"post","link":"http:\/\/wp.hesling.com\/?p=54","title":{"rendered":"QEMU Windows 11 Snapshots"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">You can&#8217;t take normal full featured libvirt snapshots, since we are using UEFI.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Chris does a pretty good job at <a rel=\"noreferrer noopener\" href=\"https:\/\/utcc.utoronto.ca\/~cks\/space\/blog\/linux\/LibvirtUEFISnapshots\" data-type=\"URL\" data-id=\"https:\/\/utcc.utoronto.ca\/~cks\/space\/blog\/linux\/LibvirtUEFISnapshots\" target=\"_blank\">Chris&#8217;s Wiki :: blog\/linux\/LibvirtUEFISnapshots<\/a>.<\/li>\n\n\n\n<li><a href=\"https:\/\/fabianlee.org\/2021\/01\/10\/kvm-creating-and-reverting-libvirt-external-snapshots\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/fabianlee.org\/2021\/01\/10\/kvm-creating-and-reverting-libvirt-external-snapshots\/<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Although Chris makes a good point about not using external snapshots, I prefer to have the visual reminder in virt-manager that a snapshot is available. I&#8217;m going to give external snapshots a try anyways. Here are the relevant commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>virsh snapshot-list $domain\n\n# Create snapshot\nvirsh snapshot-create-as $domain --name $snapshotname --disk-only\n\n# Check that we are now using the new snapshot qcow2 file\nvirsh domblklist $domain\n\n# If we navigate to where the qcow2 files are stored, we\n# should see the original img file and a new file\n# Alternate path: \/var\/lib\/libvirt\/images\npushd ~\/.local\/share\/libvirt\/images\nls -al\n# Running the file command can reveal the backing file info\nfile *\n\n# To delete a snapshot metadata\nvirsh snapshot-delete --metadata $thedomain $snapshotname\n\n# Also note ~\/.config\/libvirt directory<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You can&#8217;t take normal full featured libvirt snapshots, since we are using UEFI. Although Chris makes a good point about not using external snapshots, I prefer to have the visual reminder in virt-manager that a snapshot is available. I&#8217;m going to give external snapshots a try anyways. Here are the relevant commands:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-notes"],"_links":{"self":[{"href":"http:\/\/wp.hesling.com\/index.php?rest_route=\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wp.hesling.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wp.hesling.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wp.hesling.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/wp.hesling.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=54"}],"version-history":[{"count":3,"href":"http:\/\/wp.hesling.com\/index.php?rest_route=\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":57,"href":"http:\/\/wp.hesling.com\/index.php?rest_route=\/wp\/v2\/posts\/54\/revisions\/57"}],"wp:attachment":[{"href":"http:\/\/wp.hesling.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wp.hesling.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wp.hesling.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}