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] should packages be removed before installing xen from so

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] should packages be removed before installing xen from source?
From: James Pifer <jep@xxxxxxxxxxxxxxxx>
Date: Wed, 21 Oct 2009 16:17:08 -0400
Delivery-date: Wed, 21 Oct 2009 13:19:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4ADEF4F80200009900027EA0@xxxxxxxxxxxxxxxxxxxxx>
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: <4ADEF4F80200009900027EA0@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, 2009-10-21 at 11:48 -0600, Nick Couchman wrote:
> >>> On 2009/10/21 at 10:37, James Pifer <jep@xxxxxxxxxxxxxxxx> wrote: 
> > I have some xen servers running on sles10sp2. I'd like to try and
> run
> > the latest stable release from source to see if it improves any
> issues
> > I'm having. Should I remove the xen packages before installing from
> > source?
> > 
> > Thanks,
> > James
> 
> Yes, you will almost certainly need to do this, as the locations for
> source file installation and the packages are different, and this can
> lead to (and has led to, in my experience) Xen getting confused about
> which Python files it needs to run.  Removing the Xen packages should
> help resolve these issues.  Once caveat to this is that you'll
> probably have to build *everything* - packages like virt-manager and
> libvirt require the Xen packages to be installed, so you should either
> plan on building new Xen packages and installing those, or making sure
> you download and compile code for all of the components, not just the
> xen-* packages.
> 
> -Nick

Nick, 

I uninstalled all the xen packages, including all the supporting virt
stuff. I installed a newer kernel-xen and kernel-source. I copied xen.gz
from 3.4.1 to /boot and then booted the new kernel. 

When I try to make dist on 3.4.1 it errors out saying it can't find the
source files:
make[2]: Entering directory `/install/xen-3.4.1'
set -e ; \
if [ ! -e linux-2.6.18-xen.hg/.hg ] ; then \
    __repo=$(sh buildconfigs/select-repository
linux-2.6.18-xen.hg .:..) ; \
    if [ -d ${__repo} ] ; then \
        echo "Linking ${__repo} to linux-2.6.18-xen.hg." ; \
        ln -s ${__repo} linux-2.6.18-xen.hg ; \
    else \
        echo "Cloning ${__repo} to linux-2.6.18-xen.hg." ; \
        hg clone ${__repo#file://} linux-2.6.18-xen.hg ; \
    fi ; \
else \
    __parent=$(hg -R linux-2.6.18-xen.hg path default) ; \
    echo "Pulling changes from ${__parent} into linux-2.6.18-xen.hg." ;
\
    hg -R linux-2.6.18-xen.hg pull ${__parent} ; \
fi
select-repository: Searching `.:..' for linux-2.6.18-xen.hg
select-repository: Ignoring `.'
Unable to determine path to Linux source tree.
Falling back to linux-2.6.18-xen Mercurial repository.
Cloning http://xenbits.xensource.com/linux-2.6.18-xen.hg to
linux-2.6.18-xen.hg.
/bin/sh: hg: command not found
make[2]: *** [linux-2.6.18-xen.hg/.valid-src] Error 127
make[2]: Leaving directory `/install/xen-3.4.1'
make[1]: *** [linux-2.6-xen-install] Error 2
make[1]: Leaving directory `/install/xen-3.4.1'
make: *** [install-kernels] Error 1

I think it's looking at the wrong kernel. I'm running
2.6.16.60-0.42.5-xen with the source at /usr/src/linux, but it seems to
be looking for 2.6.18-xen. Do I need to install that specific kernel?

If I do need 2.6.18-xen, where do I get it? Looking at kernel.org but
not finding it. 

Thanks,
James


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