Windows way to Digital Learning……

Posts tagged ‘How to Convert a Physical Server to a Virtual Machine’

How to Convert a Physical Server to a Virtual Machine

Disk2vhd is a utility that creates VHDs. The difference between Disk2vhd and other physical-to-virtual tools is that you can run Disk2vhd on a system that’s online. Disk2vhd uses Windows’ Volume Snapshot capability, introduced in Windows XP, to create consistent point-in-time snapshots of the volumes you want to include in a conversion. You can even have Disk2vhd create the VHDs on local volumes, even ones being converted (though performance is better when the VHD is on a disk different than ones being converted).

Download Link:  Disk2vhd

After creating the VHD, you can use that VHD in Hyper-V virtual machine.

Troubleshooting Boot problems.

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.

  1. Attach the Windows 7 installation disc to the virtual machine disc drive, and then start the computer.
  2. Press a key when you are prompted.
  3. Select a language, a time, a currency, a keyboard or an input method, and then click Next.
  4. Click Repair your computer.
  5. Click the operating system that you want to repair, and then click Next.
  6. In the System Recovery Options dialog box, click Command Prompt.
    1. If an operating system is not found simply continue anyway
  7. Type the following command in this order to set your system straight:
    1. bootrec /fixmbr    (Fixes MBR)
    2. bootrec /fixboot   (Fixes Boot Sector)
    3. bootrec /scanos    (Scans for Windows installations to add)
    4. Reboot! (Type Exit)
  8. 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
    1. bootrec /rebuildbcd    (Rebuilds entire BCD… not a really big deal)
    2. 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.

  1. Attach the Windows 2003 installation disc to the virtual machine disc drive, and then start the computer.
  2. 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.
  3. When the Welcome to Setup screen appears, press the R key to start the Recovery Console.
  4. Select the Windows installation that you must access from the Recovery Console.
  5. Follow the instructions that appear on the screen, type the Administrator password, and then press ENTER.
  6. Type the following command in this order to set your system straight:
      1. fixmbr (Fixes MBR)
      2. fixboot (Fixes Boot Sector)
      3. bootcfg /rebuild  (Lists all Windows installations that you can add)
      4. 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
http://support.microsoft.com/kb/326215

Description of the Windows XP Recovery Console for advanced users
http://support.microsoft.com/kb/314058

 

(Article taken from TN blog: http://blogs.technet.com/b/jonjor/)

Tag Cloud