Reparar máquina virtual, convertida con disk2vhd, que no arranca.

Windows 2008 R2 (Vista, Windows 7, Windows 2008)

We’re going to fix the entire boot path, despite what part of it is broken. Go find an ISO or DVD of any of the operating systems just listed in the title. Prepare to boot your VM from this media. We’re going to use the recovery console. We’ll assume you are using Windows 7 media.

Attach the Windows 7 installation disc to the virtual machine disc drive, and then start the computer.

Press a key when you are prompted.

Select a language, a time, a currency, a keyboard or an input method, and then click Next.

Click Repair your computer.

Click the operating system that you want to repair, and then click Next.

In the System Recovery Options dialog box, click Command Prompt.

If an operating system is not found simply continue anyway

Type the following command in this order to set your system straight:

bootrec /fixmbr    (Fixes MBR)

bootrec /fixboot   (Fixes Boot Sector)

bootrec /scanos    (Scans for Windows installations to add)

Reboot! (Type Exit)

If you still do not boot into Windows, or do not have a boot menu, or something is still wrong, follow steps 1 – 6 again. For step 7 type this instead

bootrec /rebuildbcd    (Rebuilds entire BCD… not a really big deal)

Reboot! (type Exit)

You are now either booting into Windows, or you are not… Any blue screens I cannot help you with at this time. Search the internet for a solution, and in the meantime I intend to write an article on this as well. Comments welcome as always.

 

Further Information:

How to use the Bootrec.exe tool in the Windows Recovery Environment to troubleshoot and repair startup issues in Windows

http://support.microsoft.com/kb/927392

 

 

Windows 2003 R2 (Windows XP, Windows 2003)

Again, we’re off to fix the boot path. Things are a bit different in Windows 2003. Same basic goal as with Windows 2008. Go find an ISO or DVD of any of the operating systems just listed in the title. Prepare to boot your VM from this media. We’re going to use the recovery console. We’ll assume you are using Windows 2003 media.

Attach the Windows 2003 installation disc to the virtual machine disc drive, and then start the computer.

When you receive the message that prompts you to press any key to start from the CD, press a key to start the computer from the Windows Server 2003 CD.

When the Welcome to Setup screen appears, press the R key to start the Recovery Console.

Select the Windows installation that you must access from the Recovery Console.

Follow the instructions that appear on the screen, type the Administrator password, and then press ENTER.

Type the following command in this order to set your system straight:

fixmbr (Fixes MBR)

fixboot (Fixes Boot Sector)

bootcfg /rebuild  (Lists all Windows installations that you can add)

Reboot! (type Exit)

 

FIN.