grub-bhyve: support overriding just --root flag
Allan Jude
allanjude at freebsd.org
Sat Nov 11 23:46:32 UTC 2017
On 11/11/2017 10:38, Christian Schwarz wrote:
> (Disclaimer: also submitted this to the libvirt mailing list, but this list
> seems more appropriate)
>
> Hi,
>
> I was trying to get a GPT-formatted VM boot on FreeBSD using the bhyve driver
> and the grub-bhyve bootloader.
>
> Turns out that libvirt 3.9.0 hardcodes the boot partition to (hd0,msdos1)
> or allows overriding it completly using <bootloader_args>.
>
> I hacked together a patch that allows overring just the --root argument to
> grub-bhyve and updated the documentation:
>
> https://github.com/problame/libvirt/commit/5fd1265c05987d907d9f1d9913dbee832a227889
>
> Obviously, this does not meet quality standards and should not be merged as is,
> but maybe spawn some discussion (if anyone is actually using bhyve + libvirt).
>
> Cheers,
>
> Christian
>
>
> freebsd-virtualization at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe at freebsd.org"
>
Does libvirt support using the bhyve UEFI-CSM firmware instead? That
would let the VM boot using the native grub installed inside the VM, and
avoid this issue entirely. It also makes starting a bhyve a single
command instead of 2.
--
Allan Jude
More information about the freebsd-virtualization
mailing list