From owner-freebsd-virtualization@FreeBSD.ORG Mon Dec 9 19:32:28 2013 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 1EE563D7 for ; Mon, 9 Dec 2013 19:32:28 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id D29E4195B for ; Mon, 9 Dec 2013 19:32:27 +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 BA6021220E; Tue, 10 Dec 2013 05:32:19 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BQQ02549 (AUTH peterg@ptree32.com.au); Tue, 10 Dec 2013 05:32:18 +1000 Message-ID: <52A61AC2.8050308@freebsd.org> Date: Mon, 09 Dec 2013 11:32:18 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: Matt Donovan , freebsd-virtualization@freebsd.org Subject: Re: Bhyve not able to get CentOS to boot References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 09 Dec 2013 19:32:28 -0000 Hi Matt, > Ok the following is what I do get/ > > grub> linux (hd0,msdos1)/vmlinuz-2.6.32-431.el6.x86_64 ro > root=/dev/mapper/vg_server-lv_root rd_LVM_LV=vg_server/lv_swap rd_NO_L > UKS LANG=en_US.UTF-8 rd_NO_MD KEYTABLE=us SYSFONT=latarcyrheb-sun16 > rd_LVM_LV=vg_server/lv_root console=ttyS0 rd_NO_DM > grub> initrd (hd0,msdos1)/initramfs-2.6.32-431.el6.x86_64.img > grub> boot > vps# That looks good. The "boot" command doesn't actually start the VM - it finalizes setting register state so that usr/sbin/bhyve can then run it. The bhyve.org script hides that from you. > I am not sure what I am doing wrong exactly > > /usr/local/sbin/grub-bhyve -r hd0 -m vm/vm0/device.map -M 1024 vm0 > > grub> ls > (cd0) (hd0) (hd0,msdos2) (hd0,msdos1) (host) (lvm/vg_server-lv_swap) > (lvm/vg_server-lv_home) (lvm/vg_server-lv_root) > grub> Using "-r hd0,msdos1" will allow "ls /" to work, though the (hd0,msdos1) qualifier in the first example does the right thing. later, Peter.