From owner-freebsd-virtualization@FreeBSD.ORG Fri Sep 5 22:07:00 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 D6363A15; Fri, 5 Sep 2014 22:07:00 +0000 (UTC) Received: from borg.macktronics.com (borg.macktronics.com [209.181.253.68]) by mx1.freebsd.org (Postfix) with ESMTP id B1D4F14E9; Fri, 5 Sep 2014 22:07:00 +0000 (UTC) Received: from olive.macktronics.com (olive.macktronics.com [209.181.253.67]) by borg.macktronics.com (Postfix) with ESMTP id 632C62AA; Fri, 5 Sep 2014 16:57:44 -0500 (CDT) Date: Fri, 5 Sep 2014 16:57:44 -0500 (CDT) From: Dan Mack To: Peter Grehan Subject: Re: [HOW-TO] CentOS on bhyve In-Reply-To: <531ACF85.8040305@freebsd.org> Message-ID: References: <531ABCC5.30801@monkeybrains.net> <531AC763.300@monkeybrains.net> <531ACF85.8040305@freebsd.org> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-virtualization@freebsd.org, "Rudy \(bulk\)" 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:07:00 -0000 On Sat, 8 Mar 2014, Peter Grehan wrote: > Hi Rudy, > >> Peter, anyway to get grub-bhyve to automatically load /grub/grub.conf >> from a CentOS install? > 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. > (the console=ttyS0 isn't needed: grub-bhyve auto-inserts that). > Let me resucitate this thread ... 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 ... However, on the Centos7 install, there appears to be both a grub/ and grub2/ configuration directory: | | grub> ls (hd0,msdos1)/ | Possible files are: | grub/ grub2/ ... | and in the grub2 folder there exists a seemling grub2 compatible grub.cfg file: | 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 | # | 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. I'll test/rebuild the suite if you can point me in the general direction. Thanks, dan -- Dan Mack