OmniOS and Serial Console

September 2nd, 2014 | Categories: Hardware, Solaris, Technology

Hey Folks,

Sorry for not updating more often, but I do not have that much to say. The wiki actually sees more information with me updating that as I go along or discover some small neat things! So please do check out the wiki also!

I had page on the wiki about setting up a serial console on OmniOS and other Illumos based systems like OpenIndiana.

Some improvements were made. But it boils down to a simple patch of console-login service to add 2 (or more) vt’s on the serial ports.

Patch can be found here.

Then do the following to enable login on serial (for non-root only).
You can also enable com1 to enable the 2nd serial port.

<br />
sttydefs -a com0 -i '115200 hupcl opost onlcr ofill' -f '115200'<br />
sttydefs -a com1 -i '115200 hupcl opost onlcr ofill' -f '115200'</p>
<p>svccfg export console-login &gt; console-login.xml<br />
patch &lt; console-login.patch<br />
svccfg import console-login.xml &amp;&amp; rm console-login.xml console-login.patch</p>
<p>svcadm enable vtdaemon:default console-login:com0<br />

If you want root to be able to login run the following:

<br />
/usr/gnu/bin/sed -i 's/^CONSOLE=/#CONSOLE=/' /etc/default/login<br />

A more in depth explanation that also covers GRUB can be found here.

Enjoy

Comments are closed.