Occasionally when you estimate the size of a VHD that you will be using in a server, you can get it wrong and you will need to give the Virtual Machine some more space. Instead of adding a bigger data disk in the Virtual Machine and migrating data, you can expand the existing disk.
** Figure: You expand a VHD from the Actions Menu | Edit DiskYou will now have a resized VHD. Next step is to boot up into the virtual machine and tell disk manager to resize the partition on the VHD to use the free space which has been added at the end of the VHD. Windows Server 2008 makes this very simple:
** Figure: The first partition on the disk needs to be expanded to use up the unallocated space created when expanding the VHD
Figure: The disk is now using all the available space inside the VHD