Hyper-V expand virtual hard drive size

hyper-v

I'm running a virtual machine (Hyper-V) on an Windows Server 2008 R2 64-bit machine. The virtual machine is also a Windows Server 2008 R2 64-bit.

The hard drive is a dynamically expanding virtual hard drive of 45 GB, but when I log in on the machine the hard drive is about 20 GB (the initial size). The drive is almost out of space and does not seem to increase automatically.

EDIT: I forgot to mention that I recently expanded the virtual drive. Thanks for pointing that out.

What should I do?

Best Answer

I found the answer. Use the Disk Management snap-in from the Computer Management tool to expand the partition within Windows.

EDIT: Yes, yes, I know, it was silly of me to forget that I had to expand the partition on the virtual machine if I expand the virtual drive.