From owner-freebsd-virtualization@FreeBSD.ORG Fri Sep 5 22:10:50 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2FEAFD2C for ; Fri, 5 Sep 2014 22:10:50 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id E34751520 for ; Fri, 5 Sep 2014 22:10:49 +0000 (UTC) Received: from [192.168.1.2] (senat1-01.HML3.ScaleEngine.net [209.51.186.5]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 3F20B454B4 for ; Fri, 5 Sep 2014 22:10:48 +0000 (UTC) Message-ID: <540A3502.8090108@freebsd.org> Date: Fri, 05 Sep 2014 18:11:14 -0400 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: [HOW-TO] CentOS on bhyve References: <531ABCC5.30801@monkeybrains.net> <531AC763.300@monkeybrains.net> <531ACF85.8040305@freebsd.org> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5PkSdnhpLFAVsWhVpqINtNl7C0XIVxKrn" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Fri, 05 Sep 2014 22:10:50 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5PkSdnhpLFAVsWhVpqINtNl7C0XIVxKrn Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2014-09-05 17:57, Dan Mack wrote: > On Sat, 8 Mar 2014, Peter Grehan wrote: >=20 >> Hi Rudy, >> >>> Peter, anyway to get grub-bhyve to automatically load /grub/grub.conf= >>> from a CentOS install? >=20 > >=20 >> CentOS is grub v1 which isn't quite compatible with grub2 (e.g. linux >> -> kernel). >> >> grub-bhyve can pick up a config file from the host system: use "-r >> host" to force that, and the -d option to change the default path for >> grub.conf. No need to redirect input. >> >> Then, in grub.conf on the host, put in the absolute path with the grub= >> commands e.g. >=20 > >=20 >> (the console=3DttyS0 isn't needed: grub-bhyve auto-inserts that). >> >=20 >=20 > Let me resucitate this thread ... >=20 > I just tried this on Centos7 and expeience the same lack of grub menu. > I was able to work around it by manually entering the manual paths for > linux and initrd but wouldn't it be nice ... >=20 > However, on the Centos7 install, there appears to be both a grub/ and > grub2/ configuration directory: >=20 > | > | grub> ls (hd0,msdos1)/ > | Possible files are: > | grub/ grub2/ ... > | >=20 > and in the grub2 folder there exists a seemling grub2 compatible > grub.cfg file: >=20 > | grub> cat (hd0,msdos1)/grub2/grub.cfg > | # > | # DO NOT EDIT THIS FILE > | # > | # It is automatically generated by grub2-mkconfig using templates > | # from /etc/grub.d and settings from /etc/default/grub > | # > | >=20 > Is there a way to direct grub-bhyve to use the > centos:/boot/grub2/grub.cfg file ala some argument -- I scanned the > source and couldn't find a simple over-ride. >=20 > I'll test/rebuild the suite if you can point me in the general > direction. >=20 > Thanks, >=20 > dan > --=20 > Dan Mack >=20 > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to > "freebsd-virtualization-unsubscribe@freebsd.org" There CentOS goes being annoying... grub-bhyve loads the grub config file on ubuntu because it is in the expected place /boot/grub but because CentOS 6 has a grub 1 config in /boot/grub they put the grub 2 config in /boot/grub2... note: you can do: source /boot/grub2/grub.conf or is it 'script' or something there is some interactive command in grub-bhyve to load a config file from inside the VM image. --=20 Allan Jude --5PkSdnhpLFAVsWhVpqINtNl7C0XIVxKrn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJUCjUFAAoJEJrBFpNRJZKf8psQAIFKLpPDJUJCr4L2hv35jrQl wz0jn87Mk8nYiSJjo+8aYzijvQyNPIbcbcU4T6bxi3gEeAbtmxCObyKJRVot2KXe wXErvL/S9/0selknUb6RNO1qMa4bVS9d3duffB4mOeZEcdLgDPN+DMI91gBsts0u mE6Y50uEdaMeCDVPbsrXEobmBQ3osCxy5nuJ17gj7gqRxAk3nUgAIvA8LC+6IyYM dOypdWdlPTkZ2E8tL4/9f6n15dV+f4FxEK2S47ZFs4YFmY7ndd1zVZl/PBD0QENg C+l5q/zip2VtFMSyRMMR1sPWLtxvSVvZ1w73Sh1k0lYia4orUVQy21jSmdedrdIh x0zU18EMpyV89Rp+Q+PfizyDW/os+nDUkye/9R7l97x8ttH+EloNExP0m/p7bIvd o4iZi3zGiuDI/ycHcbUJUs5lWRut1yQtm9mo7LMgevR4iAI2k1vs3Di/JvLrILMH moJ3nfYWQDuXdY67ISI3npxG/msNCjXPWzzGCRaL45+H5iQZEh7d0QEu+EM5IpL5 /Jdc3gGhC5Q8pCxTGkrpsWHZr3uiwRTS+3kdcr6ELdsyPN6GZT00t7cFSTOJvCry T10O9F2WkM8+j6o4yXzoiQszyNC6ss49YLxzC03omTyw+kpXu6ezaDDA2FmX1+8S mAlg7JkcIcGQJ1SozGwi =doOS -----END PGP SIGNATURE----- --5PkSdnhpLFAVsWhVpqINtNl7C0XIVxKrn--