This is the wayAdd an extra "serial" port to the VM and configure remote serial debugging in the "test" kernel.
How to add the serial port to the VM? By using the -G option of /usr/share/examples/bhyve/vmrun.sh?Add an extra "serial" port to the VM and configure remote serial debugging in the "test" kernel.
Yes, it is. The same, even. It does not matter where your FreeBSD is running as long as you can have serial port access.https://docs.freebsd.org/en/books/developers-handbook/kerneldebug/#kerneldebug-online-gdb
Here in the handbook, unfortunately they don't describe what needs to be done to debug in bhyve, but the process is similar, correct?