Solved grub-bhyve doesn't find grub.cfg on guest

I've installed CentOS 6 as a guest, and while I can get it to boot using
Code:
grub_run0="linux /vmlinuz-2.6.32-754.el6.x86_64 root=/dev/mapper/VolGroup-lv_root"
grub_run1="initrd /initramfs-2.6.32-754.el6.x86_64.img"

in the config file, I cannot get it to boot without. Even if I got /boot/grub/grub.cfg on the virtual disk. What am I doing wrong?

Here's the config file (for vm-bhyve)

Code:
loader="grub"
#grub_run0="linux /vmlinuz-2.6.32-754.el6.x86_64 root=/dev/mapper/VolGroup-lv_root"
#grub_run1="initrd /initramfs-2.6.32-754.el6.x86_64.img"
#grub_run2="boot"
cpu="12"
memory="16G"
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0.img"
uuid="65efc079-dadf-11ea-90b4-6045cb9a0b3b"
network0_mac="58:9c:fc:0f:20:f6"
 
Gah, the reason is that grub on CentOS 6 is grub 0.9x, but in order for bhyve to read the config on the virtual hard drive it needs to be grub2.
 
Back
Top