From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Xen Paravirt Operations Domain 0 Serial Console Problem Date: Mon, 24 Aug 2009 20:59:57 +0300 Message-ID: <20090824175957.GU19938@edu.joroinen.fi> References: <4A92BD31.2040406@asiasoftsea.net> <20090824164416.GR19938@edu.joroinen.fi> <4A92CF3E.8010008@asiasoftsea.net> <20090824175747.GT19938@edu.joroinen.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20090824175747.GT19938@edu.joroinen.fi> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Mr. Teo En Ming (Zhang Enming)" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, Aug 24, 2009 at 08:57:47PM +0300, Pasi K=E4rkk=E4inen wrote: > On Tue, Aug 25, 2009 at 01:34:54AM +0800, Mr. Teo En Ming (Zhang Enming= ) wrote: > > Dear Pasi, > >=20 > > Thanks for your help! It works! > >=20 > > I wonder why this didn't work: > >=20 > > title Fedora (2.6.31-rc6-enming.teo) Serial Console > > root (hd0,0) > > kernel /xen.gz iommu=3D1 com1=3D115200,8n1 console=3Dcom1 > > module /vmlinuz-2.6.31-rc6-enming.teo ro > > root=3D/dev/mapper/vg_fedora11_host-lv_root selinux=3D0 console=3Dtty= S0,115200 > > module /initrd-2.6.31-rc6-enming.teo.img > >=20 > > And this worked: > >=20 > > title pv_ops dom0-test (2.6.29-rc7-tip) with serial console > > root (hd0,0) > > kernel /xen-3.3.gz dom0_mem=3D1024M loglvl=3Dall guest_loglvl= =3Dall=20 > > com1=3D19200,8n1 console=3Dcom1 > > module /vmlinuz-2.6.29-rc7-tip ro root=3D/dev/vg00/lv01 conso= le=3Dhvc0=20 > > earlyprintk=3Dxen > > module /initrd-2.6.29-rc7-tip.img > >=20 > > Anyway, I still got a tty1 output! I thought that after using serial=20 > > console, it is not supposed to output to a monitor anymore? > > >=20 > Well you still haven't disabled the VGA display adapter.. > And most probably you still have gettys configured aswell. > =20 > > As a result of this, I still can't hide the VGA card from dom 0 and p= ass it=20 > > through to the Windows Dom U. > >=20 >=20 > See: http://wiki.xensource.com/xenwiki/VTdHowTo >=20 > Especially the section "Binding at Boot-Time". > Oh, I guess pv_ops dom0 still doesn't have pciback.=20 I wonder how to do it then.. -- Pasi =20 >=20 > > Any ideas? > >=20 > > --=20 > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering)=20 > > 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@hotmail.com > > Alma Maters: Singapore Polytechnic, National University of Singapore > >=20 > >=20 > >=20 > > On 08/25/2009 12:44 AM, Pasi K=E4rkk=E4inen wrote: > > >On Tue, Aug 25, 2009 at 12:17:53AM +0800, Mr. Teo En Ming (Zhang Enm= ing)=20 > > >wrote: > > > =20 > > >>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=3D1 com1=3D115200,8n1 console=3Dcom1 > > >> module /vmlinuz-2.6.31-rc6-enming.teo ro > > >>root=3D/dev/mapper/vg_fedora11_host-lv_root selinux=3D0 console=3Dt= tyS0,115200 > > >> module /initrd-2.6.31-rc6-enming.teo.img > > >> > > >> =20 > > >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=3D1024M loglvl=3Dall guest_logl= vl=3Dall=20 > > > com1=3D19200,8n1 console=3Dcom1 > > > module /vmlinuz-2.6.29-rc7-tip ro root=3D/dev/vg00/lv01=20 > > > console=3Dhvc0 earlyprintk=3Dxen > > > module /initrd-2.6.29-rc7-tip.img > > > > > > > > > =20 > > >>Is the above configuration correct? On my Intel Desktop Board DQ45C= B, I > > >>have a COM1 header on the PCB and I have connected an external seri= al > > >>port to this header and also enabled COM1 in the BIOS. > > >> > > >>After selecting the above entry in GRUB still on VGA, a cursor at t= he > > >>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? > > >> > > >> =20 > > >You also need to have the gettys configured properly. > > > > > >-- Pasi > > > =20 > >=20 > >=20 > >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel