How to Convert a VMware VMDK File to a Bootable Hyper-V VHD File or Assistance Needed for Migrating VMware VM to Azure VM

Swaroop Gowda D 25 Reputation points
2024-07-18T07:22:12.2033333+00:00

I am looking to migrate my current setup from a VMware VM to an Azure VM without any manual intervention, ensuring that all software and applications run smoothly post-migration.

While I am aware of the standard VM migration processes from VMware to Azure, I am seeking additional approaches to achieve this.

Current Approaches Tried:

Using WinImage:

  1. Navigated to Disk > Convert Disk > Create Fixed Size VHD.
  2. Converted the disk.

However, after converting the disk, when I attempt to attach the VHD to a local machine, it prompts me to format the disk before use. Formatting the disk would erase all data, which defeats the purpose of the conversion as I might as well create a new VHD.

Using QEMU:

  1. Executed the following command in CMD:
    qemu-img.exe convert -p -f vmdk "E:\test\disk1.vmdk" -O vpc -o subformat=fixed "E:\test\newdisk.vhd"
  2. The disk conversion completes successfully, and I can attach it to a local machine without formatting.

However, when I try to create a new VM in Hyper-V or Azure using this VHD, the VM fails to boot with the error: "Boot failure. Reboot and Select proper Boot device or Insert Boot media in selected Boot device."

Troubleshooting Steps:

I have followed this documentation https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/os-bucket-boot-failure.

And discovered that the issue arises because the disk is in GPT partition format rather than MBR.

Request for Assistance:

Could you please provide alternative approaches to convert the disk from VMDK to VHD, ensuring the disk remains bootable and no formatting is required?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,551 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,627 questions
{count} votes