WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] DomU Console Flow of Control

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] DomU Console Flow of Control
From: John Riedl <riedl@xxxxxxxxxx>
Date: Sat, 6 Feb 2010 21:49:42 -0600
Delivery-date: Fri, 12 Feb 2010 08:29:03 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=w7MR8D/O8ivD551gOl/OD9ezLjV3RIGNaDxkk3H4oVw=; b=YjBpxZSw4WuDYqkhbuEQvrAeEeayTSKrH+mhtLqz9RsPh8Htx1tvGiEX643XkREz5T t+0XQvS2dw8PMvyhNa2LaX393S6qjWuhfeJ21v6wWGBc/jWStTfd0xWv/NQogB1rMRVo 6nogVJIyxFdet+v1G2SM1U9JV0j8Ah+ZVjtGY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:date:x-google-sender-auth:message-id :subject:from:to:content-type; b=nDpgsLsrmZTLCgRqOfAexpUFO3/bYcYjgzvjnAkbLjpJD+ZvBDpOBH+h+wxdb3JN3N 8uJOub3TL++1nyrvhyvdwnWu1QuLQFMFp3OBoSS/CSnqnk2U+JJP8Km0l1VzBZRSpn2z HsiD3HmUxjJSNmBXYNslF3VcwSYK66fplrz/4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Reply-to: riedl@xxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello all.  I've been running a Hardy Dom0/DomU for about 2.5 years.
Recently I upgraded my test DomU to Karmic because I needed some
upgraded tools on my desktop, and wanted to be sure I had an upgrade
path that would work.  I ran into the /proc/<pid>/mountinfo problem,
and had to upgrade the Dom0 to a newer Debian kernel.  (If you haven't
been down this path: Karmic requires at least a 2.6.26 kernel because
of some /proc updates.)  Then I had to upgrade my Dom0 to jaunty to
get the Xen 3.3 so Xen could decompress the newer kernels from Karmic.
 (If you haven't been down this path, newer linux kernels are
sometimes compressed with lzma or bzip2, which Xen 3.2 doesn't
understand.)  All seems to be well now -- except that I *cannot* get
the console working with my karmic DomU.  Today I even used the
xen-tools to create a brand spanking new karmic DomU.  Everything
worked out of the box -- but no console.  (There is a practical part
of me that says "quit worrying about having a console: embrace your
inner ssh".  However, I know that eventually my ssh is going to break
before a key deadline ...)

I've tried a million variants of hdc0/xdc0/tty0, and I figure it's
time to actually understand how this thing is supposed to work.  So:
can someone please explain what needs to be true for a xen DomU
console to work?  Tons of people are struggling with this problem in
all different variants of Xen, but I haven't yet found a clear,
concise outline of the basics of how it should work.  The key
questions are below.  If some xen hero provides answers, I volunteer
to write them up for the wiki to restore xen to the world :).  Here
are the key questions:

1) What is the relationship between xenconsole= and console= in the
"extra = " config parameter?
2) Is there a relationship between the Dom0 console and a DomU
console?  Are there settings that are required on the Dom0 for the
DomU console to work?
3) Is the foo in console=foo magic, interpreted by Xen in some
mysterious way, or is it just a choice that connects to a normal tty
in the domU?
4) Does the DomU need to have a /dev/foo for console=foo to work?  If
so, what should the properties of /dev/foo be?  (I created a /dev/xvc0
on one of my karmic installs, and it got auto-removed on reboot.
What's that all about?!)
5) Does the DomU need to run getty on the /dev/foo?  Conversely, is it
important that the DomU not run getty?  Karmic has changed its way of
running getty, which has added to the confusion, but once you find
/etc/init it's pretty easy to follow.
6) Are there key modules that a DomU needs to have in its initrd to
have the console work?

Has anyone been down this path with karmic before?  I'd like to
understand the general situation better, but specific advice would be
very welcome.

Thank you!
John

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>