Windows 10: Can't convert a VHDX with Convert-VHD in PowerShell or in Hyper-V Manager

Discus and support Can't convert a VHDX with Convert-VHD in PowerShell or in Hyper-V Manager in Windows 10 Installation and Upgrade to solve the problem; I have a VHDX file that is an image of the system drive in a new laptop, created with Diskpart version 10.0.19041.1: create vdisk... Discussion in 'Windows 10 Installation and Upgrade' started by aturnbul, Feb 25, 2021.

  1. aturnbul Win User

    Can't convert a VHDX with Convert-VHD in PowerShell or in Hyper-V Manager


    I have a VHDX file that is an image of the system drive in a new laptop, created with Diskpart version 10.0.19041.1:


    create vdisk file="D:\PC_Original.vhdx" type=expandable source="\\.\physicaldrive0"


    If this is successful it was, I should be able to store and work with the VHDX on another system. The file PC_Original.vhdx mounts just fine on another Windows 10 Enterprise v20H2 system. There are 5 partitions on the original drive, and each shows up under Diskpart list partitions, as expected. If I dismount the VHDX and try to convert it in PowerShell v5.1.19041.610, I get:


    PS E:\> test-vhd -path e:\PC_Original.vhdx

    True


    PS E:\> convert-vhd -path e:\PC_Original.vhdx -destinationpath e:\new.vhd

    convert-vhd : Failed to convert the virtual disk.

    The system failed to convert 'e:\PC_Original.vhdx'.

    Failed to convert the virtual disk.

    The system failed to convert 'e:\PC_Original.vhdx': The parameter is incorrect. 0x80070057.

    At line:1 char:1

    + convert-vhd -path e:\PC_Original.vhdx -destinationpath e:\new.vhd

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo : InvalidArgument: : [Convert-VHD], VirtualizationException

    + FullyQualifiedErrorId : InvalidParameter,Microsoft.Vhd.PowerShell.Cmdlets.ConvertVhd



    The VHDX passes validation, but I get the cryptic error: 0x80070057.


    Can anyone explain what's wrong here or how to fix it, please? I've found many explanations for the 0x80070057 error code online, but none seem to apply to my situation.


    Thanks in advance for any help.

    :)
     
    aturnbul, Feb 25, 2021
    #1
  2. Kari Win User

    Convert VMWare VM to Hyper-V

    VirtualBox has a tool that can convert VDMK files to VHD. You don't have to install full VirtualBox, only the part that contains the tool:


    Can't convert a VHDX with Convert-VHD in PowerShell or in Hyper-V Manager [​IMG]


    See this tutorial on our sister site Seven Forums: Windows 10 - Test Try with No Risk, No Install - Windows 7 Help Forums

    Part One Step 2 tells what to download, Part Three how to use the tool to convert VDMK to VHD.
     
  3. lx07 Win User
  4. cereberus Win User

    Can't convert a VHDX with Convert-VHD in PowerShell or in Hyper-V Manager

    Risk with adding Hyper-V?

    You do not need to install Hyper-V to convert a vhd to a vhdx file if that is what you want to do.

    Simply create a vhdx file of same or larger capacity as vhd file.

    TThen mount both vhd and vhdx files as drive and clone vhd to vhdx using Macrium Reflect Free.
     
    cereberus, Feb 25, 2021
    #4
Thema:

Can't convert a VHDX with Convert-VHD in PowerShell or in Hyper-V Manager

Loading...
  1. Can't convert a VHDX with Convert-VHD in PowerShell or in Hyper-V Manager - Similar Threads - Can't convert VHDX

  2. convert a VMDK into a VHD ?

    in Windows 10 Customization
    convert a VMDK into a VHD ?: Is there any manual way to convert a VMDK to a VHD ?I have tried all the tools Starwind, Winimage, disk2vhd etc they all generate a VHD file but when I create a ne Virtual Computer & attach the disk none works.I get repeated errors "The virtual machine "New Virtual Machine"...
  3. If convert c:/ drive in VHD can run in hyper-V same PC - this after Reset PC system due to...

    in Windows 10 Installation and Upgrade
    If convert c:/ drive in VHD can run in hyper-V same PC - this after Reset PC system due to...: """ On first boot, a VM booting a captured copy of Windows will detect the VM's hardware and automatically install drivers, if present in the image. If the required drivers are not present, install them via the Virtual PC or Hyper-V integration components. You can also...
  4. How to convert VHD to VHDX using Hyper-V Manager

    in Windows 10 News
    How to convert VHD to VHDX using Hyper-V Manager: [ATTACH]If you have a VHD file and you want to convert it to VHDX format, you can use Hyper-V Manager to get it done. This […] This post How to convert VHD to VHDX using Hyper-V Manager is from TheWindowsClub.com. read more...
  5. How to convert Hyper-V VHDX file to VHD using PowerShell

    in Windows 10 News
    How to convert Hyper-V VHDX file to VHD using PowerShell: [ATTACH] [ATTACH]If you have a VHDX file and you want to make it compatible with some other virtual machine that supports VHD format, then this post shows, how you can convert the Hyper-V VHDX file to VHD using Windows PowerShell so [...] This post How to convert Hyper-V...
  6. Convert VMWare VM to Hyper-V

    in Windows 10 Virtualization
    Convert VMWare VM to Hyper-V: Hi folks am testing this little thing I saw on the Internet about converting a VM created with VMware to HYPER-V For anybody trying this too -- do back up your existing VM if you think you'll need it or if the conversion process fails, How to Convert Vmware Virtual...
  7. Compact a Hyper-V VHD

    in Windows 10 Virtualization
    Compact a Hyper-V VHD: I have Hyper-V VM with the Windows 10 Pro Technical Preview Build 9926 as the guest, and Windows 8.1 Pro as the host OS. I've been running it for 3 months now, with at least 2 build updates. But I can't compact the VHD. The used drive space on the VM guest is 16.8 GB, while...
  8. Fun trying to convert an existing install to a vhd!

    in Windows 10 Virtualization
    Fun trying to convert an existing install to a vhd!: This is not specifically windows 10 but I thought it might be of interest. I currently have dual boot 10 home and 10 pro, and it leaves the partitions decidely non-optimal. I decided I would create a virtual hard disk of the Home drive partition and delete the home...
  9. Can't native boot Hyper-V generation 2 vhdx

    in Windows 10 Virtualization
    Can't native boot Hyper-V generation 2 vhdx: If I create a generation 1 VM I can native boot the vhdx by adding bcd entry. If I make a generation 2 VM it fails with "a required device isn't connected...0xc0000225". Pressing f8 for "Startup Settings" gives "The application or operating system couldn't be loaded because a...
  10. Hyper-V - Native Boot VHD

    in Windows 10 Tutorials
    Hyper-V - Native Boot VHD: How to: Hyper-V - Native Boot VHD [img] Information First a quote from Microsoft Developer Network's (MSDN) support article: Native Boot allows you to create a virtual hard disk (VHD), install Windows to it, and then boot it up, either on your PC side-by-side with...