[PROMOTIONAL]XEN with UEFI guest

Roger Pau Monné roger.pau at citrix.com
Mon Mar 15 08:48:56 UTC 2021


On Sun, Mar 14, 2021 at 11:30:33PM +0300, Oleg Ginzburg wrote:
> Hi,
> 
> I recently tried to use the Xen dom0 through UEFI loader and, finally, it
> worked! (Thanks to Roger).
> 
> Now I try to use UEFI boot method in the guest and for some reason, the
> domain does not start.
> The documentation says that this option requires extra config params, so I
> added an option to port:
> 
> --
> root at home2:/usr/ports/sysutils/xen-tools# svnlite diff
> Index: Makefile
> ===================================================================
> --- Makefile    (revision 568404)
> +++ Makefile    (working copy)
> @@ -21,12 +21,14 @@
> BUILD_DEPENDS= seabios>0:misc/seabios
> RUN_DEPENDS=   seabios>0:misc/seabios
> 
> -OPTIONS_DEFINE=                DOCS SPICE
> +OPTIONS_DEFINE=                DOCS SPICE OVMF
> OPTIONS_DEFAULT=       DOCS
> OPTIONS_SUB=           yes
> 
> SPICE_DESC=            Enable SPICE protocol for QEMU
> +OVMF_DESC=             Enable OVMF support
> SPICE_CONFIGURE_WITH=  extra-qemuu-configure-args="--enable-spice"
> +OVMF_CONFIGURE_WITH=   extra-qemuu-configure-args="--enable-ovmf"

You are adding the option to the QEMU configure script instead of the
Xen one, you likely want:

OVMF_CONFIGURE_WITH=   enable-ovmf

Albeit I think that won't work out of the box because OVMF will fail
to build with llvm. So you will likely have to build ovmf separately
(like we do for seabios) using gcc and then include it here with
--with-system-ovmf=...

Thanks, Roger.


More information about the freebsd-xen mailing list