How to Virtualize a Physical Server Using Disk2vhd

An example of what Disk2vhd GUI looks like.
An example of what Disk2vhd GUI looks like.

A simple solution to converting an existing physical server into a vhd file is to use the free utility from Microsoft called Disk2vhd. This is useful for creating backups of a whole machine or only certain volumes. The resulting vhd file can be imported into a Hyper-V instance. One vhd file will be created for each physical disk.

A great benefit of this utility over others is that it can be run while the server is online. Another plus is that there is nothing to install in order to use this utility – you can even run it off a USB flash drive.

Disk2vhd runs on Windows XP SP2, Windows Server 2003 SP1, and higher, including x64 systems. Download the Disk2vhd utility from Mircosoft here.

Once you run the utility, simply check the boxes of all volumes you wish to create vhds for. I typically save the resulting vhd file to a network location such as a share on another server. Click create and then work on another project if your volumes are fairly large.

This utility will likely come in handy for you someday.

CAUTION: You should be careful when creating a vhd of a domain controller in a domain with multiple domain controllers. You will experience much grief if you restore from a vhd that was out of sync with the other domain controller(s). To understand more of what I am talking about, read this article.

Comments

One response to “How to Virtualize a Physical Server Using Disk2vhd”

  1. […] ran into a situation recently where I had virtualized a server that had two physical hard disks of 80 GB each using Disk2vhd.  One was the C drive and the other the D drive.  The system volume on the C drive was 99.9% full […]

Leave a Reply

Your email address will not be published. Required fields are marked *