Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2024 23:07:26 +0100
From:      Tomek CEDRO <tomek@cedro.info>
To:        Michael Gmelin <freebsd@grem.de>
Cc:        FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>,  Virtualisation on FreeBSD <freebsd-virtualization@freebsd.org>
Subject:   Re: (vm-)bhyve stopped working recently on 13.2
Message-ID:  <CAFYkXjkeYO5hvfAcbqLZ5d=Ghz7VQVr2OYzuvFOYXR4nNhTuuA@mail.gmail.com>
In-Reply-To: <F8D3D960-74B5-4C0C-9E85-9B0D85ED6EB6@grem.de>
References:  <CAFYkXjnu6t-VceCbsUpL234q8ngZK-ON1H0aDitmfUa=Uz-K8A@mail.gmail.com> <F8D3D960-74B5-4C0C-9E85-9B0D85ED6EB6@grem.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 12, 2024 at 10:54=E2=80=AFPM Michael Gmelin wrote:
> What are you running inside bhyve (OS and version)? Could you maybe share=
 vm-bhyve=E2=80=98s config file?

I was running Debian 11 and since it stopped working I tried Debian 12.

debug=3D"yes"
#loader=3D"bhyveload"
loader=3D"uefi"
uefi_vars=3D"yes"
graphics=3D"yes"
graphics_res=3D"1920x1080"
graphics_listen=3D"127.0.0.1"
graphics_wait=3D"no"
graphics_vga=3D"no"
cpu=3D"4"
memory=3D"20G"
network0_type=3D"virtio-net"
network0_switch=3D"public"
#disk0_type=3D"virtio-blk"
disk0_type=3D"nvme"
disk0_name=3D"disk0.img"
sound=3D"yes"
sound_play=3D"/dev/dsp"
passthru0=3D"6/0/0"
xhci_mouse=3D"yes"
uuid=3D"XXX"
network0_mac=3D"XXX"

Debian 12 log:

Jan 12 22:33:49: initialising
Jan 12 22:33:49:  [loader: uefi]
Jan 12 22:33:49:  [cpu: 4]
Jan 12 22:33:49:  [memory: 20G]
Jan 12 22:33:49:  [hostbridge: standard]
Jan 12 22:33:49:  [com ports: com1]
Jan 12 22:33:49:  [uuid: XXX]
Jan 12 22:33:49:  [debug mode: yes]
Jan 12 22:33:49:  [primary disk: disk0.img]
Jan 12 22:33:49:  [primary disk dev: file]
Jan 12 22:33:49: initialising network device tap0
Jan 12 22:33:49: adding tap0 -> vm-public (public addm)
Jan 12 22:33:49: bring up tap0 -> vm-public (public addm)
Jan 12 22:33:49: dynamically allocated port 5900 for vnc connections
Jan 12 22:33:49: booting
Jan 12 22:33:49:  [bhyve options: -c 4 -m 20G -Hwl
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd,/ztuff/vm/bhyve/debian=
12/uefi-vars.fd
-U 273d0407-b18d-11ee-ba62-60a44c60c172 -u -S]
Jan 12 22:33:49:  [bhyve devices: -s 0,hostbridge -s 31,lpc -s
4:0,nvme,/ztuff/vm/bhyve/debian12/disk0.img -s
5:0,virtio-net,tap0,mac=3D58:9c:fc:06:d3:8f -s 6:0,passthru,6/0/0 -s
7:0,fbuf,tcp=3D127.0.0.1:5900,w=3D1920,h=3D1080,vga=3Dno -s 8:0,xhci,tablet=
 -s
9:0,hda,play=3D/dev/dsp]
Jan 12 22:33:49:  [bhyve console: -l com1,/dev/nmdm-debian12.1A]
Jan 12 22:33:49:  [bhyve iso device: -s
3:0,ahci-cd,/ztuff/vm/bhyve/.iso/debian-12.4.0-amd64-netinst.iso,ro]
Jan 12 22:33:49: starting bhyve (run 1)
Jan 12 22:33:56: bhyve exited with status 4
Jan 12 22:33:56: destroying network device tap0
Jan 12 22:33:56: stopped


Debian11 log:

Jan 12 21:46:01: booting
Jan 12 21:46:01:  [bhyve options: -c 4 -m 20G -Hwl
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd,/ztuff/vm/bhyve/debian=
11/uefi-vars.fd
-U XXX -u -S]
Jan 12 21:46:01:  [bhyve devices: -s 0,hostbridge -s 31,lpc -s
4:0,nvme,/ztuff/vm/bhyve/debian11/disk0.img -s
5:0,virtio-net,tap0,mac=3DXXX -s 6:0,passthru,6/0/0 -s
7:0,fbuf,tcp=3D127.0.0.1:5900,w=3D1920,h=3D1080]
Jan 12 21:46:01:  [bhyve console: -l com1,/dev/nmdm-debian11.1A]
Jan 12 21:46:01: starting bhyve (run 1)
Jan 12 21:46:10: bhyve exited with status 134
Jan 12 21:46:10: destroying network device tap0
Jan 12 21:46:10: stopped


What I found regarding exit status 134 was forum post that hardware is
too old lol.. but it was working week ago and I am older :-) `man
bhyve` states that error code 4 means "exited due to an error" and
that tells a lot :-) Enabling debug does not help here the log is the
same.

My last reply went to the questions list only, so as this one goes
also to the virtualisation I would like to humbly express an idea of
moving vh-bhyve under FreeeBSD wings and make it a default frontend
for bhyve as it is amazingly simple and does the job :-)

Thanks Michael :-)
Tomek

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXjkeYO5hvfAcbqLZ5d=Ghz7VQVr2OYzuvFOYXR4nNhTuuA>