Date: Fri, 07 Mar 2014 23:31:47 -0800 From: "Rudy (bulk)" <crapsh@monkeybrains.net> To: freebsd-virtualization@freebsd.org Subject: Re: [HOW-TO] CentOS on bhyve Message-ID: <531AC763.300@monkeybrains.net> In-Reply-To: <531ABCC5.30801@monkeybrains.net> References: <531ABCC5.30801@monkeybrains.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?531AC763.300>
