KVM, serial console and screen… BSD too !
Why to stop ? I have a Debian in KVM in screen... I want BSD too. More difficult ? No, easier.
After installing FreeBSD 6.2 on a CoW disk image with TUN/TAP bridge just like Debian, there are some things to configure.
First, tell the bootloader to use serial console. Just add on line in your /boot/loader.conf :
console="comconsole"
Like in GNU/Linux wee need to check that the system see this TTY like a secure one Change just one line in your /etc/ttys to :
# The 'dialup' keyword identifies dialin lines to login, fingerd etc ttyd0 "/usr/libexec/getty std.9600" vt100 on secure
We want to see much more boot messages on our serial console. Create a /boot.config containing :
-D
As specified in FreeBSD documentation, this tell the system to use internal console AND serial.
Little note : don't use -no-acpi option because ACPI/APM is usefull for BSD to shutdown the system and not just stop it. You must use halt -p. Without this kvm never quit and you must kill it.