churchers / vm-bhyve

Shell based, minimal dependency bhyve manager
BSD 2-Clause "Simplified" License
827 stars 175 forks source link

Ubuntu 24.04 guest requires the grub run partition setting #550

Closed patterns closed 2 months ago

patterns commented 3 months ago

Starting with the Ubuntu 24.04 server (amd64 ISO) the installation completes successfully. This is using the suggested "Debian and Ubuntu (Grub)" section on the Wiki page However when rebooting, the system stops at the Grub bootloader.

The solution was to change from "msdos1" to "2" for the grub_run_partition value as described on this page : https://www.davd.io/install-ubuntu-on-freebsd-with-bhyve/

GogoFC commented 3 months ago

You can use UEFI and add uefi_vars="yes" with Debian and it will work, no need to edit partition locations. On Ubuntu uefi variables aren't needed but it doesn't hurt.

This is what I use for Ubuntu

loader="uefi"
cpu=4
memory=4096M
network0_type="virtio-net"
network0_switch="public"
graphics="yes"
xhci_mouse="yes"
graphics_res="1600x900"
zfs_zvol_opts="volblocksize=128k"
disk0_name="disk0"
disk0_dev="sparse-zvol"
disk0_type="virtio-blk"
uefi_vars="yes"
patterns commented 2 months ago

Thank you, very helpful !