How to add space for virtual machines in Microsoft Server Hyper-V

0


Virtualization Is an important part of modern IT infrastructure and confronts system administrators with many everyday administrative tasks. hard disk Space if required. In my work I do this at least once a month to expand log files, scale growing processes and new tasks on existing servers.

To do this, on a Microsoft Server Hyper-V hypervisor running Windows Server 2016 with Hyper-V Manager or Failover Cluster Manager:

Hyper-V is a Type 1 hypervisor that installs directly on the underlying hardware and acts as a lightweight operating system on which virtual machines are created. By installing it directly on the hardware, the VM performance is better than with type 2 hypervisors, in which the operating system intervenes between the VM itself and the hardware.

The two main Hyper-V management tools that can be used to increase virtual disk capacity are Hyper-V Manager and Failover Cluster Manager. Failover Cluster Manager is only used when multiple VM hosts are running and the hosts are clustered. This enables disaster recovery if a physical machine fails. It also avoids downtime when performing updates on the host machine. (Clustering is a useful tactic, but it doesn’t replace all regular backups.)

Hyper-V Manager is used to increase the capacity of your hard drive when you have only one physical host or multiple hosts that are not clustered.

The following steps show how to use both Hyper-V Manager and Failover Cluster Manager to increase disk space. You start with Hyper-V Manager.

First, shut down the VM that you plan to add to your hard drive’s capacity. To make sure it shuts down,[状態]Make sure that the column entry is “off”. Next in the menu on the right side of the screen[設定]Click to open.

Flower vms1 Michael A. Flowers Senior

If you are using Failover Cluster Manager, select the role you are working on (VM alias) and use the menu on the right side of the screen.[設定]Click to open.

Flower vms2 Michael A. Flowers Senior

This next part is the same whether you are using Hyper-V Manager or Failover Cluster Manager.

In the menu on the left, select the hard drive that you want to expand. This is likely to be a simulated Integrated Drive Electronics (IDE) controller, but it could also be an Internet Small Computer Systems Interface (iSCSI) controller, depending on what you chose when you set up the drive. I got. From the dialog box[メディア]In the section under the path of the virtual hard disk[編集]Click.

Flower vms3 Michael A. Flowers Senior

Make sure the hard drive location is correct.[次へ]Click.

Flower vms4 Michael A. Flowers Senior

[アクションの選択]On the screen from the options[展開]Choose.[次へ]Click.

Flower vms5 Michael A. Flowers Senior

[ディスクの構成]On the screen you have to enter the size in GB in order to be able to use the hard disk after the expansion.[次へ]Click.

Flower vms6 Michael A. Flowers Senior

Finally, check the summary to make sure everything is correct and that it is correct[完了]Click.

Flower vms7 Michael A. Flowers Senior

Go back to either Hyper-V Manager or Failover Cluster Manager, select the VM you are using and choose[開始]Click to turn it back on. With both management tools[スタート]The button is[設定]It’s in the menu on the right where the button was. This is what it looks like in the Hyper-V Manager:

Flower vms8 Michael A. Flowers Senior

And that’s in the Failover Cluster Manager.

Flower vms9 Michael A. Flowers Senior

On Windows Server 2016, open Server Manager and in the top right corner[ツール]Go to the drop down menu[コンピューターの管理]Click.

Flower vms10 Michael A. Flowers Senior

In the menu on the left[コンピュータの管理]so,[ディスクの管理に移動]Click.

Flower vms11 Michael A. Flowers Senior

In the lower half of the dialog is a section that shows the unallocated number of disk partitions. (In the screenshot below, this unallocated space is partially blocked by the drop-down menu.) Right-click the hard drive partition and[ボリュームの拡張]Choose.

Flower vms12 Michael A. Flowers Senior

[ボリュームの拡張ウィザード]A dialog box will appear.[次へ]Click.

Flower vms13 Michael A. Flowers Senior

On the next screen, all of the unallocated space will be automatically added to the selected side of the space selection area. Make sure you are adding the correct space.[次へ]Click.

Flower vms14 Michael A. Flowers Senior

Click Finish to complete the deployment.

Then you will see the expanded hard drive with the new space.

Adding space to a virtual hard disk is an easy task and another benefit of using a virtual machine.

Join the Network World community above Facebook When LinkedIn Comment on topics that come to mind.

Copyright © 2021 IDG Communications, Inc.


Share.

Comments are closed.