Extending a Microsoft Virtual Server disk

Use VHDResizer to create a new VHD and copy the existing VHD into the new size.  This increases the HD size, but not the partition (keep the original around until you complete the process, just in case).

 

Second, use VHDmount to mount the VHD and used diskpart.exe from the host to expand the VHD’s partition. 


On the host, open the command prompt and type ‘ cd Program Files\Microsoft Virtual Server\Vhdmount

 

Mount the image

C:\>Program Files\Microsoft Virtual Server\Vhdmount>vhdmount /m “C:Documents and Settings\All Users\Documents\Shared Virtual Machines\<server name>\<server name>.vhd” m  (if drive letter m is available)


Once mounted, start diskpart

C:\>Program Files\Microsoft Virtual Server\Vhdmount>diskpart

Expand the partition

DISKPART>list disk

DISKPART>select disk 3 -----check the number in the list to select the right one

DISKPART>list part

DISKPART>select part 1 -----check the number in the list to select the right partition (i.e. the one you want to expand)

DISKPART>extend

DISKPART>list part -----check the new size

DISKPART>exit


Unmount the drive and save changes

C:\>Program Files\Microsoft Virtual Server\Vhdmount>vhdmount /u /c “C:Documents and Settings\All Users\Documents\Shared Virtual Machines\<server>\<server>.vhd”

 

After booting up the VHD again, log in and make sure it is ok.

Article ID: 35, Created On: 5/29/2009, Modified: 6/9/2009

Comments (0)