Convert vm to vhd azure

mrhoang2610

New Member
Apr 23, 2020
1
0
1
34
I have 2 VMs on proxmox
I want migrate VMs to Azure Cloud use vhd format.
How to convert vm (qcow2) on proxmox to vhd format?
 
The only possible way to convert is the drive (correct me If Im wrong).

You need to use in shell or ssh the following package: qemu-img
With this you can convert your drive format to your desired (like now from qcow2 to vhd)

Go to the directory where your VM is stored and this is an example command:

qemu-img convert -f qcow2 -O vpc disk.qcow2 disk.vhd
 
The conversion works, the problem is that the disk size is not maintained when converting to .vhd from .qcow2.
Azure requires that the disk be exactly a 1 MB increment, and the conversion process always adds 512 KB.
Anyone figure out how to work with the Azure 1 MB increment requirement?
Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!