OpenBSD: Setup Serial Console

by CarcaBot on July 28, 2010 · 1 comment

How do I enable console redirection under OpenBSD so that I can see my remote server boot information and any diagnostic information that is normally printed to the screen? I’ve already enabled serial ports in my server BIOS and wired them up. How do I configure and access OpenBSD UNIX x86/amd64 server over serial console?

To direct the boot process to use the serial port as a console, edit /etc/boot.conf, enter:
# vi /etc/boot.conf
Edit / append as follows:

set tty com0

The above will use first serial port as your console. You can also define baud rate (default baud rate is set to 9600bps). Append the following line to /etc/boot.conf (set baud rate to 115200):

stty com0 115200

Save and close the file. Reboot the server to test your configuration.

How Do I Connect To Serial Console?

You can use minicom, ipmi or KVM over IP clients:
Sample session:

Fig.01: Connected To OpenBSD using KVM serial console Fig.01: Connected To OpenBSD using KVM serial console

{ 1 trackback }

Previous post:

Next post: