Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Nov 2017 18:46:20 -0500
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: grub-bhyve: support overriding just --root flag
Message-ID:  <161c3f27-41fd-ada6-4edb-b8d2b3c1dc48@freebsd.org>
In-Reply-To: <1510414698.13439.8.camel@cschwarz.com>
References:  <1510414698.13439.8.camel@cschwarz.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?161c3f27-41fd-ada6-4edb-b8d2b3c1dc48>