[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Successor to CentOS] AlmaLinux OS server construction/migration service

[Successor to CentOS] AlmaLinux OS server construction/migration service

[For WordPress only] Cloud server “Web Speed”

[For WordPress only] Cloud server “Web Speed”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Reservation system development] EDISONE customization development service

[Reservation system development] EDISONE customization development service

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[Global exclusive service] Beyond's MSP in North America and China

[Global exclusive service] Beyond's MSP in North America and China

[YouTube] Beyond official channel “Biyomaru Channel”

[YouTube] Beyond official channel “Biyomaru Channel”

Extend disk in Hyper-V environment

My name is Ito and I am an infrastructure engineer.

Hyper-V is a Windows virtual environment.
The convenient thing about virtual environments is that you can change the specifications later.

However, the procedure for disks is a little more complicated than for CPUs and memory.
So, here are the steps to add a disk to Hyper-V!

The steps can be broadly divided into two.

  • Work on Hyper-V side
  • Working within a virtual OS

Steps 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, it is necessary to shut down the virtual OS. *

The following is the work to be done after shutdown.

Locate the VHD file

Check the location of the HDD used for the virtual OS.

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

Extending VHD files

Once you have confirmed the location of the VHD file, let's actually expand it.

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

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

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

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

The VHD file expansion is now complete.
However, although the VHD file has been extended, it is still not extended on the virtual OS side.
Windows recognizes it, but no partitions are assigned to it.

Therefore, expand the partition on the OS.

Working within a virtual OS

Start up the virtual OS that was shut down and expand it.

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

Since you are expanding the disk capacity, you may 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 Extend Volume Wizard appears.
If you want to expand everything, just click "Next" without worrying about it and it will be completed.

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

Points to note

Basically, partition expansion is only possible on drives with unallocated space on the right

If the partitions are cut like "C drive, D drive, unallocated" and you
want to expand the C drive, you need to delete the D drive first.

Be careful, it's quite troublesome.

If you found this article helpful , please give it a like!
18
Loading...
18 votes, average: 1.00 / 118
36,019
X facebook Hatena Bookmark pocket
[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

The person who wrote this article

About the author