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/
Home Products Support Community News


Re: [Xen-users] should packages be removed before installing xen from so

To: <xen-users@xxxxxxxxxxxxxxxxxxx>, "James Pifer" <jep@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] should packages be removed before installing xen from source?
From: "Nick Couchman" <Nick.Couchman@xxxxxxxxx>
Date: Thu, 22 Oct 2009 07:24:11 -0600
Delivery-date: Thu, 22 Oct 2009 06:25:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
>>> On 2009/10/21 at 14:17, James Pifer <jep@xxxxxxxxxxxxxxxx> wrote:
> On Wed, 2009-10-21 at 11:48 -0600, Nick Couchman wrote:
>> >>> On 2009/10/21 at 10:37, James Pifer <jep@xxxxxxxxxxxxxxxx>
>> > 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
>> > source?
>> > 
>> > Thanks,
>> > James
>> Yes, you will almost certainly need to do this, as the locations
>> source file installation and the packages are different, and this
>> lead to (and has led to, in my experience) Xen getting confused
>> which Python files it needs to run.  Removing the Xen packages
>> help resolve these issues.  Once caveat to this is that you'll
>> probably have to build *everything* - packages like virt-manager
>> libvirt require the Xen packages to be installed, so you should
>> plan on building new Xen packages and installing those, or making
>> you download and compile code for all of the components, not just
>> xen-* packages.
>> -Nick
> Nick, 
> I uninstalled all the xen packages, including all the supporting
> stuff. I installed a newer kernel-xen and kernel-source. I copied
> 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
> 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
> with the source at /usr/src/linux, but it seems
> be looking for 2.6.18-xen. Do I need to install that specific
> If I do need 2.6.18-xen, where do I get it? Looking at kernel.org
> not finding it. 
> Thanks,
> James

It's actually looking for the Mercurial command so that it can download
the latest version of the Linux 2.6.18 kernel from the repository.  You
can either download the source yourself, download the Mercurial and have
it download the source, or you can use various arguments to the make
command to avoid building the Xen/Linux kernel at all.


This e-mail may contain confidential and privileged material for the sole use 
of the intended recipient.  If this email is not intended for you, or you are 
not responsible for the delivery of this message to the intended recipient, 
please note that this message may contain SEAKR Engineering (SEAKR) 
Privileged/Proprietary Information.  In such a case, you are strictly 
prohibited from downloading, photocopying, distributing or otherwise using this 
message, its contents or attachments in any way.  If you have received this 
message in error, please notify us immediately by replying to this e-mail and 
delete the message from your mailbox.  Information contained in this message 
that does not relate to the business of SEAKR is neither endorsed by nor 
attributable to SEAKR.
Xen-users mailing list