I want to create an ARM x64 OpenWRT VM in QEMU/KVM rather than the x86_64 variety (which I seem to be able to get to work much more easily). I want to work with ARM architectures, and I want a persistent filesystem on a virtual disk.
To those ends, I am attempting to use openwrt-armvirt-64-rootfs-ext4.img from OpenWRT 19.07 as the source firmware. I am able to convert the img file to qcow2 successfully with the following command:
- qemu-img convert -f raw -O qcow2 openwrt-armvirt-64-rootfs-ext4.img 19.07.qcow2
The resulting file checks out:
qemu-img check 19.07.qcow2
No errors were found on the image.
143/1664 = 8.59% allocated, 0.00% fragmented, 0.00% compressed clusters
Image end offset: 9699328
19.07.qcow2: QEMU QCOW2 Image (v3), 109051904 bytes
However, the qcow2 virtual disk is not bootable, and I am having trouble finding any resources on how to make it bootable. Has anyone out there done this before successfully? The XML of the qcow2 disk in virt-manager shows (correctly) that it is qcow2; I am not sure what else to do. Any suggestions?