Attempting to use the sgabios ROM to capture early boot BIOS messages on the serial console. Typically this can be done via libvirt domain configuration:
<os>
<bios useserial='yes'/>
</os>
Resulting in the qemu process being launched with a '-device sga' argument that should load the optional ROM.
The sgabios package installs the ROM @ /usr/share/misc/sgabios.bin and symlinks to it from /usr/share/qemu/sgabios.bin
I noticed the expected serial output was missing and found that apparmor is preventing sgabios from loading when spawning the VM:
Attempting to use the sgabios ROM to capture early boot BIOS messages on the serial console. Typically this can be done via libvirt domain configuration:
<os>
<bios useserial='yes'/>
</os>
Resulting in the qemu process being launched with a '-device sga' argument that should load the optional ROM.
The sgabios package installs the ROM @ /usr/share/ misc/sgabios. bin and symlinks to it from /usr/share/ qemu/sgabios. bin
I noticed the expected serial output was missing and found that apparmor is preventing sgabios from loading when spawning the VM:
[ 1378.106921] type=1400 audit(141625568 4.049:23) : apparmor="DENIED" operation="open" profile= "libvirt- c08c4756- 2e2c-4c62- a519-0e3ac0cf64 3d" name="/ usr/share/ misc/sgabios. bin" pid=13182 comm="qemu- system- x86" requested_mask="r" denied_mask="r" fsuid=110 ouid=0
Worked around by manually installing the sgabios.bin file directly to /usr/share/ qemu/sgabios. bin