Hi Daniel,
On 2025-11-14 12:48, Daniel P. Berrangé wrote:
On Fri, Nov 14, 2025 at 08:58:11AM +0000, Leigh Brown wrote:
[...]

--- libvirt-11.3.0.orig/src/qemu/qemu_validate.c
+++ libvirt-11.3.0/src/qemu/qemu_validate.c
@@ -1304,15 +1304,7 @@ qemuValidateDomainDef(const virDomainDef
         /* On x86 -machine graphics=off toggles the use of the
          * serial console in SeaBIOS (and theoretically other
          * firmwares).
-         * On non-x86, it has also sorts of other effects
-         * on QEMU device models created and so we don't
-         * want to allow its use.
          */
-        if (!ARCH_IS_X86(def->os.arch)) {
-            virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
- _("BIOS serial console only supported on x86
architectures"));
-            return -1;
-        }
         if (!def->nserials) {
             virReportError(VIR_ERR_XML_ERROR, "%s",
_("need at least one serial port to use BIOS
serial output"));

With that change, I can now create VMs with a serial console through
virt-install on the Raspberry PI 5.

Have I got this right? If so, I'm happy to submit the patch.

This code is specifically only about a config setting for enabling
the BIOS to output its boot message/menus on the serial console.
It is independent of the broader serial console concept - a guest
OS can still be configured with a serial console without the above
change.

Sorry I wasn't 100% clear. With the change I am also able to use serial
for the BIOS[1] and Grub[2]. Although the grub output is not quite right
it works well enough to select an entry.

Regards,

Leigh.

--
[1] https://www.solinno.co.uk/public/leigh/rpi5_kvm_serial_bios.png
[2] https://www.solinno.co.uk/public/leigh/rpi5_kvm_serial_grub.png

Reply via email to