Thursday, January 21, 2010

creatING a virtual image of a working Windows installation with Disk2vhd

ABOUT DISK2VHD
Disk2vhd can create images from any drive attached to a PC so long as the drive has the necessary files. The tool works by using the Windows’ Volume Snapshot capability found in any Windows operating system, starting with XP and later. In fact, the best method of using this tool is to save the .vhd file to an externally attached drive. If you save the image to the same drive you are taking the image from, performance will seriously degrade. Since the process is already fairly slow, you do not want to make matters worse.

You will also need to make sure that you have plenty of space on the target drive. Most likely the installation you are using to create your image is not a clean installation, but a specific image with various applications and configurations. This will cause the size to grow quite a bit. This also brings up another issue: If the drive is a VFAT-formatted drive, your image file cannot be over 4GB. So make sure either your file system will accept larger files or your vhd file is less than 4GB.

So, with that said, let’s take a look at how this tool is used.
Getting and installing

There really is no installation involved with Disk2vhd. This application is not an installer file but a self-contained binary, which can be executed from any location (even a thumb drive). So when you download and extract the Disk2vhd file, you will see four files inside the newly created Disk2vdh directory. Of these files, the one you will use is disk2vhd. You can either double-click that file from within the Disk2vhd directory or pin the file to either the Start menu or the Quick Launch menu.

When you start the application, you will see the main window (Figure A). There is no configuration window, which makes this tool simple to use.
Figure A

How it works
As you can see, I have set the location of my target file to be on an external hard drive. This ensures that I have enough space for the image as well as keeps the process from dragging my machine to a crawl.
Once the minimal options are taken care of, all that is left to do is to click the Create button. Once you have done this, the process will begin. Depending on the size of your image file, this process could take some time. During the creation, you will see the progress bar very slowly inch across the window (Figure B).
Figure B


Once the process is complete, you will have a file on your target drive named after your PC with the extension .vhd. It is this file that you can then import into the virtual machine tool of your choice. Without going into the specifics of each virtual machine tool, the process of adding these image files is simple:

* Create a new virtual machine with the characteristics that match the machine used to create the image file.
* During the process of creating the virtual machine, use the vhd file as the new machine’s IDE disk.
* When you first boot the new machine, the virtual machine tool will detect the machine’s hardware and automatically install the drivers.

Those steps could vary, depending on the virtual machine tool you use

Labels:

posted by SHERRY @ 8:51 AM  

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

 
created by : SHERRY SAHI