Add, Convert and Expand Virtual Hard Disk in Hyper-v on Windows Server 2012 R2

Add, Convert and Expand Virtual Hard Disk in Hyper-v on Windows Server 2012 R2

Add, Convert and Expand Virtual Hard Disk in Hyper-v is a need as per the requirement. Some times Virtual Hard Disk of Virtual Machine not work properly therefore you can replace the hard disk with new hard disk. You can convert the Virtual Hard Disk from VHD format to VHDX format and Fixed size Virtual Hard Disk to Dynamic size of Virtual Hard Disk. You can also expand the size of Virtual Hard Disk as per the requirement.

Add Virtual Hard Disk:

To add or replace the Virtual Hard Disk of Virtual Machine right click on Virtual Machine then click on settings.

how to add virtual hard disk in hyper-v on windows server 2012 r2

Click on "New" to add or replace the Virtual Hard Disk.

how to add virtual hard disk in hyper-v on windows server 2012 r2

Click next to Continue, if you don't want to see before you begin page again tick the check mark on "Do not show this page again".

how to add virtual hard disk in hyper-v

Choose the format VHD for the new Virtual Hard Disk. VHD support upto 2TB size of Virtual Hard Disk.

add virtual hard disk in hyper-v on windows server 2012 r2

Windows Server 2012 R2 Hyper-v is provide three types of Virtual Hard Disk that are mention below.

  1. Fixed Size.
  2. Dynamically expanding.
  3. Differencing.
Fixed size of Virtual Hard Disk reserve the fix amount of space from Physical Hard Disk and it is use for the better performance of Operating System and applications, Dynamic size (Dynamically expanding) of Virtual Hard Disk is increase as per the usage of Data and Differencing Virtual Hard Disk is use for Parent-Child relationship with another disk. Here we are choosing the option of "Fixed Size".

add virtual hard disk in hyper-v on windows server 2012 r2

Give the name of new Virtual Hard Disk and also provide it's location.

add virtual hard disk in hyper-v on windows server

Give the size of new Virtual Hard Disk. Here we are create a Virtual Hard Disk with size 60GB, you can change the size of Virtual Hard Disk as per the requirement. In this Configure Disk window you can choose the option "copy the contents of the specified physical disk" or "copy the contents of the specified virtual hard disk".

how to add virtual hard disk in hyper-v on windows server

Click on "Finish" to complete the creation process of New Virtual Hard Disk.

add virtual hard disk in hyperv on windows server

The new Virtual Hard Disk is creating.

how to add virtual hard disk in hyperv on windows server 2012 r2

To check the size of new Virtual Hard Disk in Virtual Machine settings click on "inspect".

how add virtual hard disk in hyperv on windows server 2012 r2

You can see the format of the new created Virtual Hard Disk in the below image.

how add virtual hard disk in hyperv on windows server

Convert Virtual Hard Disk:

To convert Virtual Hard Disk from VHD format to VHDX format and Fixed size Virtual Hard Disk to Dynamic size Virtual Hard Disk click on "Edit".

how to convert virtual hard disk in hyper-v

Click on "Next" to continue the convert process of Virtual Hard Disk.

how to convert virtual hard disk in hyper-v

To convert the Virtual Hard Disk choose the option "Convert".

convert virtual hard disk in hyper-v

Here we are converting Virtual Hard Disk from VHD format to VHDX format, VHD format support  2TB size of Virtual Hard Disk and VHDX format support 64TB size of Virtual Hard Disk. Choose the option VHDX.

convert virtual hard disk vhd format to vhdx format in hyper-v

and we are also convert the size of Virtual Hard Disk from Fixed size to Dynamically expanding, you can remain the size of Virtual Hard Disk to Fixed size.

how to convert virtual hard disk fixed size to dynamic size in hyper-v

Provide the name and location of new convert Virtual Hard Disk.

how to convert virtual hard disk in hyperv

Click on "Finish" to complete the convert process of Virtual Hard Disk.

how to convert virtual hard disk in hyperv on windows server 2012 r2

The Virtual Hard Disk is converting from VHD format to VHDX format and Fixed size to Dynamic size.

how to convert virtual hard disk in hyperv on windows server

Size of Virtual Hard Disk is 60GB before conversion.

how to convert virtual hard disk in hyperv

Size of Virtual Hard Disk has became 4096KB after conversion because we choose the option of Virtual Hard Disk size was "Dynamically expanding".

how to convert virtual hard disk in hyperv on windows server

Expand Virtual Hard Disk:

To expand the size of Virtual Hard Disk click on "Edit" in Virtual Machine settings.

how to expand virtual hard disk in hyper-v on windows server 2012 r2

Click on "Next" to continue the expand process of Virtual Hard Disk. 

how to expand virtual hard disk in hyperv on windows server

Choose the option "Expand" then click "Next".

how to expand virtual hard disk in hyper-v

Give the size of Virtual Hard Disk as per the requirement. Here we are expanding Virtual Hard Disk size from 60GB to 75GB.

how to expand virtual hard disk in hyperv

Click on "Finish" to complete the expand process of Virtual Hard Disk.

how to expand virtual hard disk in hyperv

The Virtual Hard Disk is expanding.

expand virtual hard disk in hyper-v

To check the new size of Virtual Hard Disk click on "inspect" in Virtual Machine settings.

how to expand virtual hard disk in hyperv

You can see that the size of Virtual Hard Disk has expand from 60GB to 75GB.
 
expand vhd in hyperv

Thanks for Read this Article

Comments