Virtual Hard Disk(Creating,attaching and detaching VHD in Windows 7)

What is Virtual Hard Disk?

Virtual Hard Disk is a file format or replica identical to physical hard drive. It allows multiple operating systems to reside on host machine without having the need to create partitions on your hard disk.

VHD support in Windows7

Windows7 has support for creating Virtual Hard Disks. So after upgrading my PC to Windows 7 , I decided to give a try to this new in built feature.

Here are the steps:

1) First go to the Disk Management Window. 3 ways.. to get there..

a) Click Start->Right Click Computer-> and Select-> Manage or

b) Click Start-> Click Control Panel->System and Security->Administrative Tools->Computer Management or

c) Type compmgmt.msc in Search Box and press Enter.

Under Storage option, click Disk Management to see the disks. This is my comp’s Disk Management View.


Step1: Right click Disk Management option or click Action on Menu and select the Create VHD option.

clip_image003         or      clip_image004


Step 2: Select the location to save your VHD file format. Enter it’s size . Choose the hard disk format. The options are self-descriptive.

For detailed explanation click here (ignore the title.) 

I chose to save the file as Vista.vhd in Vista VHD folder on G: drive. Virtual Hard Disk Size: 20GB. clip_image006

You might see this popup if notifications are enabled while the vhd files are being created.



Step 3: Now you see the black colored space saying Unknown ..Not initialized.

So right click and Initialize it. The next windows explains why to do so: You have to initialize disk to access it. Simple isn’t it?

Then select MBR option . Master Boot Record abbreviated as MBR does the job of bootstrapping or activating the operating systems .




Finally after success you should see a similar screen with Disk1 but unallocated…So….


Step 5: Now create a simple volume. Select the volume size. Select the letter for your drive. I selected “P”.

Format it using NTFS.




You have you primary partition created.


Once done.. you see the following window popped up.


Step 6: To detach VHD, right click Disk Management or Action and select Detach VHD.



Here are the links  for the best Blogs I referred and followed: