• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Hyper-V Virtual Hard Disk - Convert to VHD or VHDX


Harrylowt

New Member
Pro User
UK

Posts
333
Hyper-V Virtual Hard Disk - Convert to VHD or VHDX
This tutorial will show you how to convert a Hyper-V virtual hard disk to VHD or VHDX in Windows 8 and 8.1.
Published by Harrylowt
#1
Category:
ByLine
How to Convert Hyper-V Virtual Hard Disk to VHD or VHDX
Synopsis
This tutorial will show you how to convert a Hyper-V virtual hard disk to VHD or VHDX in Windows 8 and 8.1.
How to Convert Hyper-V Virtual Hard Disk to VHD or VHDX

information   Information
This tutorial will show you how to convert a Hyper-V virtual hard disk toVHD or VHDX in Windows 8and 8.1.

Note   Note
This example will show you how convert a Hyper-V VHD to VHDX, although you are able to also convert VHDX to VHD. Also through out this processes you will see how to change the disk to dynamic or fixed. The VHD/VHDX must not be in use at the time of Convert or you will receive an error.





OPTION ONE
Convert Hyper-V Virtual Hard Disk to VHD or VHDX in Hyper-V

1. Press the :winkey: + R keys to open the Run dialog, type virtmgmt.msc, and click/tap on OK.​
1.png
2. In the left pane, right click or press and hold on your Hyper-V Server (ex: GBPNB00694), and click/tap on Edit Disk.​
NOTE: Alternatively, you could also click/tap on Edit Disk under Actions in the far right pane.
2.png
3. Click/tap on Next on the Before You Begin page.​
3.png
4. To navigate to your Virtual Hard Disk, and click/tap on Browse.
warning   Warning
Do not edit a virtual disk associated with a virtual machine that has snapshots, has replication enabled, or associated with a chain of differencing virtual hard disks. Otherwise, data loss is likely to occur
4.png
5. Click/tap on the Virtual Hard Disk you want to convert, click/tap Open, and click/tap on Next on the Locate Disk page.​
5.png
6. On the actions page, choose Convert, and click/tap on Next.​
6.png
7. On the Choose Disk Format page, choose what disk format (ex: VHDX) you are converting to, and click/tap on Next.​
7.png
8. On the Choose Disk type Page, choose what disk type (ex: Dynamic expanding) you desire from your Virtual Hard Disk, and click/tap on Next.​
12.png
9. On the Configure Disk Page, choose a save location and the Virtual hard Disks file name (ex: Eightfourmsconvert) at the end of my default file path, and click/tap on Next.​
8.png
10. On the Summary page, click/tap on Finish.​
9.png
11. The Virtual Hard Disk will now convert.​
10.png





OPTION TWO
Convert Hyper-V Virtual Hard Disk to VHD or VHDX in PowerShell

1. Open an elevated PowerShell.
2. From your PowerShell console you can use a code like below to convert a virtual hard disk.​
  • You will see firstly you use Convert-VHD cmdlet, where you then use -path to specify where your Virtual Hard Disk is located. That will be the disk you want to convert.
  • The next step is to choose a destination for the output of the Virtual Hard Disk. To do this we use the -Destinationpath switch followed by the output path and file extension.
  • To make the virtual hard disk type dynamic, use the switch -VHDType Dynamic. To make the virtual hard disk type fixed, use the switch -VHDType Fixed.
Code:
Convert-VHD –Path '[COLOR=#ff0000][B]C:\Users\Public\Documents\Hyper-V\Virtual hard disks\eightforum.vhd[/B][/COLOR]' –DestinationPath '[COLOR=#ff0000][B]C:\Users\Public\Documents\Hyper-V\Virtual hard disks\eightforum.com.vhdx[/B][/COLOR]' -VHDType [COLOR=#ff0000][B]Dynamic[/B][/COLOR]
13.png


 
Last edited by a moderator:

My Computer

System One

  • OS
    Windows Server 2012 R2 / 8.1

Users Who Are Viewing This Thread (Users: 0, Guests: 1)