Virtualizing a Windows 2000 Installation

If you want to save your applications that do not run under Windows 7, you sooner or later need to migration them into a VM.

First, you need to create a disk image of the original installation: I removed the boot disks from the PCs, and connected them to W7 using an IDE-to-USB converter.

To take a snapshot of the disk, I used vConverter and disk2vhd on different occasions. vConverter creates .vmdk files, where disk2vhd uses the .vhd format. Both file formats can be used by VirtualBox.

Before you start your favorite snapshot tool, you should

  • uninstall any software you do not need in the VM
  • clean up unused files on the disk: temp files, downloads, browser history, recycle bin, etc.
  • defrag the harddisk

After preparing the harddisk, create the image.

Start VirtualBox and create a new Virtual Machine. Add the image as boot disk.

In the System tab, I had to enable the IO-APIC setting to get the VM to boot. Add a CD drive in the VM configuration to allow for mounting and installing the Extension Pack once the VM is running.

After installing the extensions (previously called Guest Additions), you can adjust the display settings to a higher resolution. (you will be prompted to set color depth to 32-bit)

If you could not perform the uninstall or cleanup operations on the original harddisks, you can now clean the harddisk inside the VM.

Note that if the VM is offline, you can mount the disk image using Windows 7’s Disk Management and resize the volumes inside the image file.

However I could not find any information on how to shrink VHD files reliably using VirtualBox: VBoxManage modifyhd does not support the –compact option for vhd’s.

The following links did not sound very reassuring, so I did not try them:

VHDResizer can shrink a vhd file, but may leave you with an unbootable image. Virtual PC seems to have an option to compact a vhd file, but the “empty” space needs to be filled with zeros.

So it’s best to clean up before creating the image to avoid complications later on.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: