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

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

To: Igor Chubin <igor@xxxxxxx>
Subject: Re: [Xen-users] Why 'xm console' not works sometimes?
From: Tiago Cruz <tiagocruz@xxxxxxxxxxxx>
Date: Fri, 30 Nov 2007 13:41:55 -0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 30 Nov 2007 07:43:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20071130131801.GK6702@xxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
xen-3.0.3-41.el5
xen-libs-3.0.3-41.el5
kernel-xen-2.6.18-53.1.4.el5

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
> 
> serial='pty'
> 
> and after that try to connect using minicom or xm console.

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

[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"
bootloader="/usr/bin/pygrub"
vcpus=1
on_reboot   = 'restart'
on_crash    = 'restart'
serial = "pty" # enable serial console
extra = 'xencons=tty'


Thanks
> 
-- 
Tiago Cruz
http://everlinux.com
Linux User #282636



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