Warning: Undefined array key "titleWrapper" in /home3/jamil642r/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/blocks/toc/class-block-toc.php on line 103
HomeMicrosoft Hyper-VHow to Convert VHD to VHDX Hyper-V

How to Convert VHD to VHDX Hyper-V

This article explains how to convert VHD to VHDX, or VHDX to VHD in Hyper-V Manager. Windows Server 2012 Client and Windows Server 2022 Hyper-V onward VHDX is the new and default format of the Hyper-V VHD virtual hard disk.

The VHDX files can be used for virtualization with Windows Server 2012 and Windows 8. You might be wondering what to do with your old VHD files now that you want to use the new features of VHDX.
Yes, Microsoft has a solution for this issue as well. You can change your VHD file to a VHDX file. So, you’ll be able to use all of the VHDX file format’s features. But the most important question is how to convert a VHD file to a VHDX file.

Convert VHD to VHDX

Using Hyper-V Manager
Using PowerShell

Convert VHD to VHDX via Hyper-V Manager

The Hyper-V team has presented an easy way to convert existing VHDs into VHDX via Hyper-V Manager
Open Hyper-V Manager, select Hyper-V server (HYPERV22-01), and then right-click on a VM (virtual machine) whose disk you wish to convert from VHD to VHDX and choose settings.

Hyper-V manager

In the virtual machine properties, click on the disk you want to convert, and then click on the edit button.

Virtual machine settings

Edit the virtual hard disk wizard. Locate the virtual hard disk and choose Next.

Edit virtual machine disk wizard

Convert vhd to vhds, choose action to convert, and then select next.

Virtual machine edit choose action

Select the box for VHDX format, and then choose Next.

Convert VHD to VHDX

Choose the virtual disk type you wish to convert, and then choose Next.

Convert VHD disk type

Select the directory where you wish to save the name of the new converted VHDX file, and then click next.

Convert VHD configure disk

Review the virtual hard disk summary and then choose the finish.

Completing the edit virtual hard disk

The VHD conversion will take time based on the virtual disk size and storage.

Editing the virtual disk

How to Import VHDX to Hyper V

Now open the virtual machine settings and replace the virtual hard disk with the VHDX. Click on the browse button and go to the location of the newly created VHDX disk.

Virtual machine properties

Select your VHDX disk to open.

Vhds location

After choosing the VHDX disk, click Apply or OK to start and test the virtual machine.

Virtual machine settings hard drive

Convert VHD to VHDX via PowerShell Command

You can use the Windows PowerShell command to convert VHD to VHDX.

Convert-VHD –Path “Source vhd file” –DestinationPath “Destination vhdx file”

Example

Convert-VHD –Path C:\ClusterStorage\Volume1\VHD\SRVdisk.vhd –DestinationPath C:\ClusterStorage\Volume1\VHD\SRVdisk.vhdx
Convert vhd to vhdx

Start converting the virtual disk.

Convert virtual disk PowerShell

Change the Disk Physical Sector Size

The virtual machine (VHDx) supports 4 K blocks; after completing the VHD conversion, the default block size of 512 will not change. We need to change it manually. Follow the steps below to check the converted disk sector size and how to modify it to 4K.

Check the Disk Sector Size

Get-vhd “VHDX File Name with Location”

Example

Get-VHD –Path “C:\ClusterStorage\Volume1\VHDX\SRVdisk.vhdx"
Get-VHD

Set the Disk Sector Size

set-vhd “VHDX File Name with Location” -PhysicalSectorSizeBytes 4096
Set-vhd –Path "C:\ClusterStorage\Volume1\VHDX\SRVdisk.vhdx” -PhysicalSectorSizeBytes 4096
Set VHD physical sector size

Refer to this article to find out more about converting VHD to VHDX.

Jamil
Jamilhttp://jamiltech.com
A Professional Technology Blog Writer | An energetic professional with more than 20+ years of rich experience in Technology, Planning, Designing, Installation, and Networking.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments

fitspresso analysis on How to Reset Microsoft 365 Password
historical landmarks tours for history buffs on How to Add Hyper-V Server Altaro VM Backup
9780443186882 PDF download on How to Migrate Active Directory 2012 to 2022
Shaik Mohammad Jaheer on How to Enable Night Light on Windows 11