From owner-freebsd-virtualization@FreeBSD.ORG Sat Mar 8 07:31:49 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 A6D10203 for ; Sat, 8 Mar 2014 07:31:49 +0000 (UTC) Received: from mail.monkeybrains.net (mail.monkeybrains.net [208.69.40.19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8D4D866D for ; Sat, 8 Mar 2014 07:31:49 +0000 (UTC) Received: from Birdhouse-o-My.local (208-90-212-98.PUBLIC.monkeybrains.net [208.90.212.98]) (authenticated bits=0) by mail.monkeybrains.net (8.14.7/8.14.7) with ESMTP id s287VmHE014531 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 7 Mar 2014 23:31:49 -0800 (PST) (envelope-from crapsh@monkeybrains.net) X-Authentication-Warning: mail.monkeybrains.net: Host 208-90-212-98.PUBLIC.monkeybrains.net [208.90.212.98] claimed to be Birdhouse-o-My.local Message-ID: <531AC763.300@monkeybrains.net> Date: Fri, 07 Mar 2014 23:31:47 -0800 From: "Rudy (bulk)" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: [HOW-TO] CentOS on bhyve References: <531ABCC5.30801@monkeybrains.net> In-Reply-To: <531ABCC5.30801@monkeybrains.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.1 at mail.monkeybrains.net X-Virus-Status: Clean 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 07:31:49 -0000 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. :) # cat vm2.grub linux /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 console=ttyS0 crashkernel=auto rd_LVM_LV=VolGroup/lv_root rd_NO_DM initrd /initramfs-2.6.32-431.el6.x86_64.img boot # grub-bhyve -r hd0,msdos1 -m vm2.map -M 2048 vm2 < vm2.grub # bhyve -c 2 -m 2048M -H -P -A \ -l com1,stdio \ -s 0:0,hostbridge \ -s 1:0,lpc -s 2:0,virtio-net,tap2 \ -s 3,ahci-cd,/data/distributions/CentOS-6.5-x86_64-minimal.iso \ -s 4,virtio-blk,/data/images/vm2.img vm2 Rudy