{"id":2859,"date":"2010-07-12T10:36:34","date_gmt":"2010-07-12T09:36:34","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/2859-bare-metal-recovery-of-a-hyper-v-virtual-machine.html"},"modified":"2010-07-12T10:36:34","modified_gmt":"2010-07-12T09:36:34","slug":"bare-metal-recovery-of-a-hyper-v-virtual-machine","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/2859-bare-metal-recovery-of-a-hyper-v-virtual-machine.html","title":{"rendered":"Bare-metal recovery of a Hyper-V virtual machine"},"content":{"rendered":"<p>Over the weekend I ran some test restores of Microsoft Hyper-V virtual machines. You can restore a Hyper-V host, complete with its VMs, using the same technique as with any Windows server; but my main focus was on a different scenario. Let\u2019s say you have a Server 2008 VM that has been backed up from the guest using Windows Server Backup. In my case, the backup had been made to a VHD mounted for that purpose. Now the server has been stolen and all you have is your backup. How do you restore the VM?<\/p>\n<p>In principle you can do a bare-metal restore in the same way as with a physical machine. Configure the VM as closely as possible to how it was before, attach the backup, boot the VM from the Server 2008 install media, and perform a system recovery.<\/p>\n<p>Unfortunately this doesn\u2019t work if your VM uses VHDs attached to the virtual SCSI controller. The reason is that the recovery console cannot see the SCSI-attached drives. This is possibly related to the Hyper-V limitation that you cannot boot from a virtual SCSI drive.<\/p>\n<p>The workaround I found was first to attach the backup VHD to the virtual IDE controller (not SCSI), so the recovery console can see it. Then to do a system recovery of the IDE drives, which will include the C drive. Then to shutdown the VM (before the restart), mount both the backup and the SCSI-attached VHDs on the host using diskpart, and use wbadmin to restore each individual volume. Finally, detach the VHDs and restart the VM.<\/p>\n<p>It worked. One issue I noticed though is that the network adapter in the restored VM was considered different to the one in the original VM, even though I applied the same MAC address. Not a great inconvenience, but it meant fixing networking as the old settings were attached to the NIC that was now missing.<\/p>\n<p>I\u2019ve appended the details to my post on <a href=\"http:\/\/www.itwriting.com\/blog\/articles\/how-to-backup-small-business-server-2008-on-hyper-v\">How to backup Small Business Server 2008 on Hyper-V<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the weekend I ran some test restores of Microsoft Hyper-V virtual machines. You can restore a Hyper-V host, complete with its VMs, using the same technique as with any Windows server; but my main focus was on a different scenario. Let\u2019s say you have a Server 2008 VM that has been backed up from &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/2859-bare-metal-recovery-of-a-hyper-v-virtual-machine.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Bare-metal recovery of a Hyper-V virtual machine<\/span> <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":[55,92],"tags":[188,466,586,775,950],"class_list":["post-2859","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-virtualization","tag-backup","tag-hyper-v","tag-microsoft","tag-restore","tag-virtualization"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/2859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=2859"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/2859\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=2859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=2859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=2859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}