Expanding a disk in a Hyper-V environment

My name is Ito and I am an infrastructure engineer

When it comes to virtual environments for Windows, Hyper-V is the go-to.
The convenient thing about virtual environments is that you can change the specifications later.

However, adding a disk is a bit more complicated than adding a CPU or memory.
So, here are the steps for adding a disk in Hyper-V!

The procedure can be broadly divided into two steps

  • On the Hyper-V side
  • Working in a virtual OS

Procedure on Hyper-V side

First, on the Hyper-V side, increase the capacity of the virtual HDD used for the virtual OS

*To expand the virtual HDD, you must shut down the virtual OS.*

The following steps will be taken after shutdown

Locate the VHD file

Check the location of the HDD you are using for the virtual OS

Check the settings of the target virtual OS.
The enclosed area shows the location of the VHD file.
SnapCrab_NoName_2016-7-14_20-23-13_No-00_071416_082652_PM

Expanding a VHD file

Once you have confirmed the location of the VHD file, you can actually expand it

From the Hyper-V management screen, click "Edit Disk."
SnapCrab_NoName_2016-7-13_19-5-29_No-00_-_Copy_071416_083318_PM

Select the location of the VHD file you found earlier
SnapCrab_NoName_2016-7-14_20-28-35_No-00

"Extend"
SnapCrab_NoName_2016-7-13_19-6-13_No-00

Determine the size of the VHD file after expansion
SnapCrab_NoName_2016-7-13_19-6-13_No-00

The VHD file has now been expanded.
However, while the VHD file has been expanded, the virtual OS has not yet been expanded.
It is recognized in Windows, but no partition has been allocated.

So you need to expand the partition in the OS

Working in a virtual OS

We will start up the virtual OS that was shut down and expand it

From "Server Manager," go to [Storage] - [Disk Management].
(For client operating systems, this is "Computer Management.")

Since you are expanding the disk capacity, you will probably have some "unallocated" space
SnapCrab_NoName_2016-7-13_19-12-58_No-00

Right-click the drive you want to expand and select "Extend Volume."
SnapCrab_NoName_2016-7-13_19-13-12_No-00

The Volume Expansion Wizard will appear.
If you want to expand the entire volume, simply click "Next" without worrying about anything else to complete the process.

Done!!!
SnapCrab_NoName_2016-7-14_21-29-18_No-00

Points to note

Generally, partition expansiondrives that have unallocated space to the right of themis only possible for

your partitions are set up as "C drive, D drive, unallocated," and
you want to extend the C drive, you will need to delete the D drive first.

Be careful as it's quite a hassle

If you found this article helpful,please give it a "Like"!
22
Loading...
22 votes, average: 1.00 / 122
48,352
X Facebook Hatena Bookmark pocket

The person who wrote this article

About the author