srvgeek

srvgeek
srvgeek

Tuesday, January 4, 2011

P2V with Disk2VHD–Part 1 & Part 2

P2V with Disk2VHD–Part 1 

Migrating a physical machine to a virtual machine can be done a number of ways.  You can use System Center Virtual Machine Manager, PlateSpin PowerConvert or a host of other tools.  One of those tools is the free Disk2VHD tool from Sysinternals.  Disk2VHD will take a snapshot of a running machine and write it to a VHD that you can boot up in Hyper-V (or Virtual PC).  The process is pretty straight forward and in Part 1 we will capture the source machine.

You will need to download Disk2VHD and once you have unzip it.  At that point you have two options, the command line or the GUI.  To convert using the command line run the following command:
disk2vhd.exe <SOURCE_DRIVE_LETTER> <PATH_TO_VHD>
As an example to capture the C: drive and write it to C:\disk2vhd\ISA2006.vhd you would run the following command:
disk2vhd.exe C: C:\Disk2VHD\ISA2006.vhd

In the command line you can replace C: with a * to capture all drives in the system.  The other option is to use the GUI.  To do so launch Disk2VHD.exe and you will see the following window:

Simply check the box next to the drive(s) you wish to capture, enter the path to save the file too and click Create.  If you are going to load the VHD in Virtual PC you will need to check the box “Prepare for use in Virtual PC”.  This will correct the HAL and is only required with Windows XP/2003 operating systems.
Part 2 will take a look at loading the VHD in a new virtual machine.


P2V with Disk2VHD - Part 2

Migrating a physical machine to a virtual machine can be done a number of ways.  You can use System Center Virtual Machine Manager, PlateSpin PowerConvert or a host of other tools.  One of those tools is the free Disk2VHD tool from Sysinternals.  Disk2VHD will take a snapshot of a running machine and write it to a VHD that you can boot up in Hyper-V (or Virtual PC).  The process is pretty straight forward and in Part 1 we captured the source machine.  In part 2 we will bring it online in Hyper-V.
With the VHD copied to the Hyper-V Server we simply have to create a new virtual machine.  When you get to the Connect Virtual Hard Disk screen simply select the VHD you captured with Disk2VHD.

You will have to make sure all the hardware settings are similar.  If you had 4GB of memory on the physical machine the virtual machine will need the same.  There are no sizing differences between the physical and virtual machine.  You will also need to make sure your CPU settings are similar and that you have the same number of NICs as the physical machine had.

Once that is all verified you can boot the system.  Leave the NICs disconnected for now until you verify the system is working, then take the old system offline, connect the NICs and you are ready to roll!  Once the VM boots you will need to install/upgrade the Hyper-V Integration Components (depending on the source OS). 

No comments:

Post a Comment