Convert VHD to VHDX

is the new and default format of virtual hard disk (VDH) that is provided by 8 Client and Windows Server Hyper-V. There are many reasons to favor files over files, including:

  • scalability to 64 TB instead of 2040GB
  • better performance by offering 4 K sector matching
  • protection against data corruption during power outages
Using to Convert to

You can dispense with the time-consuming wizard by using PowerShell. This will be extremely useful if you need to use a to automate lots of conversions across many virtual machines. The following snippet will convert a VHD to a VHDX:

Convert-VHD –Path d:\VM01\Disk0.vhd –DestinationPath d:\VM01\Disk0.

When you create a new file (not converted) it has a physical sector size of 4 K. A converted VHDX file has a physical sector size of 51 Bytes. You can the physical sector size of a converted VHDX by this piece of before you power up the virtual machine:

set- d:\VM01\Disk0.vhdx -PhysicalSectorSizeBytes 4096

Now you have a virtual machine that is using the best kind of virtual machine storage, the format virtual hard disk

The above instructions do not finish the job. The next essential set of steps are:

  1. Open the settings of the virtual machine.
  2. Replace the with the VHDX.
  3. Start and test the virtual machine.
  4. Delete the file.
Translate »
%d bloggers like this: