James Pifer
2009-Oct-21 16:37 UTC
[Xen-users] should packages be removed before installing xen from source?
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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nick Couchman
2009-Oct-21 17:48 UTC
Re: [Xen-users] should packages be removed before installing xen from source?
>>> On 2009/10/21 at 10:37, James Pifer <jep@obrien-pifer.com> 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, > JamesYes, 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 -------- 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 Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Pifer
2009-Oct-21 20:17 UTC
Re: [Xen-users] should packages be removed before installing xen from source?
On Wed, 2009-10-21 at 11:48 -0600, Nick Couchman wrote:> >>> On 2009/10/21 at 10:37, James Pifer <jep@obrien-pifer.com> 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. > > -NickNick, 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@lists.xensource.com http://lists.xensource.com/xen-users
James Pifer
2009-Oct-21 20:23 UTC
Re: [Xen-users] should packages be removed before installing xen from source?
On Wed, 2009-10-21 at 11:48 -0600, Nick Couchman wrote:> >>> On 2009/10/21 at 10:37, James Pifer <jep@obrien-pifer.com> 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 > >Oops, I see it right on the xen.org website sorry. Downloading it now... James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Pifer
2009-Oct-22 12:28 UTC
Re: [Xen-users] should packages be removed before installing xen from source?
On Wed, 2009-10-21 at 16:23 -0400, James Pifer wrote:> On Wed, 2009-10-21 at 11:48 -0600, Nick Couchman wrote: > > >>> On 2009/10/21 at 10:37, James Pifer <jep@obrien-pifer.com> 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 > > > > >I installed the new 2.6.18-xen kernel. I did: make menuconfig (basically took defaults) make dist make install This updated /boot/grub/menu.lst. When I try and boot the new kernel I get his error: Error 13: Invalid or unsupported executable format If you google this you get 1000''s of hits, most seem to have something to do with windows. Anybody know how to fix this for my situation? Thanks, James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Pifer
2009-Oct-22 13:08 UTC
Re: [Xen-users] should packages be removed before installing xen from source?
On Thu, 2009-10-22 at 15:00 +0200, Paweł Brodacki wrote:> 2009/10/22 James Pifer <jep@obrien-pifer.com>: > > > > I installed the new 2.6.18-xen kernel. I did: > > make menuconfig (basically took defaults) > > make dist > > make install > > > > This updated /boot/grub/menu.lst. When I try and boot the new kernel I > > get his error: > > > > Error 13: Invalid or unsupported executable format > > > > If you google this you get 1000''s of hits, most seem to have something > > to do with windows. Anybody know how to fix this for my situation? > > > > Thanks, > > James > > > > A shot in the dark (I''m very green Xen-wise) -- different format of > the kernel executable? What does > file /path/to/kernel > say about your newest kernel and what about the one you used to boot from? > > Regards, > PawełThey appear to be the same type: # file vmlinuz-2.6.18.8-xen vmlinuz-2.6.18.8-xen: gzip compressed data, from Unix, max compression # file vmlinuz-2.6.16.60-0.42.5-xen vmlinuz-2.6.16.60-0.42.5-xen: gzip compressed data, from Unix, max compression James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nick Couchman
2009-Oct-22 13:24 UTC
Re: [Xen-users] should packages be removed before installing xen from source?
>>> On 2009/10/21 at 14:17, James Pifer <jep@obrien-pifer.com> wrote: > On Wed, 2009-10-21 at 11:48 -0600, Nick Couchman wrote: >> >>> On 2009/10/21 at 10:37, James Pifer <jep@obrien-pifer.com>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 installingfrom>> > source? >> > >> > Thanks, >> > James >> >> Yes, you will almost certainly need to do this, as the locationsfor>> source file installation and the packages are different, and thiscan>> lead to (and has led to, in my experience) Xen getting confusedabout>> which Python files it needs to run. Removing the Xen packagesshould>> help resolve these issues. Once caveat to this is that you'll >> probably have to build *everything* - packages like virt-managerand>> libvirt require the Xen packages to be installed, so you shouldeither>> plan on building new Xen packages and installing those, or makingsure>> you download and compile code for all of the components, not justthe>> xen-* packages. >> >> -Nick > > Nick, > > I uninstalled all the xen packages, including all the supportingvirt> stuff. I installed a newer kernel-xen and kernel-source. I copiedxen.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 findthe> 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 seemsto> be looking for 2.6.18-xen. Do I need to install that specifickernel?> > If I do need 2.6.18-xen, where do I get it? Looking at kernel.orgbut> not finding it. > > Thanks, > JamesIt'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. -Nick -------- 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 Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Pifer
2009-Oct-22 15:52 UTC
Re: [Xen-users] should packages be removed before installing xen from source?
On Thu, 2009-10-22 at 07:24 -0600, Nick Couchman wrote:> >>> On 2009/10/21 at 14:17, James Pifer <jep@obrien-pifer.com> wrote: > > On Wed, 2009-10-21 at 11:48 -0600, Nick Couchman wrote: > >> >>> On 2009/10/21 at 10:37, James Pifer <jep@obrien-pifer.com> > 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 > > 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. > > -Nick >So you''re saying I can build xen-3.4.1 with the current running kernel? In this case it''s 2.6.16.60-0.42.5-xen. Where can I find the make commands you are referring to? Thanks, James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users