bhyve Unable to VNC to bhyve VM - connection refused

I haven't needed efi vars under 15 to install (from an iso) or to run debian 13.
You imagine well that I won't test to find or not if a debian really needs efi vars. Fact is that all EFI VM MUST have its efi vars like a bare bone PC has. Nevertheless, I can look if debian now writes a /boot/bootx64.efi (see below).

Several people have reported that a debian bhyve VM doesn't work at reboot. And it's because debian set its own loader path/name in the ESP. It's not the default /boot/bootx64.efi. It then uses efibootmgr to set its own loader name as an efi boot var. But if you don't have an efi vars file, the VM forget it at reboot. It's as simple as that.

bhyve didn't support efi vars at some point in the past. So, copy the debian loader to /boot/bootx64.efi was mandatory. It's not anymore the case since some years.

FreeBSD does the same as debian but keeps writing /boot/bootx64.efi (if not already exists) in addition to its dedicated loader.

Concerning the Op problem, the fact that vnc can't connect shows that the VM isn't running (or bhyve has crashed). It's likely a vm-bhyve problem. It has some logs, you should look at them.
 
I have installed a Debian 13 VM in bhyve, but I get a connection refused when I try to VNC to it. In my debian.conf file that I created, I used these parameters:

graphics="yes"
graphics_res="1600x1200"
graphics_wait="auto"
xhci_mouse="yes"
loader="uefi"
cpu=”2”
memory="8G"
network0_type="virtio-net"
network0_switch="public"
disk0_type="nvme"
disk0_name="disk0.img"

The install went fine, but after rebooting the VM and trying to VNC to the VM, I get a connection refused message. The vm list command shows the State as "Locked" and the VNC header shows: 0.0.0.0:5900.

I know the problem lies with this specific VM because I have created a VM using Windows 10, and it runs fine and I can connect to it without any problem.

What am I doing wrong?

Thank you,
Ed
Have you tried using zvol instead of nvme?
 
Back
Top