Sunday, September 14, 2008

steps to extend Microsoft virtual harddrive(.vhd)

I was working on virtual PC  created on windows server 2003 as os.When i was trying to install sharepoint and biztalk it started to show me message as it is running out of disk space.I have accepted the default size as 16 gb.How can i extend its default size as my host machine has 80 gb of  free space.

After i did some googling in internet i found a solution and i took  help of VHDRESIZER  which i think is a really excellent tool to rely.

Here is the steps 

1. Download VHDRESIZER  and install it in your host machine
2.Create a new .vhd from the original .vhd (ex-my case original vhd was moss.vhd )
3.add the orriginal .vmc(my case MOSS.vmc) to Microsoft virtual pc and click on settings
4.add the new .vhd to the 2nd hard drive selection
4.start the original .vmc
5.Right click on Mycomputer and click on manage

  you will see a picture like this

Disk Management 1
6.Right click on 2nd disk and click on 'change drive letters and paths' and give a name to it

7.start a command prompt and run 'diskpart.exe'  and write list volume.
 you will see a view like this 
  
 

DiskPart
 
8.select that volume where info is not 'boot' and extend it

9 right click on disk management and refresh it.You will see the extended drive

10.shutdown the original .vmc and start the new vmc with new .vhd.

11.you will find your c: as the extended drive

12. Now have fun.........



0 comments: