SUSE Support

Here When You Need Us

How to configure serial console access on a XEN based full virtual SLE VM

This document (7003720) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 10 Service Pack 2

Situation

By default a fully virtualized SUSE Linux Enterprise Server 10/11 virtual machine (VM) does not have serial console support enabled.
This prevents connecting to it using the
xm console <domain-id>
command.

Resolution

Follow these steps to enable it.
  1. Log in to the VM
  2. Append the parameter "console=ttyS0" to the kernel command line in the bootloader configuration (e.g. /boot/grub/menu.lst), so that it for instance looks like this :
    kernel /boot/vmlinuz-2.6.16.60-0.39.3.PTF.509066.3-smp root=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2 resume=/dev/hda1 splash=silent showopts console=ttyS0
  3. Activate the following line in /etc/inittab by removing the leading # sign.
    S0:12345:respawn:/sbin/agetty -L 9600 ttyS0 vt102
  4. Allow login to the serial console by adding the following line to the /etc/securetty file :
    ttyS0
  5. Shut down the VM
  6. Confirm that the configuration file of the the VM in /etc/xen/vm contains a line like
    serial="pty"
    If not, then add it and refresh the xenstore with the command
    # xm new <vm-name>
  7. Boot the VM and verify that serial console works with
    # xm console <domain-id>

Additional Information

Disconnect from the terminal is done with the Ctrl-] key-kombination.
Keep in mind that the last line shown on the terminal (e.g. a login prompt) is not shown when connecting (since this is a serial console), so an extra Enter may be required.

In some configurations, the serial console may hang or get out of synchronization. This is a known bug - refer to Serial console synchronization problem and/or hanging (re)boot on full-virtual VMs

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7003720
  • Creation Date: 01-Jul-2009
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.