[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Help: cannot attach to the domain's console. why?


  • To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
  • From: ma qiang <maqiang1984@xxxxxxxxx>
  • Date: Fri, 22 Jan 2010 15:58:51 +0800
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 22 Jan 2010 00:00:34 -0800
  • 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=cwgH8aC1UpJUH43jugcSlwA/gqjoWFKTpvIeb/jtY0rhtHUi7zVj5xkbz1pzWiIBJT /7vP3/nDBmhYtaIsGUogGANXFfqrVU/mpPdFkAPSA431pVUjWkQl1dQOD5iaSuVjd3Ti DOgrIIenPGd+4Jj0s5Deu/eA8TMsPXSd+j/DM=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hiï
   Thanks a lot.  I can connect to domU's console by munally updating
/etc/inittab and grub.conf, but a little trouble is that after my type
"xm console test& enter", the console cannot print until I enter
again. So I thought that doesn't work.
   Now I want to setup serial console automaticly when I install
centos domU. I add "console='ttyS0'" to config file and install the
centos in domU. The config file is attached 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'  //--------I add this line-----------//

I don't know if I am right. Can you help me again?
  Thank you very much.

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.