How do I expand the hard drive of a Linux Virtual Machine using Hyper-V?
The following article explains how to expand the hard drive of a Linux 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.
- Expand the current partition using the method best suited for the operating system running in the virtual machine. If you are unsure of the best method, please contact support.




