{"id":9173,"date":"2008-09-09T11:53:00","date_gmt":"1999-11-29T20:00:00","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=9173"},"modified":"2008-09-09T11:53:00","modified_gmt":"1999-11-29T20:00:00","slug":"backing-up-hyper-v-vms","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=9173","title":{"rendered":"Backing Up Hyper-V VM&#8217;s"},"content":{"rendered":"<p>I found a link to this on the MS Virtualisation Team Blog this morning.\u00a0 It&#8217;s an <a title=\"article \" href=\"http:\/\/blogs.technet.com\/virtualization\/archive\/2008\/08\/29\/backing-up-hyper-v-virtual-machines.aspx\">article <\/a>on things you should consider when backing up VM&#8217;s.\u00a0 It&#8217;s well worth reading<\/p>\n<p>There&#8217;s two ways you can approach backing up VM&#8217;s.\u00a0 The first is to treat each VM as a normal server by installing an agent in the guest OS and using that to backup data, configurations and the system state.\u00a0 This is the most comprehensive solution you&#8217;ll get.\u00a0 <\/p>\n<p>The other solution is to take a snapshot of the machine itself.\u00a0 Hyper-V allows this by using Volume Shadow Copy Service (VSS).\u00a0 A VSS writer stops the VM for a couple of milliseconds to capture it in a consistent state.\u00a0 Consider a database being processed &#8230; do you want to snap the VM while things are happening?\u00a0 Maybe you&#8217;ll get one table showing part of a transaction and another table not showing the other half of the transaction.\u00a0 That&#8217;s not pretty at all!\u00a0 This process used by VSS is also how you can get consistent VSS snapshots of SQL and Exchange.<\/p>\n<p>Another thing to consider is virtualised DC&#8217;s.\u00a0 Just like in VMware ESX, it&#8217;s recommended that you have at least one (preferably two) physical DC&#8217;s for your network to avoid potential chicken and egg scenarios.\u00a0 But you might have other DC&#8217;s that are virtualised.\u00a0 You should treat them just like physical DC&#8217;s.\u00a0 Trying to do clever things likes snapshots and rollbacks of virtualised DC&#8217;s will lead to horrible scenarios like the <a href=\"http:\/\/support.microsoft.com\/kb\/875495\">USN rollback<\/a>.<\/p>\n<p>This <a title=\"article \" href=\"http:\/\/blogs.technet.com\/virtualization\/archive\/2008\/08\/29\/backing-up-hyper-v-virtual-machines.aspx\">article <\/a>also mentions pass through disks not being supported by VSS.\u00a0 If you think about it, of course they cannot.\u00a0 There is no host file system when using a pass through disk to perform VSS.\u00a0 The VM is using a raw LUN.\u00a0 Be very, very careful about using SAN snapshots here; it&#8217;s not supported for a consistent state snapshot if the VM is running.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found a link to this on the MS Virtualisation Team Blog this morning.\u00a0 It&#8217;s an article on things you should consider when backing up VM&#8217;s.\u00a0 It&#8217;s well worth reading There&#8217;s two ways you can approach backing up VM&#8217;s.\u00a0 The first is to treat each VM as a normal server by installing an agent in &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=9173\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Backing Up Hyper-V VM&#8217;s&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[],"class_list":["post-9173","post","type-post","status-publish","format-standard","hentry","category-hyper-v"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/9173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9173"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/9173\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}