FreeBSD Bhyve

Probably not of interest to a lot of people but I was surprised to see a single line about bhyve on the CHR wiki saying it will not be supported as it’s paravirtualised.

I was able to get CHR running using the raw image and the following configuration file for vm-bhyve. (I basically created a guest using the default config then changed the loader, grub commands and specified the downloaded raw image). I’m not a Linux expert and these grub commands could probably do with adjusting, if anyone has more in-depth RouterOS/Grub knowledge…


loader="grub"
cpu=1
memory=256M
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="chr-6.40.8.img"
grub_run0="linux /vmlinuz-64 crashkernel=16M"
grub_run1="initrd /initrd.rgz"

I would like to +1 your findings and suggest the wiki be updated. Bhyve is still in development but a great virtualization tool.
my settings that worked are:

loader=“grub”
cpu=4
memory=4096M
network0_type=“virtio-net”
network0_switch=“public”
disk0_type=“virtio-blk”
disk0_name=“chr-6.43.8.img”
grub_run0=“linux /vmlinuz-64 crashkernel=16M”
grub_run1=“initrd /initrd.rgz”

kernel and initrd seems to have moved under /boot recently

grub_run0="linux /boot/vmlinuz-64 crashkernel=16M"
grub_run1="initrd /boot/initrd.rgz"

Hi guys,
Can any of you share a quick guide how to do all this?

I am trying to install CHR on TrueNAS but can’t find a way around it