bhyve vm-bhyve and debian

Hello,
I tried a good number of times but can succeed to boot debian 11 vm in bhyve.
Installation is ok, disk and network are detected and are ok but upon reboot I just get :
Code:
grub>
I use vm-bhyve with all defaults outside switch name.
Config file is like this :
Code:
loader="grub"
cpu=2
memory=1G
network0_type="virtio-net"
network0_switch="vswitch1"
disk0_type="ahci-hd"
disk0_name="disk0.img"
grub_run_partition="1"
grub_run_dir="/boot/grub"
uuid="51ca5248-f451-11ec-b595-1c834129befd"
network0_mac="58:9c:fc:08:08:fa"
I'm pretty new to bhyve but I already have installed 2 vms, a freebsd and a windows 10, that run without problems.
What do I miss ?
 
I was able to boot Debian 11 using this information:

https://forums.freebsd.org/threads/vm-bhyve-and-devuan-chimaera.84380/#post-560467
and
https://www.cyberciti.biz/faq/how-t...d-using-bhyve-and-zfs/#Install_Grub_for_Bhyve

Pay attention to the different way to install the boot loader mentioned in the link:

Code:
mkdir /target/boot/efi/EFI/BOOT/
# copy file - workaround for bhyve grub package #
# Pay attention to destination file bootx64.efi #
cp /target/boot/efi/EFI/debian/grubx64.efi /target/boot/efi/EFI/BOOT/bootx64.efi
 
Ok, got it, thanks for the tip.
So I had to switch from grub to uefi and do post install as stated.
My config file now is :
Code:
loader="uefi"
cpu=2
memory=1G
graphics="yes"
network0_type="virtio-net"
network0_switch="vswitch1"
disk0_type="ahci-hd"
disk0_name="disk0.img"
uuid="9394153d-f4a0-11ec-b595-1c834129befd"
network0_mac="58:9c:fc:0c:db:b9"
The vm is ok, and I can see console with vnc.
 
Back
Top