How do I expand the hard drive of a Windows Virtual Machine using Hyper-V?
The following article explains how to expand the hard drive of a Windows virtual machine using Hyper-V. When a virtual machine is created, a hard drive capacity is set. If the virtual machine runs out of drive space, additional space can be allocated to the machine. This is done through the Hyper-V manager located on the hardware node (the dedicated server).
To expand the hard drive, please follow these steps:
- Log into your server using Remote Desktop Connection.
- Open the Hyper-V Manager, typically located in Administrative Tools.
- Connect to the virtual machine and shut it down properly.
- Delete any snapshots that are present.
- Right click the virtual machine in the Hyper-V Manager and select Settings.
- Under IDE Controller 0, click Hard Drive.
- Under Media, click Edit.
- Choose Expand and click Next.
- Enter the new size for the drive and click Finish.
- Click Inspect and verify the new Maximum size is correct.
- Click Close and then click OK.
- Start the virtual machine and connect to it.
- On the virtual machine, open Computer Management, typically located in Administrative Tools.
- Expand Storage, click Disk Management.
- Right click the partition you just expanded and select Extend Volume.
- Verify the added space is correct and click Next.
- Click Finish.




