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

_______________________________________________
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"

Reply via email to