bhyve (vm)-bhyve + UEFI + Debian -> crashes immediately

Using the vm-bhyve template below after vm install debian <...iso> I get immediate:

Code:
NAME    DATASTORE  LOADER  CPU  MEMORY  VNC           AUTO  STATE
debian  default    uefi    4    8G      0.0.0.0:5900  No    Locked (bsd.localdomain)

Template:
Code:
loader="uefi"
graphics="YES"
xhci_mouse="YES"

cpu="4"
memory="8G"
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0"
disk0_dev="sparse-zvol"
grub_run_dir="/grub"

Please, what's wrong with this template?
 
I do have same problem now for Debian-12, the issue caused when changed LOADER from grub to uefi..
When i use `grub` VNC wont start.. Not sure what i need to do.


Code:
# vm list
NAME        DATASTORE  LOADER  CPU  MEMORY  VNC           AUTO  STATE
freepbx     default    uefi    2    4G      0.0.0.0:5900  No    Running (2326)
freepbx-17  default    uefi    2    4G      0.0.0.0:5901  No    Locked (freebsd)
 
Add uefi_vars="yes" to the configuration, Debian creates a boot loader in a non-standard location. That's normally stored in the efivars but those aren't saved by default.
 
jb82
I found the Locked vm problem, If you are using 'UEFI' template you have to remove from your template grub_run_partition and rub_run_dir
So my previous template was with that parameters ( you can see below ) and new template removed that 2 and Locked vm issue fixed. I hope to help you or someone else.


Before:
Code:
loader="uefi"
graphics="yes"
xhci_mouse="yes"
graphics_res="1280x720"
graphics_listen="0.0.0.0"
graphics_port="5901"
cpu=2
memory=4G
network0_type="virtio-net"
network0_switch="public"
disk0_type="ahci-hd"
disk0_name="debian-disk0.img"
grub_run_partition="1"
grub_run_dir="/boot/grub"


After:

Code:
loader="uefi"
graphics="yes"
xhci_mouse="yes"
graphics_res="1280x720"
graphics_listen="0.0.0.0"
graphics_port="5901"
cpu=2
memory=4G
network0_type="virtio-net"
network0_switch="public"
disk0_type="ahci-hd"
disk0_name="debian-disk0.img"
 
Back
Top