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-devel

Re: [Xen-devel] Xen Paravirt Operations Domain 0 Serial Console Problem

To: pasik@xxxxxx
Subject: Re: [Xen-devel] Xen Paravirt Operations Domain 0 Serial Console Problem
From: "Mr. Teo En Ming (Zhang Enming)" <enming.teo@xxxxxxxxxxxxxxx>
Date: Tue, 25 Aug 2009 01:34:54 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 24 Aug 2009 10:35:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090824164416.GR19938@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4A92BD31.2040406@xxxxxxxxxxxxxxx> <20090824164416.GR19938@xxxxxxxxxxxxxxx>
Reply-to: enming.teo@xxxxxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3
Dear Pasi,

Thanks for your help! It works!

I wonder why this didn't work:

title Fedora (2.6.31-rc6-enming.teo) Serial Console
        root (hd0,0)
        kernel /xen.gz iommu=1 com1=115200,8n1 console=com1
        module /vmlinuz-2.6.31-rc6-enming.teo ro
root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200
        module /initrd-2.6.31-rc6-enming.teo.img

And this worked:

title pv_ops dom0-test (2.6.29-rc7-tip) with serial console
        root (hd0,0)
        kernel /xen-3.3.gz dom0_mem=1024M loglvl=all guest_loglvl=all 
com1=19200,8n1 console=com1
        module /vmlinuz-2.6.29-rc7-tip ro root=/dev/vg00/lv01 console=hvc0 
earlyprintk=xen
        module /initrd-2.6.29-rc7-tip.img

Anyway, I still got a tty1 output! I thought that after using serial console, 
it is not supposed to output to a monitor anymore?

As a result of this, I still can't hide the VGA card from dom 0 and pass it 
through to the Windows Dom U.

Any ideas?

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) 
BEng(Hons)(Mechanical Engineering)
Technical Support Engineer
Information Technology Department
Asiasoft Online Pte Ltd
Tampines Central 1 #04-01 Tampines Plaza
Singapore 529541
Republic of Singapore
Mobile: +65-9648-9798
MSN: teoenming@xxxxxxxxxxx
Alma Maters: Singapore Polytechnic, National University of Singapore



On 08/25/2009 12:44 AM, Pasi Kärkkäinen wrote:
On Tue, Aug 25, 2009 at 12:17:53AM +0800, Mr. Teo En Ming (Zhang Enming) wrote:
Hi All,

I have tried to configure serial console for Xen hypervisor, dom 0
kernel and Linux login but it does not seem to be working.

Here is my grub configuration for serial console:

title Fedora (2.6.31-rc6-enming.teo) Serial Console
         root (hd0,0)
         kernel /xen.gz iommu=1 com1=115200,8n1 console=com1
         module /vmlinuz-2.6.31-rc6-enming.teo ro
root=/dev/mapper/vg_fedora11_host-lv_root selinux=0 console=ttyS0,115200
         module /initrd-2.6.31-rc6-enming.teo.img

http://wiki.xensource.com/xenwiki/XenParavirtOps

paste from that page:


Working example grub.conf with serial console output:

title pv_ops dom0-test (2.6.29-rc7-tip) with serial console
         root (hd0,0)
         kernel /xen-3.3.gz dom0_mem=1024M loglvl=all guest_loglvl=all 
com1=19200,8n1 console=com1
         module /vmlinuz-2.6.29-rc7-tip ro root=/dev/vg00/lv01 console=hvc0 
earlyprintk=xen
         module /initrd-2.6.29-rc7-tip.img


Is the above configuration correct? On my Intel Desktop Board DQ45CB, I
have a COM1 header on the PCB and I have connected an external serial
port to this header and also enabled COM1 in the BIOS.

After selecting the above entry in GRUB still on VGA, a cursor at the
top left corner of the monitor shows up, which means Xen and Dom 0
kernel are booting up on the serial console and not on VGA.

However, after some time, a login prompt finally displays on my VGA
monitor! Isn't it NOT supposed to show up on VGA and should show up in
serial console instead?

You also need to have the gettys configured properly.

-- Pasi




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