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/
Home Products Support Community News


Re: [Xen-users] Why 'xm console' not works sometimes?

To: Tiago Cruz <tiagocruz@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Why 'xm console' not works sometimes?
From: Sadique Puthen <sputhenp@xxxxxxxxxx>
Date: Fri, 30 Nov 2007 23:50:48 +0530
Cc: Igor Chubin <igor@xxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 30 Nov 2007 10:21:52 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1196437315.23198.6.camel@tuxkiller>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1196427215.15834.34.camel@tuxkiller> <20071130131801.GK6702@xxxxxxx> <1196437315.23198.6.camel@tuxkiller>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (X11/20070926)
Tiago Cruz wrote:
On Fri, 2007-11-30 at 15:18 +0200, Igor Chubin wrote:

Because domain 0 know nothing about console of HVM-domains.
You can attach to the consoles of paravirtual domains, but not to HVM.

Thank you, Igor!
Really... you are correctly.

But... I've installed one new ParaVirtual domain, only to test, and I
can't console it.

I've a lot of changes, like:

Host: (DomO)
title Red Hat Enterprise Linux Server (2.6.18-53.1.4.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-53.1.4.el5 com2=115200, 8n1
        module /vmlinuz-2.6.18-53.1.4.el5xen ro root=/dev/VolGroup00/LogVol00 
rhgb quiet console=tty console=ttyS1115200
        module /initrd-2.6.18-53.1.4.el5xen.img

Guest: (DomU)
title Red Hat Enterprise Linux Server (2.6.18-53.1.4.el5xen)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-53.1.4.el5xen ro root=LABEL=/ rhgb quiet 
console=ttyS0 console=tty0
        initrd /boot/initrd-2.6.18-53.1.4.el5xen.img

[root@xenserver04 ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5 (Tikanga)
Kernel \r on an \m

[root@xenserver04 ~]# rpm -qa | grep xen

When I create the machine, I can see the grub, but after this I lost my
connection, only can get using 'ssh' after boot.

Any ideas?

What can I do for resolve this?
I think, you can try this solution:

1. Redirect console inside HVM domain to serial console
2. In the config file of your domain specify


and after that try to connect using minicom or xm console.

Ok... I'll try to get console on ParaVirt first :)

To get the boot messages on the console please append the below parameters to the kernel line in the grub.conf of the guest.

console=tty0 console=xvc0

kernel line in my grub.conf is as below.

kernel /vmlinuz-2.6.18-53.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet console=tty0 console=xvc0

To get a log in prompt on the console, please add the below line to your /etc/inittab, before ttyx defenitions. Once you do "xm console <guest>", you may have to press "return" to get the console.

co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav

[root@xenserver04 ~]# cat /etc/xen/xen04_rh5_01
# Automatically generated xen config file
name = "xen04_rh5_01"
memory = "1000"
disk = [ 'phy:/dev/VolGroup00/xen04_vm02,xvda,w', ]
vif = [ 'mac=00:16:3e:2a:b6:5f, bridge=xenbr0', ]
vfb = ["type=vnc,vncunused=1"]
uuid = "f6e74bad-7cbb-2af2-8e63-8f3e6b1628fb"
on_reboot   = 'restart'
on_crash    = 'restart'
serial = "pty" # enable serial console
extra = 'xencons=tty'


Xen-users mailing list