From: Boris Derzhavets Subject: RE: [HOWTO] Setting up Xen4 + pvops 2.6.32.21.x on CentOS 5.5 Date: Wed, 6 Oct 2010 10:02:57 -0700 (PDT) Message-ID: <643301.80957.qm@web56107.mail.re3.yahoo.com> References: <2FD61F37AFF16D4DB46149330E4273C70353C37A@dcl-ex.dcml.docomolabs-usa.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1542089893==" Return-path: In-Reply-To: <2FD61F37AFF16D4DB46149330E4273C70353C37A@dcl-ex.dcml.docomolabs-usa.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?iso-8859-1?Q?Pasi_K=E4rkk=E4inen?= , Pradeep Padala Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1542089893== Content-Type: multipart/alternative; boundary="0-277215462-1286384577=:80957" --0-277215462-1286384577=:80957 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Option not to start xend via /etc/rc.local (Ubuntu 10.04.1 Server) should b= e good for CentOS , i guess :- --- xend.orig 2010-10-06 18:44:35.055245544 +0400 =0A+++ xend 2010-10-06 18:46:26.056620024 +0400 =0A@@ -21,7 +21,7 @@ =0A =0A shopt -s extglob =0A test -f /etc/sysconfig/xend && . /etc/sysconfig/xend =0A- =0A+/sbin/modprobe -v xenfs =0A if test "x$1" =3D xstart && \ =0A test -d /proc/xen && \ =0A ! test -d /proc/xen/capabilities && \ =0A@@ -57,6 +57,11 @@ =0A test -z "$XENCONSOLED_TRACE" || export XENCONSOLED_TRACE =0A [[ "$XENSTORED_TRACE" =3D=3D @(yes|on|1) ]] && export XENSTORED_= TRACE =0A [[ "$XENBACKENDD_DEBUG" =3D=3D @(yes|on|1) ]] && export XENBACKE= NDD_DEBUG =0A+ /sbin/modprobe -v xen-evtchn =0A+ /sbin/modprobe -v xen-gntdev =0A+ /sbin/modprobe -v xen-blkback =0A+ /sbin/modprobe -v xen-netback =0A+ /sbin/modprobe -v blktap =0A xend start =0A await_daemons_up =0A ;; =0A Boris. --- On Tue, 10/5/10, Pradeep Padala wrote: From: Pradeep Padala Subject: RE: [Xen-devel] [HOWTO] Setting up Xen4 + pvops 2.6.32.21.x on Cen= tOS 5.5 To: "Boris Derzhavets" , "Pasi K=E4rkk=E4inen" Cc: xen-devel@lists.xensource.com Date: Tuesday, October 5, 2010, 1:46 PM 1. Good catch, updated HOWTO 2. It is needed on CentOS 5.5. Otherwise it doesn't work, updated HOWTO wit= h a note. Pradeep =20 From: Boris Derzhavets [mailto:bderzhavets@yahoo.com]=20 Sent: Tuesday, October 05, 2010 7:43 AM To: Pradeep Padala; Pasi K=E4rkk=E4inen Cc: xen-devel@lists.xensource.com Subject: Re: [Xen-devel] [HOWTO] Setting up Xen4 + pvops 2.6.32.21.x on Cen= tOS 5.5 I have two more questions regarding yours "Howto" 1. Quote=20 ***************************************************************************= ******************** OR, add the following to /etc/rc.local (I had trouble making the modprobe w= ork) if ( uname -r | grep "2.6.32.21") ; then =A0=A0=A0for mod in xen-evtchn xen-netback xen-blkback xenfs; do =A0=A0=A0=A0=A0=A0=A0=A0/sbin/modprobe $mod =A0=A0=A0done =A0=A0=A0/etc/init.d/xend restart fi ************************************************************** Xend will fail to start as service if module xenfs has not been loaded yet.= So nothing to restart. Should be=20 service xend start 2.Quote =A0Install Xen and kernel ***************************************************************************= **************** make install-xen make install-tools PYTHON_PREFIX_ARG=3D cd build-* make modules_install make install *********************************************************** I would guess that on CentOS 5.5 just make install-tools due to standard default location of python packages /usr/lib/python2.x/site-packages . I haven't alive CentOS 5.5 instance, but on Fedoras it's unnecessary Boris. --- On Mon, 10/4/10, Boris Derzhavets wrote: From: Boris Derzhavets Subject: Re: [Xen-devel] [HOWTO] Setting up Xen4 + pvops 2.6.32.21.x on Cen= tOS 5.5 To: "Pradeep Padala" , "Pasi K=E4rkk=E4inen" Cc: xen-devel@lists.xensource.com Date: Monday, October 4, 2010, 8:00 AM If i will follow :- http://ppadala.net/blog/2010/09/how-to-setup-xen4-and-pvops-2-6-32-x-on-cen= tos-5-5-using-gitco-repository/ Recommended .config (fragment) CONFIG_XEN_DEV_EVTCHN=3Dy CONFIG_XEN_BACKEND=3Dy CONFIG_XEN_BLKDEV_BACKEND=3Dy CONFIG_XEN_NETDEV_BACKEND=3Dy CONFIG_XENFS=3Dy CONFIG_XEN_COMPAT_XENFS=3Dy I believe in this case modules :- =A0=A0 xen-evtchn xen-netback xen-blkback xenfs won't be created because they are hard linked to kernel. To get them as modules i need :- CONFIG_XEN_DEV_EVTCHN=3Dm CONFIG_XEN_BACKEND=3Dy CONFIG_XEN_BLKDEV_BACKEND=3Dm CONFIG_XEN_NETDEV_BACKEND=3Dm CONFIG_XENFS=3Dm At least on my system (F14) with .config=20 Fragment from .config # CONFIG_XEN_BALLOON=3Dy CONFIG_XEN_SCRUB_PAGES=3Dy CONFIG_XEN_DEV_EVTCHN=3Dy CONFIG_XEN_BACKEND=3Dy CONFIG_XEN_NETDEV_BACKEND=3Dm CONFIG_XEN_BLKDEV_BACKEND=3Dy CONFIG_XEN_BLKDEV_TAP=3Dy # [root@fedora14 2.6.32.23]# pwd /lib/modules/2.6.32.23 [root@fedora14 2.6.32.23]# find . -name "xen-*back.ko" -print ./kernel/drivers/xen/netback/xen-netback.ko [root@fedora14 2.6.32.23]# find . -name "xen-evtchn.ko" -print Module xen-netback.ko has been created only due to :- =A0 CONFIG_XEN_NETDEV_BACKEND=3Dm May be i am missing something here ? Boris. P.S. I just need xen-netback to be loaded as module for OpenIndiana 147 PV Guest stable networking with PVOPS kernel=A0 ( OSOL 134 aswell). In other words i= need to configure PVOPS kernel=A0 like XenLinux=A0 kernel in regards of loading = xen backend drivers. --- On Sun, 10/3/10, Pasi K=E4rkk=E4inen wrote: From: Pasi K=E4rkk=E4inen Subject: Re: [Xen-devel] [HOWTO] Setting up Xen4 + pvops 2.6.32.21.x on Cen= tOS 5.5 To: "Pradeep Padala" Cc: xen-devel@lists.xensource.com Date: Sunday, October 3, 2010, 3:34 PM On Tue, Sep 28, 2010 at 11:04:11AM -0700, Pradeep Padala wrote: >=A0 =A0 Hi, >=20 >=A0 =A0 I spent some time configuring the latest Xen with pvops 2.6.32.x o= n CentOS >=A0 =A0 5.5. It hasn't been easy, to say the least. My HOWTOs on this are = located >=A0 =A0 at >=A0 =A0 [1]http://ppadala.net/blog/2010/09/how-to-setup-xen4-pvops-2-6-32-= x-on-centos-5-5/ >=A0 =A0 and >=A0 =A0 [2]http://ppadala.net/blog/2010/09/how-to-setup-xen4-and-pvops-2-6= -32-x-on-centos-5-5-using-gitco-repository/ >=20 >=A0 =A0 Hope they are helpful. Any comments are welcome. Feel free to add = this to >=A0 =A0 Xen4 Wiki. >=20 Thanks for the tutorials! I've added them to Xen4.0 wiki page. -- Pasi _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel -----Inline Attachment Follows----- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-277215462-1286384577=:80957 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Option not to start xend via /etc/rc.local (U= buntu 10.04.1 Server) should be good for
CentOS , i guess :-

--- xend.orig 2010-10-06 18:44:35.055245544 +0400
=0A+++ xend = 2010-10-06 18:46:26.056620024 +0400
=0A@@ -21,7 +21,7 @@
=0A
=0A = shopt -s extglob
=0A test -f /etc/sysconfig/xend && . /etc/sysco= nfig/xend
=0A-
=0A+/sbin/modprobe -v xenfs
=0A if test "x$1" =3D= xstart && \
=0A test -d /proc/xen && \
=0A != test -d /proc/xen/capabilities && \
=0A@@ -57,6 +57,11 @@
= =0A test -z "$XENCONSOLED_TRACE" || export XENCONSOLED_TRACE
=0A = [[ "$XENSTORED_TRACE" =3D=3D @(yes|on|1) ]] && export XENSTO= RED_TRACE
=0A [[ "$XENBACKENDD_DEBUG" =3D=3D @(yes|on|1) ]] &= & export XENBACKENDD_DEBUG
=0A+ /sbin/modprobe -v xen-evtchn<= br>=0A+ /sbin/modprobe -v xen-gntdev
=0A+ /sbin/modprobe -= v xen-blkback
=0A+ /sbin/modprobe -v xen-netback
=0A+ /= sbin/modprobe -v blktap
=0A xend start
=0A await_daemon= s_up
=0A ;;
=0A
Boris.

--- On Tue, 10/5/10= , Pradeep Padala <ppadala@docomolabs-usa.com> wrote:

From: Pradeep Padala <ppadala@docomolabs-usa.= com>
Subject: RE: [Xen-devel] [HOWTO] Setting up Xen4 + pvops 2.6.32.= 21.x on CentOS 5.5
To: "Boris Derzhavets" <bderzhavets@yahoo.com>,= "Pasi K=E4rkk=E4inen" <pasik@iki.fi>
Cc: xen-devel@lists.xensourc= e.com
Date: Tuesday, October 5, 2010, 1:46 PM

1. Good catch, updated HOWTO
2. It is needed on CentOS 5.5. Otherw= ise it doesn't work, updated HOWTO with a note.

Pradeep


= From: Boris Derzhavets [mailto:bderzhavets@yahoo.com] =
Sent: Tuesday, October 05, 2010 7:43 AM
To: Pradeep Padala; Pasi K= =E4rkk=E4inen
Cc: xen-devel@lists.xensource.com
Subject= : Re: [Xen-devel] [HOWTO] Setting up Xen4 + pvops 2.6.32.21.x on CentOS 5.5=

I have two more questions regarding yours "Howto"

1. Quote <= br>
********************************************************************= ***************************
OR, add the following to /etc/rc.local (I ha= d trouble making the modprobe work)
if ( uname -r | grep "2.6.32.21") ; = then
   for mod in xen-evtchn xen-netback xen-blkback xen= fs; do

        /sbin/modprob= e $mod
   done

   /etc/init.d/xend = restart
fi
**********************************************************= ****
Xend will fail to start as service if module xenfs has not been loa= ded yet. So nothing to restart. Should be

service xend start

2.Quote

 Install Xen and kernel
**************= ***************************************************************************= **
make install-xen
make install-tools PYTHON_PREFIX_ARG=3D

cd= build-*
make modules_install
make install
***********************= ************************************
I would guess that on CentOS 5.5 ju= st

make install-tools

due to standard default location of pyt= hon packages
/usr/lib/python2.x/site-packages . I haven't alive CentOS 5= .5
instance, but on Fedoras it's unnecessary

Boris.

--- On= Mon, 10/4/10, Boris Derzhavets <bderzhavets@yahoo.com<= /a>> wrote:

From: Boris Derzhavets <
bderzhave= ts@yahoo.com>
Subject: Re: [Xen-devel] [HOWTO] Setting up Xen4 + = pvops 2.6.32.21.x on CentOS 5.5
To: "Pradeep Padala" <ppadala@docomolabs-usa.com>, "Pasi K=E4rkk=E4inen" <pasik@i= ki.fi>
Cc: xen-devel@lists.xenso= urce.com
Date: Monday, October 4, 2010, 8:00 AM
If i will follow = :-

htt= p://ppadala.net/blog/2010/09/how-to-setup-xen4-and-pvops-2-6-32-x-on-centos= -5-5-using-gitco-repository/

Recommended .config (fragment)

CONFIG_XEN_DEV_EVTCHN=3Dy
CONFIG_XEN_BACKEND=3Dy
C= ONFIG_XEN_BLKDEV_BACKEND=3Dy
CONFIG_XEN_NETDEV_BACKEND=3Dy
CONFIG_XEN= FS=3Dy
CONFIG_XEN_COMPAT_XENFS=3Dy

I believe in this case modules= :-
   xen-evtchn xen-netback xen-blkback xenfs
won't be cr= eated because they are hard linked to kernel.

To get them as modules= i need :-

CONFIG_XEN_DEV_EVTCHN=3Dm
CONFIG_XEN_BACKEND=3Dy
CO= NFIG_XEN_BLKDEV_BACKEND=3Dm
CONFIG_XEN_NETDEV_BACKEND=3Dm
CONFIG_XENF= S=3Dm

At least on my system (F14) with .config
Fragment from .co= nfig
#
CONFIG_XEN_BALLOON=3Dy
CONFIG_XEN_SCRUB_PAGES=3Dy
CONFIG= _XEN_DEV_EVTCHN=3Dy
CONFIG_XEN_BACKEND=3Dy
CONFIG_XEN_NETDEV_BACKEND= =3Dm
CONFIG_XEN_BLKDEV_BACKEND=3Dy
CONFIG_XEN_BLKDEV_TAP=3Dy
#
= [root@fedora14 2.6.32.23]# pwd
/lib/modules/2.6.32.23
[root@fedora14 = 2.6.32.23]# find . -name "xen-*back.ko" -print
./kernel/drivers/xen/netback/xen-netback.ko
[root@fedora14 2.= 6.32.23]# find . -name "xen-evtchn.ko" -print

Module xen-netback.ko = has been created only due to :-
  CONFIG_XEN_NETDEV_BACKEND=3Dm
=
May be i am missing something here ?

Boris.
P.S.
I just ne= ed xen-netback to be loaded as module for OpenIndiana 147 PV Guest
stabl= e networking with PVOPS kernel  ( OSOL 134 aswell). In other words i n= eed
to configure PVOPS kernel  like XenLinux  kernel in regard= s of loading xen backend drivers.


--- On Sun, 10/3/10, Pasi K=E4= rkk=E4inen <pasik@iki.fi> wrote:

From: Pasi K=E4rkk=E4inen = <pasik@iki.fi>
Subject: Re: [Xen-devel] [HOWTO] Setting up Xen4= + pvops 2.6.32.21.x on CentOS 5.5
To: "Pradeep Padala" <ppadala@docomolabs-usa.com>
Cc: xen-devel@lists.xensource.com
Date: Sunday,= October 3, 2010, 3:34 PM
On Tue, Sep 28, 2010 at 11:04:11AM -0700, Prad= eep Padala wrote:
>    Hi,
>
>    I = spent some time configuring the latest Xen with pvops 2.6.32.x on CentOS>    5.5. It hasn't been easy, to say the least. My HOWTOs on= this are located
>    at
>    [1]http://ppadala.net/blog/2010/09/how-to-setup-xe= n4-pvops-2-6-32-x-on-centos-5-5/
>    and
> =   [2]http://ppadala.= net/blog/2010/09/how-to-setup-xen4-and-pvops-2-6-32-x-on-centos-5-5-using-g= itco-repository/
>
>    Hope they are helpful. A= ny comments are welcome. Feel free to add this to
>    Xen4= Wiki.
>

Thanks for the tutorials!
I've added them to Xen4= .0 wiki page.

-- Pasi


___________________________________= ____________
Xen-devel mailing list
= Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

-----Inline Attachment Follows-----
______________________________= _________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xe= nsource.com/xen-devel


= =0A=0A --0-277215462-1286384577=:80957-- --===============1542089893== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1542089893==--