VM does not Boot Following P2V or Disk2VHD
So you perform a successful P2V using SCVMM. Or perhaps you use it’s cousin, ‘Disk2VHD’ from Sysinternals. All is well until you boot the new VM… FAILURE. For those situations where you simply get a black screen, maybe with a blinking cursor but definitely no Windows load, I have some solutions. (If you are experiencing a blue screen this article is not for you).
First! Do not fear the black screen. It simply means the path to load Windows cannot be found by the boot loader. This may be due to the boot loader, or it may be due to the MBR or Boot Sector. Let’s just say we aren’t concerned with all of the technicalities and want to fix it. Here’s how.
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
https://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)
-
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 Recovery Console on a Windows Server 2003-Based Computer That Does Not Start
https://support.microsoft.com/kb/326215
Description of the Windows XP Recovery Console for advanced users
https://support.microsoft.com/kb/314058
jonjor
Comments
Anonymous
January 01, 2003
This worked great! Thanks!Anonymous
January 01, 2003
thank youAnonymous
January 01, 2003
Changing the drive letters didn't help. In fact diskpart wouldn't let me change the correct partition to the C: drive. Anyway, it turns out that my problem was caused by exporting the original system as two separate VHDs. Rather than letting the Disk2VHD program just do it's thing. Rookie mistake :)Anonymous
June 11, 2013
Top Banana! Thank you!Anonymous
September 18, 2013
Nice One... Thanks