OpenSolaris

You are not signed in. Sign in or register.

Solaris as an HVM Guest

Accessing the Domain's Virtual Serial Port

It is easiest to interact with a Solaris domain over the emulated serial port. We don't yet have tty access (i.e. zlogin or xm console), but it is possible to instruct qemu-dm to send and receive virtual serial port data over a TCP connection that you can connect to using a telnet client.

To enable the ttya serial port in your domU, add this line to your config file:

serial="telnet:0.0.0.0:port,server"

where port is an available, unprivileged (anything higher than 1024) TCP port to use on dom0.

When your domain is created, it will pause before booting and wait for a connection to this port (or you can configure it to boot without waiting by adding ",nowait" to the end of the serial config line).

You can then access the serial port using telnet:

rab@loris> telnet moe 5189
Trying 192.168.79.110...
Connected to moe.sfbay.sun.com.
Escape character is '^]'.

If you are booting off a standard Solaris install CD or DVD you'll still need to access the graphical console during boot in order to red irect kernel output to the serial port. Start your domain, attach vncviewer (if you're not using SDL), and telnet to the TCP serial port to unpause the domain. When GRUB appears, select the "ttya" boot option, if present. If it's not, modify the line beginning with kernel and add this argument to the end:

-B console=ttya

Once the kernel is loaded, it will use your telnet session as the console. The baud rate doesn't seem to affect performance.

To break into kmdb (after it has been loaded and the system is booted far enough), use telnet to send a break sequence.

Copyright 2007 Sun Microsystems, Inc.