-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
rhel-9.7
-
No
-
None
-
image-builder-1
-
None
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
Running livemedia-creator with --virt-uefi option fails with the following error on aarch64 (or any non-x86_64 architecture):
# livemedia-creator --make-disk --virt-uefi --iso /var/lib/libvirt/images//boot.iso --ks ks.cfg --nomacboot 2025-07-30 13:07:52,905: livemedia-creator v34.9.28-1 2025-07-30 13:07:52,905: selinux is enabled and in Enforcing mode 2025-07-30 13:07:52,958: disk_img = /var/tmp/lmc-disk-8kf6ikbn.img 2025-07-30 13:07:52,958: Adding 500M for reqpart 2025-07-30 13:07:52,958: Using disk size of 5502MiB 2025-07-30 13:07:52,958: install_log = /mnt/tests/installation/livemedia-creator/build-images/virt-install.log 2025-07-30 13:07:53,062: qemu vnc=127.0.0.1:0 2025-07-30 13:07:53,063: Running qemu 2025-07-30 13:07:53,082: Running qemu failed: 2025-07-30 13:07:53,082: cmd: /usr/libexec/qemu-kvm -cpu host -no-user-config -m 2048 -machine accel=kvm -machine q35,smm=on -global driver=cfi.pflash01,property=secure,value=on -kernel /var/tmp/lorax.imgutils.dzwpfezh/images/pxeboot/vmlinuz -initrd /var/tmp/lmc-initrd-_3xm4l_j.img -drive file=/var/tmp/lmc-disk-8kf6ikbn.img,cache=unsafe,discard=unmap,format=raw -drive file=/var/lib/libvirt/images/boot.iso,media=cdrom,readonly=on -append inst.ks=file:/ks.cfg inst.stage2=hd:LABEL=RHEL-9-7-0-BaseOS-aarch64 inst.text inst.cmdline -nographic -monitor none -serial null -display vnc=127.0.0.1:0 -netdev user,id=n1 -device virtio-net-pci,netdev=n1 -device virtio-serial-pci,id=virtio-serial0 -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.fedoraproject.anaconda.log.0 -chardev socket,id=charchannel0,host=127.0.0.1,port=57557 -object rng-random,id=virtio-rng0,filename=/dev/random -device virtio-rng-pci,rng=virtio-rng0,id=rng0,bus=pcie.0,addr=0x9 -drive file=/usr/share/edk2/ovmf//OVMF_CODE.secboot.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=/var/tmp/lmc-OVMF_VARS-805opq1z.fd,if=pflash,format=raw,unit=1 2025-07-30 13:07:53,082: output: qemu-kvm: unsupported machine type: "q35" Use -machine help to list supported machines
Apparently the Q35 machine type is hardcoded in pylorax/installer.py:
if boot_uefi: qemu_cmd += ["-machine", "q35,smm=on"]
What is the impact of this issue to you?
It's not possible to use livemedia-creator with --virt_uefi generically on all UEFI-enabled machines, regardless of architecture.
Please provide the package NVR for which the bug is seen:
lorax-34.9.28-1.el9.aarch64 (RHEL-9.7.0-20250722.1)
How reproducible is this bug?:
100%
Steps to reproduce
- Run livemedia-creator with --virt-uefi option on aarch64.
Expected results
livemedia-creator does proper assumptions about the machine type and the image gets built properly.
Actual results
Build fails, because improper machine type is specified in qemu-kvm arguments.