QUEMU/KVM to Azure
-
I am in the process of preparing an Ubuntu server for deployment to Azure. I have configured the system for azure migration per microsoft docs. I have converted the qcow2 image to vhdx. Now I need to convert it to VHD. There are tons of tools for Windows to do this, I am looking for a linux command line solution.
-
Why not go direct from qcow2 to vhd with qemu-img?
-
@DustinB3403 said in QUEMU/KVM to Azure:
Why not go direct from qcow2 to vhd with qemu-img?
I seen to only be able to convert to vhdx
-
@IRJ said in QUEMU/KVM to Azure:
@DustinB3403 said in QUEMU/KVM to Azure:
Why not go direct from qcow2 to vhd with qemu-img?
I seen to only be able to convert to vhdx
That doesn't make a lot of sense, as the documentation says it supports conversations (haha) conversions* of all types. Is there an error you are getting?
-
@DustinB3403 said in QUEMU/KVM to Azure:
@IRJ said in QUEMU/KVM to Azure:
@DustinB3403 said in QUEMU/KVM to Azure:
Why not go direct from qcow2 to vhd with qemu-img?
I seen to only be able to convert to vhdx
That doesn't make a lot of sense, as the documentation says it supports conversations (haha) conversions* of all types. Is there an error you are getting?
sudo qemu-img convert -f qcow2 -O vhd secureonion.qcow2 secureonion.vhd qemu-img: Unknown file format 'vhd'
-
However this command works just fine...
sudo qemu-img convert -f qcow2 -O vhdx secureonion.qcow2 secureonion.vhdx
-
@IRJ Try this:
qemu-img.exe convert source.qcow2 -O vpc -o subformat=fixed dest.vhd
-
@Romo said in QUEMU/KVM to Azure:
@IRJ Try this:
qemu-img.exe convert source.qcow2 -O vpc -o subformat=fixed dest.vhd
This appeared to work. I haven't gotten a chance to test yet, but it's larger in size compared to vhdx as I'd expect.
The exe part just needs to be dropped.
sudo qemu-img convert source.qcow2 -O vpc -o subformat=fixed dest.vhd
-
Yeah, sorry misread you where looking for how to do it from windows that why I added the exe