none
How to boot a Hyper-V virtual machine into System recovery environment RRS feed

  • Question

  • This question is referring to Windows Server 2016 and Hyper-V virtual machines within that server.

    If I have created a C: drive backup from within the guess OS (Server 2016) and later I need to restore from the backup, what is the best way to boot the virtual machine into a recovery environment in order to restore the backup?

    Do I just boot from the ISO that I used to install the OS and select repair or something like that?  I can't remember what it looks like it has been so long since I did an installation.

    thanks
    Wednesday, September 25, 2019 1:46 PM

Answers

  • Do I just boot from the ISO that I used to install the OS and select repair or something like that?  I can't remember what it looks like it has been so long since I did an installation.

    It depends, if VM boots into Windows or not. In DR plan, I would recommend to use Windows 2016 ISO to boot in WinRE and recover from it.

    But in my opinion, it would be better to backup guest VMs on hypervisor level, for example with VEEAM. Such way you avoid spending additional time for booting in WinRE, mounting backup, etc

    • Marked as answer by Poly Admin Wednesday, September 25, 2019 4:57 PM
    Wednesday, September 25, 2019 3:29 PM
  • Hi,

    If this is a virtual machine, I would also recommend backing up at the host-level, meaning the whole virtual machine.

    If you need to perform a Bare Metal Recovery/System Recovery, you should boot with the Windows Server ISO and perform the system image recovery that way.

    But as also noted by LaMerk, this process takes longer and requires more steps, so the easy way is to simply perform host-level backups.

    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:

    • Marked as answer by Poly Admin Wednesday, September 25, 2019 4:57 PM
    Wednesday, September 25, 2019 3:39 PM
  • Mount the Windows Server ISO file:

    Then change the boot order of the DVD drive and set it as the first option:




    Blog: https://thesystemcenterblog.com LinkedIn:


    • Edited by Leon Laude Wednesday, September 25, 2019 4:40 PM
    • Marked as answer by Poly Admin Wednesday, September 25, 2019 4:57 PM
    Wednesday, September 25, 2019 4:38 PM

All replies

  • Hi,

    you can use directly wbadmin command line to restore the system state the C: drive

    https://www.wintips.org/how-to-restore-system-state-on-server-2016-2012-2012r2-if-windows-can-boot/

    or

    https://sourcedaddy.com/windows-10/perform-backup-and-restore-wbadmin.html


    Vote or mark as answer if you think useful




    • Edited by F.ABASSI Wednesday, September 25, 2019 1:58 PM
    Wednesday, September 25, 2019 1:56 PM
  • Thanks for the quick reply.  I am looking at these articles but this is more for if the server cannot be started or is down. 

    Edit:  I see on that same site there is an article on how to restore if the server will not boot normally.  I am looking at it now.

    Also, remember I am asking this regarding a Hyper-V virtual machine, not a physical server.  I am trying to develop some better disaster recovery plans for my VM's.
    • Edited by Poly Admin Wednesday, September 25, 2019 3:06 PM
    Wednesday, September 25, 2019 2:23 PM
  • Do I just boot from the ISO that I used to install the OS and select repair or something like that?  I can't remember what it looks like it has been so long since I did an installation.

    It depends, if VM boots into Windows or not. In DR plan, I would recommend to use Windows 2016 ISO to boot in WinRE and recover from it.

    But in my opinion, it would be better to backup guest VMs on hypervisor level, for example with VEEAM. Such way you avoid spending additional time for booting in WinRE, mounting backup, etc

    • Marked as answer by Poly Admin Wednesday, September 25, 2019 4:57 PM
    Wednesday, September 25, 2019 3:29 PM
  • Hi,

    If this is a virtual machine, I would also recommend backing up at the host-level, meaning the whole virtual machine.

    If you need to perform a Bare Metal Recovery/System Recovery, you should boot with the Windows Server ISO and perform the system image recovery that way.

    But as also noted by LaMerk, this process takes longer and requires more steps, so the easy way is to simply perform host-level backups.

    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:

    • Marked as answer by Poly Admin Wednesday, September 25, 2019 4:57 PM
    Wednesday, September 25, 2019 3:39 PM
  • Thanks for the replies.

    I agree with both of you and have recently started backing up my Hyper-V VM's at the host level.
    I am using Windows Server Backup to backup each VM.

    I have some older backups that were done from within the guest.  Based on what each of you are saying if I needed to restore one of those backups I would go into the hyper v settings for that VM and change the boot method or order to boot from the Server 2016 ISO.  How do I make the change in hyper-v settings to get the VM to boot from the ISO.  I am not real clear on that.
    Wednesday, September 25, 2019 4:31 PM
  • Mount the Windows Server ISO file:

    Then change the boot order of the DVD drive and set it as the first option:




    Blog: https://thesystemcenterblog.com LinkedIn:


    • Edited by Leon Laude Wednesday, September 25, 2019 4:40 PM
    • Marked as answer by Poly Admin Wednesday, September 25, 2019 4:57 PM
    Wednesday, September 25, 2019 4:38 PM
  • Yes, yes I remember now.  I was looking at the hard drive and DVD drive entry and did not look up to see the firmware/boot order.  I remember it now. 

    So change the boot order and point the DVD drive to the ISO you want to boot from.  That is pretty much it, correct?

    But again, like you guys said, if I am backing up my VM's at the hyper-visor level I can also restore them from the hyper-visor level and won't have to worry with this type of stuff.

    Wednesday, September 25, 2019 4:53 PM
  • Yes, point the DVD drive to the ISO image, have the DVD drive as the first boot option, restart the VM, ”press any key” to boot from the ISO.

    Blog: https://thesystemcenterblog.com LinkedIn:

    Wednesday, September 25, 2019 4:55 PM