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 Category:
- How to Convert Hyper-V Virtual Hard Disk 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.
How to Convert Hyper-V Virtual Hard Disk to VHD or VHDX
This tutorial will show you how to convert a Hyper-V virtual hard disk toVHD or VHDX in Windows 8and 8.1.
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 ONEConvert 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.
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.
3. Click/tap on Next on the Before You Begin page.
4. To navigate to your Virtual Hard Disk, and click/tap on Browse.
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
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.
6. On the actions page, choose Convert, and click/tap on Next.
7. On the Choose Disk Format page, choose what disk format (ex: VHDX) you are converting to, and click/tap on Next.
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.
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.
10. On the Summary page, click/tap on Finish.
11. The Virtual Hard Disk will now convert.
OPTION TWOConvert 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.
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]
- How to Create a Virtual Machine with Hyper-V in Windows 8 and 8.1
- How to Create a Linux Hyper-V Virtual Machine in Windows 8 and 8.1
- How to Change Default Virtual Hard Disk Location in Hyper-V
- How to Create a Hyper-V "Remote File Browser" Shortcut in Windows 8 and 8.1
- How to Add or Remove "Hyper-V Manager" to Control Panel in Windows 8 and 8.1
- How to Create and Use Hyper-V Virtual Switches
- How to Enable and Disable Hyper-V in Windows 8 and 8.1
- How to Turn On or Off Hyper-V Enhanced Session Mode in Windows 8.1
- How to Create a Hyper-V Manager Shortcut in Windows 8 and 8.1
- How to Export and Import a Hyper-V Virtual Machine in Windows 8 and 8.1
Last edited by a moderator:
- Windows Server 2012 R2 / 8.1