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.

clip_image002

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.

clip_image007

 

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 .

clip_image009

clip_image011

clip_image012

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

clip_image014

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

Format it using NTFS.

image 

image

image 

You have you primary partition created.

image

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

image

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

 

clip_image015

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

http://blogs.technet.com/aviraj/archive/2009/01/17/windows-7-boot-from-vhd-first-impression-part-1.aspx

http://blogs.msdn.com/virtual_pc_guy/archive/2009/02/05/mounting-vhds-with-windows-7.aspx

Advertisements