Professional Documents
Culture Documents
How To Expand A Disk Within A VM That Is Using A VHD File
How To Expand A Disk Within A VM That Is Using A VHD File
How To Expand A Disk Within A VM That Is Using A VHD File
VHD File
Oh no! This screenshot is telling me that there is a BIG problem. My VM only has 9.06 MB
of space free!! Yikes!!! How did I let this happen? I need to fix this fast!
In this blog post I will show you how to expand a VHD to give it more space. By the way,
the whole process to expand the disk and VHD doesn’t take very long to complete.
To fix this problem, first begin by shutting down the VM. Next, in Hyper-V Manager,
highlight your VM and then right-click on it in order to bring up the menu options.
Select Settings…
In the Settings window, select the VHD that needs to be expanded (in my case it is the
second VHD) and then click on the Edit button.
Click Next.
Select Expand and then click Next.
Change the size to increase the space and then click Next. In my case, I will increase the
size by a factor of 10.
Click Finish to complete the VHD expansion process.
Before extending the volume, I will convert the drive to Dynamic Disk first. To do this
select the disk and click Convert to Dynamic Disk…
Click OK to accept the conversion of Disk 1 to a dynamic disk.
Click Convert.
Read the warning message and then click on Yes.
Ensure that Disk 1 is selected and then right-click on the volume and select Extend
Volume…
Click Next.
You can also see in the above screenshot that there is lots of free space on the E:\ drive!
Now it’s time for me to solve the problem of WHY the VHD filled-up in the first place. Turns
out the culprit was SQL Server SSRS database transaction logs, but that’s a story for a
different blog post!