From owner-freebsd-virtualization@FreeBSD.ORG Sat Mar 8 08:06:40 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 32B846C6 for ; Sat, 8 Mar 2014 08:06:40 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id E94D18BD for ; Sat, 8 Mar 2014 08:06:39 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id 16046123BA; Sat, 8 Mar 2014 18:06:32 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local (c-67-161-27-37.hsd1.ca.comcast.net [67.161.27.37]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BSJ05127 (AUTH peterg@ptree32.com.au); Sat, 8 Mar 2014 18:06:30 +1000 Message-ID: <531ACF85.8040305@freebsd.org> Date: Sat, 08 Mar 2014 00:06:29 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: "Rudy (bulk)" Subject: Re: [HOW-TO] CentOS on bhyve References: <531ABCC5.30801@monkeybrains.net> <531AC763.300@monkeybrains.net> In-Reply-To: <531AC763.300@monkeybrains.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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, 08 Mar 2014 08:06:40 -0000 Hi Rudy, > Peter, anyway to get grub-bhyve to automatically load /grub/grub.conf > from a CentOS install? > > A more concise boot how-to involves making a .grub file based on the > contents of the grub.conf in your .img file. The first email shows me > wading through the grub prompt trying to figure out what to do. I'm not > sure if the SYSFONT is pertinent. :) 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. kernel (hd0,msdos1)/vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD KEYTABLE=us rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root rd_NO_DM initrd (hd0,msdos1)/initramfs-2.6.32-431.el6.x86_64.img boot (the console=ttyS0 isn't needed: grub-bhyve auto-inserts that). later, Peter.