Xen and the linux console. why xencons={tty,ttys,xvc} will go away. Gerd Hoffmann <kraxel@redhat.com>



Similar documents
HOW TO CONFIGURE CISCO FIREWALL PART I

1 Basic Configuration of Cisco 2600 Router. Basic Configuration Cisco 2600 Router

Linux Recovery Utility for HP Integrity Servers

Virtual Private Systems for FreeBSD

Changing Password for Ingate Firewalls/SIParators Rickard Nilsson

Version 1.0. File System. Network Settings

Sun TM xvm Hypervisor

Xen-Based Virtualization Technology Preview for Red Hat Enterprise Linux 5.0 on HP Integrity servers

SUSE LINUX Enterprise Server for SGI Altix Systems

5-Bay Raid Sub-System Smart Removable 3.5" SATA Multiple Bay Data Storage Device User's Manual

TFA Laptop Printing - Windows

Performance tuning Xen

Shellshock Security Patch for X86

Oracle EXAM - 1Z Oracle Weblogic Server 11g: System Administration I. Buy Full Product.

Practical Applications of Virtualization. Mike Phillips IAP 2008 SIPB IAP Series

ULTEO OPEN VIRTUAL DESKTOP UBUNTU (PRECISE PANGOLIN) SUPPORT

Quick Start Guide. Quick Start Guide. taskit GmbH. for Portux920T EU / SW Portux Mini-PC Portux Panel-PC Panel-Card MoLUX Stamp

Oracle VM Server Recovery Guide. Version 8.2

Configure Single Sign on Between Domino and WPS

VX 9000E WiNG Express Manager INSTALLATION GUIDE

Citrix XenServer 5.6 OpenSource Xen 2.6 on RHEL 5 OpenSource Xen 3.2 on Debian 5.0(Lenny)

KVM: A Hypervisor for All Seasons. Avi Kivity avi@qumranet.com

Using Virtual PC 7.0 for Mac with GalleryPro

Cisco ISE Command-Line Interface

[HOW TO RECOVER AN INFINITI/EVOLUTION MODEM IDX ] 1

Remote Desktop In OpenSUSE 10.3

Installation Quick Start SUSE Linux Enterprise Server 11 SP1

Cable Internet Connection & Sharing using Red Hat 7.2 (Version 1.0, )

XI'AN NOVASTAR TECH CO., LTD

How to Configure an Initial Installation of the VMware ESXi Hypervisor

The RT module VT6000 (VT6050 / VT6010) can be used to enhance the RT. performance of CANoe by distributing the real-time part of CANoe to a

How To Set Up A Macintosh With A Cds And Cds On A Pc Or Macbook With A Domain Name On A Macbook (For A Pc) For A Domain Account (For An Ipad) For Free

The QEMU/KVM Hypervisor

OPEN-XCHANGE. Open-Xchange and SUSE Linux Enterprise 10 Whitepaper

... Alternative Linux distributions for POWER processor-based systems A review of unsupported Linux distributions running on POWER5

Kepware Technologies Remote OPC DA Quick Start Guide (DCOM)

Note: This case study utilizes Packet Tracer. Please see the Chapter 5 Packet Tracer file located in Supplemental Materials.

Date: December 2009 Version: 1.0. How Does Xen Work?

HOWTO configure Xinu under Virtual Box

How to Install Microsoft Windows Server 2008 R2 in VMware ESXi

2-Bay Raid Sub-System Smart Removable 3.5" SATA Multiple Bay Data Storage Device User's Manual

Security. The user and group account information for LookoutDirect 4 is kept in the Lookout.sec file, installed in your Windows SYSTEM directory.

This presentation introduces you to the Decision Governance Framework that is new in IBM Operational Decision Manager version 8.5 Decision Center.

PuTTY/Cygwin Tutorial. By Ben Meister Written for CS 23, Winter 2007

Week Overview. Installing Linux Linux on your Desktop Virtualization Basic Linux system administration

Professional Xen Visualization

LOCKSS on LINUX. CentOS6 Installation Manual 08/22/2013

Securing Your Cloud with Xen Project s Advanced Security Features

Getting Started Guide

2 Purpose. 3 Hardware enablement 4 System tools 5 General features.

Setup Cisco Call Manager on VMware

Root Password is known. Upgrading, Removing or Adding Software to Solaris 10

HP One-Button Disaster Recovery (OBDR) Solution for ProLiant Servers

SPICE and desktop virtualization

VMware Server 2.0 Essentials. Virtualization Deployment and Management

Router Lab Reference Guide

Configuration Guide for Active Directory Integration

ThinkServer RD540 and RD640 Operating System Installation Guide

Virtual Hosting & Virtual Machines

Creating a DUO MFA Service in AWS

Xen Virtualization Software

Distributed systems Techs 4. Virtualization. October 26, 2009

Using Red Hat Enterprise Linux with Georgia Tech's RHN Satellite Server Installing Red Hat Enterprise Linux

How to Configure Intel X520 Ethernet Server Adapter Based Virtual Functions on Citrix* XenServer 6.0*

Terminal Server Guide

KVM: Kernel-based Virtualization Driver

An Introduction To The Web File Manager

CONNECTING TO DEPARTMENT OF COMPUTER SCIENCE SERVERS BOTH FROM ON AND OFF CAMPUS USING TUNNELING, PuTTY, AND VNC Client Utilities

Board also Supports MicroBridge

Virtual Switching Without a Hypervisor for a More Secure Cloud

PowerPanel Business Edition Installation Guide

virtio-vsock Zero-configuration host/guest communication Stefan Hajnoczi KVM Forum 2015 KVM FORUM 2015 STEFAN HAJNOCZI

Virtualization. Michael Tsai 2015/06/08

Acronis Backup & Recovery 10 Server for Linux. Quick Start Guide

2972 Linux Options and Best Practices for Scaleup Virtualization

Network Load Balancing

Option nv, Gaston Geenslaan 14, B-3001 Leuven Tel Fax Page 1 of 14

Phantom4 Remote Management Module User s Manual

Regional SEE-GRID-SCI Training for Site Administrators Institute of Physics Belgrade March 5-6, 2009

WINDOWS PROCESSES AND SERVICES

Server Configuration and Deployment (part 1) Lotus Foundations Essentials

CS312 Solutions #6. March 13, 2015

Models For Modeling and Measuring the Performance of a Xen Virtual Server

9 Headless Systems & Remote Management

FileCruiser. VA2600 SR1 Quick Configuration Guide

Configure the idrac Remote Access Console

Getting started with ARM-Linux

Cedric Rajendran VMware, Inc. Security Hardening vsphere 5.5

Install Guide for JunosV Wireless LAN Controller

Web based training for field technicians can be arranged by calling These Documents are required for a successful install:

PARALLELS SERVER 4 BARE METAL README

WhatsUp Gold v16.3 Installation and Configuration Guide

AXE027 PICAXE USB CABLE

AMT Implementation on a UTC RETAIL 3170 POS

SPI Backup via Remote Terminal

GRID VGPU FOR VMWARE VSPHERE

Hardware Based Virtualization Technologies. Elsie Wahlig Platform Software Architect

Comparing Free Virtualization Products

Dominion KX II-101-V2

INUVIKA OVD INSTALLING INUVIKA OVD ON UBUNTU (TRUSTY TAHR)

Transcription:

Xen and the linux console why xencons={tty,ttys,xvc} will go away. Gerd Hoffmann <kraxel@redhat.com>

What is the Linux console? Answering this question is the point of this talk... For most users it probably is the screen they are sitting in front of. The linux kernel has two different (but related) subsystems. Both have a bunch of CONFIG_*_CONSOLE config options

Virtual Terminals (CONFIG_VT) Using Alt-Fx users can switch between different terminals on the same physical screen. Each terminal has its own device: /dev/tty<nr>. Most Linux distros have getty's running on /dev/tty{1-6}, the X-Server uses /dev/tty7. /dev/tty0: The terminal which is visible at the moment. The VT subsystem needs a hardware specific drivers for actual output.

VT drivers (incomplete) CONFIG_VGA_CONSOLE Drives VGA card in text mode. CONFIG_FRAMEBUFFER_CONSOLE Provides text screens on top of a graphical display. The graphical display is handled by some fb driver: vesafb (generic), matroxfb, pvfb (xen),... CONFIG_DUMMY_CONSOLE Used when no other driver is present. Solves initialization order issues and usually runs for a short time at boot only.

Introducing /dev/console /dev/console is the linux console device. The kernel messages (printk) will go to the console device. The kernel boots /sbin/init with /dev/console as terminal. Often linked to /dev/tty0. One reason for the confusion... That is only one option though. Especially there is no strong connection between virtual terminals and /dev/console.

About Console drivers There are two kinds of console drivers: Some can just print messages. The others are associated with a full-featured terminal. The earlyprintk code is just a console driver too. quite limited, print-only, no mem alloc for early boot operation.

Console driver list (#1) CONFIG_VT_CONSOLE Console on virtual terminals. Most popular one. CONFIG_SERIAL_*_CONSOLE Console on a serial line. CONFIG_LP_CONSOLE Print your kernel messages on paper. CONFIG_NETCONSOLE Send messages to a log server.

Console driver list (#2) CONFIG_HVC_CONSOLE Hypervisor console infrastructure. Two simple functions to send and receive characters are needed You'll get a full-featured terminal device. Created by the powerpc folks. There are alot more console drivers, most of them are architecture-specific.

XenLinux console, sparse tree (#1) It is a terminal driver, registers as console (aka /dev/console). It can hijack the console (aka VT subsystem) major/minor number range (xencons=tty). Default on guest domains. Convenient, gives getty without extra config. Using virtual terminals at the same time is impossible. Showstopper for pvfb. Code must deal with hijack fallout (emulate /dev/tty{2..8}).

XenLinux console, sparse tree (#2) It can also hijack the serial line major/minor numbers (xencons=ttys) Default on the control domain. Makes it impossible for the dom0 kernel to use the serial line directly. Recent (3.0.4+) drivers can use the xen console major/minor number (xencons=xvc). YES! Make it the default NOW! Needs some manual config (stay tuned) until distros do it for you. No conflicts with other drivers.

XenLinux console, paravirt_ops Remember CONFIG_HVC_CONSOLE? The xen console code in the paravirt_ops patch queue just uses that. Very few lines of code, the infrastructure in hvc_console.c handles the interfacing with other parts of the kernel for us. xencons= is gone. The console device is /dev/hvc0.

Linux console config, background The Linux kernel can have (and usually has) multiple console devices compiled in. Who registers first is the default console. Initialization order is link order, drivers/makefile decides which console driver becomes default. Can be overwritten on the kernel command line using console=name,options. Multiple consoles can be specified, printk goes to all consoles, /dev/console is linked to the last one.

Linux console config, examples console=ttys0,115200n8 Classic way to setup a serial console. xencons=xvc console=xvc0 3.0.4+ sparse kernels, without virtual framebuffer. xencons=xvc console=xvc0 console=tty1 3.0.4+ sparse kernels, when using the framebuffer. console=hvc0 paravirt_ops kernels.

Linux console config, userspace Start a getty on /dev/hvc0 (or /dev/xvc0) for login. Edit /etc/inittab (usually has a commented serial console sample line) h0:12345:respawn:/sbin/agetty -L 9600 hvc0 screen Add hvc0 to /etc/securetty for root logins. /dev/hvc0 is present even when not configured as console. No boot messages then of course. But getty's friendly login prompt will show nevertheless.

That's it. Questions?