My VM host runs KVM/qemu/libvirt on Linux. I am trying to set up a FreeBSD VM via virt-install. I would like to be able to connect to its serial console.
Does FreeBSD, as booted from an installation medium have serial console output enabled?
If yes, has anyone an idea how to attach it (preferably via virsh console, just like I am able to connect to the ttys of my Linux VMs?)
If no, does that mean that I have to hack into the installation medium to enable it?
Or have I overlooked any option (besides the obvious, but cumbersome fallback to a bitmap-pushing connection like VNC)?
My effort so far:
It likely does do what it is intended to do (boot the installation image), but it already tells me that I won't have a way to find that out, nor interact with the guest OS.
Does FreeBSD, as booted from an installation medium have serial console output enabled?
If yes, has anyone an idea how to attach it (preferably via virsh console, just like I am able to connect to the ttys of my Linux VMs?)
If no, does that mean that I have to hack into the installation medium to enable it?
Or have I overlooked any option (besides the obvious, but cumbersome fallback to a bitmap-pushing connection like VNC)?
My effort so far:
Code:
virshhost # virt-install -n bsdguest \
-r 4096 --vcpus 4 \
--cpu host --os-variant freebsd12.0 \
--disk /dev/zvol/zpool/vm/bsdguest,device=disk \
--cdrom /path/to/FreeBSD-13.1-BETA2-amd64-mini-memstick.img \
--network bridge=br0 --graphics=none
WARNING CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. See the man page for examples of using --location with CDROM media
Starting install...
Connected to domain equisetvm
Escape character is ^] (Ctrl + ])
Domain install interrupted.
Installation aborted at user request
It likely does do what it is intended to do (boot the installation image), but it already tells me that I won't have a way to find that out, nor interact with the guest OS.