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] Help: cannot attach to the domain's console. why?

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] Help: cannot attach to the domain's console. why?
From: ma qiang <maqiang1984@xxxxxxxxx>
Date: Fri, 22 Jan 2010 14:32:39 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 21 Jan 2010 22:33:17 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=PjLMRkDNZ3me5396y/S3PinnurDbuoYM7FrE+vlSSqQ=; b=TlPDdsqyqvr/AgWjzk6HbOez1OkAaNLO7jlqVVYocJ/Twcyw5JNWFsemCuvXFJAxHZ GV5Dg0K023MGfCnXDcGOa92Q9WAE227sDvSIWAa+x/Jx2bR0+8OHZXI/zFlc3al+hicW usNLNX42tyk13cfA9fNTSFwGbG6e2WR7xWcjY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WYBRyC2Ti2mKCDRbl7PeghNGEvRuUij/tF7VGcP4KI4JrP2YwAsabqcEEAtaRfwLmt ggRq5Gv7Gv1GXTkyfx6s37tw8WVip55SYHTIp+iy6A71t72eXwoNY/HHq1WkAe10SNw/ EJGBG7Pr/JDOS/QXTeUVJTDyqSGaXhUPplmtc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f1001211950h60b85603w5474eb2afecee576@xxxxxxxxxxxxxx>
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>
References: <2af70f431001211853y539217acqcef0f7af8c9cbcf9@xxxxxxxxxxxxxx> <7207d96f1001211950h60b85603w5474eb2afecee576@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
hi,
   Thanks for your reply.
   At first, I have setup serial console manually as
http://www.linuxdynasty.org/how-to-setup-serial-console-on-linux.html.
But after reboot domU and type "xm console test", nothing print and
command hangs.
   So I have tried reinstall domU with "console=ttyS0", I don't know
if I use the correct config. I add "console='ttyS0'" at the bottom of
config file. you can see as below:
kernel = "/usr/lib/xen/boot/hvmloader"
builder = 'hvm'
name = "test"
memory = 1024
disk = [ 'file:/srv/xen/test.img,hda,w',
'file:/root/xen/CentOS-5.4-i386-bin-DVD.iso,hdc:cdrom,r'
boot = "d"
vif = [ 'type=ioemu, bridge=eth1' ]
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'
sdl=0
vnc=1
vnclisten="0.0.0.0"
vncpasswd='password'
stdvga=0
serial='pty'
usbdevice='tablet'
console='ttyS0'

But the same thing happened, after reboot domU and type "xm console
test", nothing print and command hangs.
:) , I am confused about that.

Thank you again!

Best Wishes!
Qiang Ma

On Fri, Jan 22, 2010 at 11:50 AM, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:
> On Fri, Jan 22, 2010 at 9:53 AM, ma qiang <maqiang1984@xxxxxxxxx> wrote:
>> kernel = "/usr/lib/xen/boot/hvmloader"
>> builder = 'hvm'
>
>> After that, the system runs ok, nothing wrong. I can attach to this
>> domain's VNC server by using "xm vncviewer test".
>> However, now if I use "xm console test",  nothing print, like the command 
>> hangs.
>
> "xm vncviewer" -> connects to domU's GUI (vga/tty1). This is enabled by 
> default
> "xm console" -> connects to domU's "serial" console (ttyS0 on hvm
> guests, xvc0/hvc0 on PV guests). Not enabled by default.
>
> Had you install Centos domU with "console=ttyS0", it would setup the
> serial console. Since it's already running, you need to setup serial
> console manually. Something like
> http://www.linuxdynasty.org/how-to-setup-serial-console-on-linux.html
>
> --
> Fajar
>

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