Sometime you may need to run your own customized VM image in KVM or in public or private cloud that support qcow2 image. here are instructions that you can install the VM from ISO image release to Virtualbox, then convert Virtualbox VDI to Qcow2, you also know how to setup the console access to the VM so you have serial console access to the VM before you have network access to the VM.
On Virtualbox:
VBoxManage clonehd --format RAW ubuntu.vdi ubuntu.img
On KVM host:
qemu-img convert -f raw ubuntu.img -O qcow2 ubuntu.qcow2
libvirt xml for serial console:
from https://github.com/vincentmli/docs/bl... to
https://github.com/vincentmli/docs/bl...
ref: https://computingforgeeks.com/how-to-...