From owner-freebsd-virtualization@freebsd.org Sat Nov 11 23:46:31 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EEE64E500CD for ; Sat, 11 Nov 2017 23:46:31 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D086073DA5 for ; Sat, 11 Nov 2017 23:46:31 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from T530-Allan.HML3.ScaleEngine.net (unknown [220.134.17.187]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id C93631456D for ; Sat, 11 Nov 2017 23:46:23 +0000 (UTC) Subject: Re: grub-bhyve: support overriding just --root flag To: freebsd-virtualization@freebsd.org References: <1510414698.13439.8.camel@cschwarz.com> From: Allan Jude Message-ID: <161c3f27-41fd-ada6-4edb-b8d2b3c1dc48@freebsd.org> Date: Sat, 11 Nov 2017 18:46:20 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1510414698.13439.8.camel@cschwarz.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Nov 2017 23:46:32 -0000 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-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