Convert VHD Files To VHDX For Use With Windows 8, 8.1, Server 2012 And Server 2012R2 Hyper-V

Did you enjoy this article?
YesNo
Sharing Options:
Estimated Reading Time: 4 Minutes
5/5 - (1 vote)

This post was originally published on November 5, 2016
The latest update to this post was made 7 years ago.

Convert VHD Files To VHDX For Use With Windows 8, 8.1, Server 2012 And Server 2012R2 Hyper-VConvert VHD Files To VHDX For Use With Windows 8, 8.1, Server 2012 And Server 2012R2 Hyper-V

Blog Encounters Multipage Article

You are on page 1/2.

You should use VHDX files in Hyper-V for the best performance! VHDX is a new format that is supported by Windows 8, Windows 8.1, Server 2012 and Server 2012R2 versions of Hyper-V. The main benefits of upgrading are:

  • Better performance – achieved through 4k sector matching vs 512byte.
  • Better protection against data corruption during failed moves or power loss.
  • Scalability from max disk size of 2tb (.VHD) to 64tb (.VHDX).

You can convert older VHD based Hyper-V disks to .VHDX format easily using powershell or the Hyper-V GUI.
A couple of things to keep in mind though:

  1. You can convert back to VHD if needed.
  2. The process runs offline, so be sure you can have your VM down for the time required to convert.
  3. Conversions vary based on hardware, disk speeds and the amount of data to convert.
  4. Use of SSD or 15k drives is recommended to minimize downtime.

 

METHOD 1 : Use Hyper-V GUI

  • Open Hyper-V Manager:
  • Right click on your virtual machine.
  • Locate your virtual hard disk (the .VHD version).
  • Click the ‘Edit’ button below it – the ‘Edit Virtual Hard Disk Wizard’ will appear.
  • Choose ‘Next’ on the ‘Locate Disk’ screen.
  • On the ‘Choose Action’ screen, choose ‘Convert’.
  • Select the ‘VHDX’ radio button, and then choose ‘Dynamically Expanding’.
  • Select the location of where you wish to create the new .VHDX file and choose ‘Finish’.
  • This will convert the disk, but even after conversion, it will still be in the 512byte format. To obtain the features listed above, also run this powershell to tell the converted .VHDX file to use 4096k sectors:
    • Launch PowerShell (as an administrator) and enter command: set-vhd x:\directory\name.vhdx –physicalsectorsizebytes 4096


    Where x:\ is the source drive, \directory is the directory on the drive where the source .VHDX is located and name.vhdx is the name of the newly created .VHDX file from above.

  • Follow steps below under ‘When Conversion Is Complete’…
This article, also on Blog Encounters, may be of interest:  Router Wake On LAN Configuration Options

Blog Encounters Multipage Article

You are on page 1/2.

Loading

Sharing Options:
Did you enjoy this article?
YesNo

Be the first to comment

Leave A Reply