This is just a quick tip for repairing a Hyper-V Windows Server 2012 guest virtual machine if you ever encounter the Black screen of nothingness. I recently experienced a couple of Hyper-V Windows Server 2012 guests that were only showing a black screen and I could not get access to the underlying operating systems. I wanted to document the trick that I used to repair these VMs.
- You need to use either an installation DVD or an ISO file of the underlying Operating System. I simply pointed the virtual machines’ cd drives to the server 2012 installation ISO.
- You reset the virtual machine and press any key to boot from the DVD or Iso file.
- Choose the option: REPAIR YOUR COMPUTER
- Choose the option COMMAND LINE
- enter C: to receive a C: prompt instead of the X:
- Now, you want to repair the bootsector so you will use the command
Bootsect /nt60 C: /force
- reset the virtual machine, and hopefully you will see the blue login screen this time. In my case it took two attempts of entering the commands but it worked for both virtual machines. There is a /SYS switch that can be used also with the bootsect command but in my case I didn’t need to use that just Bootsect /nt60 C: /force did the trick.