RE: Ubuntu guest Grub prompt

From: <jason_at_tubnor.net>
Date: Mon, 28 Feb 2022 03:36:52 UTC
> -----Original Message-----
> From: owner-freebsd-virtualization@freebsd.org <owner-freebsd-
> virtualization@freebsd.org> On Behalf Of Xavier Humbert
> Sent: Sunday, 27 February 2022 9:19 PM
> To: freebsd-virtualization@freebsd.org
> Subject: Ubuntu guest Grub prompt
> 
> Hi,
> 
> I've installed (many tries) Ubuntu 21 as guest on FreeBSD 13
> 
> Installation runs without problem, but a boot, it drops to grub prompt.
> I know how to boot (set prefix=(hd0,gpt2)/boot/grub etc...)
> 
> But how to fix permanently ?
> 


I haven't used any of the grub shims since UEFI support was implemented. Here is a basic config of mine for Ubuntu 20.04 (hostbridge probably doesn't need to be there):

loader="uefi"
graphics="yes"
hostbridge="amd"
cpu=2
memory=2G
disk0_type="nvme"
disk0_name="disk0"
disk0_dev="sparse-zvol"
graphics_port="5900"
graphics_res="1024x768"
xhci_mouse="yes"
utctime="yes"
virt_random="yes"