Re: grub-bhyve: support overriding just --root flag
On 12 Nov 2017, at 0:46, Allan Jude wrote: > 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. Yes it does[1]. Also be aware that bootloader_args has some quoting issues. CC’ing novel@ as he does a lot of the libvirt+bhyve driver stuff. Fabian. [1] https://libvirt.org/drvbhyve.html#uefi signature.asc Description: OpenPGP digital signature
Re: grub-bhyve: support overriding just --root flag
Hi Alan, > 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. Thanks for the tip, I just converted the disk to GPT and now use UEFI directly. The only problem I encountered with the UEFI firmware is that it will always prefer the virtualized cdrom over hdd or, more generally, one cannot define a boot order. This gist contains a working minimal UEFI-only libvirt domain: https://gist.github.com/problame/79a94ae05f5b17e11c3b5bc2fe5910c8 If you have any idea how to set the boot order via bhyve command line flags I would be "happy" to patch libvirt to support this feature. Otherwise, I hope this helps anyone reading this in the future, Christian ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: grub-bhyve: support overriding just --root flag
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 . > > 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-unsubscr...@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 ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"