[HOW-TO] CentOS on bhyve

Rudy (bulk) crapsh at monkeybrains.net
Sat Mar 8 07:31:49 UTC 2014

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

# 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


More information about the freebsd-virtualization mailing list