Monday, April 19, 2010

Hosting Windows 7 VHD on Virtual PC

Follow up to my earlier post to convert your Windows 7 physical computer to virtual. Let’s create a Virtual Machine on Virtual PC to run your Windows 7 VHD.

First, you need to have your Windows Virtual PC installed. And get ready your Windows 7 DVD or ISO image.

1. Open Windows Virtual PC and click on Create Virtual Machine.

image

2. Give your Virtual Machine a meaningful name and specify the location to save the virtual machine file.

image

3. Specify the memory to allocate to this VM and specify whether you want to enable network connectivity to this VM.

image

4. Attached the Windows 7 VHD that you create from Disk2VHD earlier. Specify if you want to enable Undo Disk. Undo disk allows you to delete any changes you made to the VHD and recover it to its initial state.

image

5. Open your new VM.

image

6. You will encounter boot error. Attach your Windows 7 DVD or ISO to your VM and configure your VM BIOS to first boot to CDROM.

image

image

7. Reboot your VM to Windows 7 DVD and select to Repair your computer.

image

image

8. On System Recovery Options, select Repair and restart.

image

9. You should be able to login to your system after restart. The final step is to install Integration Components.

image

10. You are done after installing Integration Components!!

image

image

Friday, April 16, 2010

Converting your Windows 7 computer to VHD

Here I am working on a project to convert my Windows 7 laptop to a VHD. With this VHD I can keep my workspace regardless of hardware as long as I am able to boot from a VPC.

It also proves to be a good way to backup your computer while keeping your programs and files the way they are. You can always use a cloning tool to restore the VHD to your hard disk.

There are a few tools we need:

1. Disk2vhd – Windows Sysinternals tools http://technet.microsoft.com/en-us/sysinternals/ee656415.aspx

2. VHD Resizer – VMToolKit http://vmtoolkit.com/files/folders/converters/entry87.aspx

3. Windows Virtual PC http://www.microsoft.com/Windows/virtual-pc/default.aspx

Let’s start to convert your Windows 7 computer to VHD.

1. Run Disk2vhd, select the disk to convert to VHD. Then enter a VHD file name. Once done, click on Create to start the conversion.

image

image

2. One of the limitations of Windows Virtual PC is IDE hard disk and disk size limit of 127 GB. For those of you who’s hard disk are bigger than 127GB, you have to shrink it. To shrink the VHD, open Computer Management Console and Attach VHD.

image

3. Right click and bring the VHD Online.

image

4. Shrink the OS volume.

image

5. Now shrink the VHD volume to less than 127GB. Detach the VHD when shrinking completes.

image

6. Open VHD Resizer to resize the VHD to less than 127GB.

image

This completes how to convert your physical Windows 7 computer to a VHD. I will be posting an article on running this Windows 7 VHD on a Windows Virtual PC soon.