qemu-system-aarch64: no function defined to set boot device list for this architecture
I have been trying to work with qemu-system-aarch64 to create/generate a qcow, but not able to. All of our workstations are x86_64, and I need to create a image/VM for aarch64 platform. Below are the steps I am going through.
- I am using packer (packer-builder-qemu plugin) to create qcow.
- Idea is, I need to boot VM from minimal ISO (RHEL8.2). I have iso for arm64 rhel-8.2
- Use kickstart template to install/configure bunch of packages.
- Using ansible to configure system.
- Save this image and use this as VM for our test environment. In test, we also have x86_64 hosts, which are suppose to run the qcow and use it for testing.
Above setup works fine and been in use for years for x86_64 platform.
After trying multiple things, I am getting error as qemu-system-aarch64: no function defined to set boot device list for this architecture
essentially, this is what packer is trying to run
qemu-system-aarch64 -boot strict=off -display gtk -vnc 0.0.0.0:1 -m 4048M -drive file=output-qemu/packer-qemu,if=virtio,cache=writeback,discard=ignore,format=qcow2 -drive file=/home/builder/rhel-8.2-aarch64-dvd.iso,if=virtio,id=cdrom0,media=cdrom -netdev user,id=user.0,hostfwd=tcp::3214-:22 -machine virt -device virtio-gpu-pci -device virtio-net,netdev=user.0 -cpu cortex-a57 -name packer-qemu -drive if=virtio,file=el8-arm.img -drive if=pflash,file=varstore.img -drive if=pflash,format=raw,file=QEMU_EFI.img
I have tried to use qemu v4.2 and 5.2 both, compiled from source and enabled gtk and kvm. But still did not help.
I really appreciate if someone can please check this and guide if there is anything wrong that I am doing. Attached are logs and template for packer, just for reference. ovs-el82-aarm-template.json