From: Dan Magenheimer Subject: RE: Re: is the xen toolstack backwards compatible ? Date: Wed, 9 Dec 2009 07:14:57 -0800 (PST) Message-ID: <4551c0d6-a01a-46f0-8850-10282e069b8c@default> References: <200912091242.37437.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200912091242.37437.Christoph.Egger@amd.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: Christoph Egger , Sander Eikelenboom Cc: xen-devel@lists.xensource.com, Keir Fraser List-Id: xen-devel@lists.xenproject.org Hi Christophe -- What is the earliest version of the tools for which this will work? For example, can it be used to switch back and forth between a 3.4.0-based Xen/toolstack and a xen-unstable-based Xen/toolstack on the same machine? If so, I would appreciate more information! Thanks, Dan > -----Original Message----- > From: Christoph Egger [mailto:Christoph.Egger@amd.com] > Sent: Wednesday, December 09, 2009 4:43 AM > To: Sander Eikelenboom > Cc: xen-devel@lists.xensource.com; Keir Fraser > Subject: [Xen-devel] Re: is the xen toolstack backwards compatible ? >=20 >=20 > On Wednesday 09 December 2009 12:25:40 Sander Eikelenboom wrote: > > Hmmm so i could make the paths: > > > > export LD_LIBRARY_PATH=3D"/usr/local/lib/" > > export > >=20 > PYTHONPATH=3D"/usr/local/lib//python2.5/ > site-packages > >" >=20 > > And let a startup script make symlinks to the right tools for the > > hypervisor version that is booted (and perhaps config=20 > files), then the only > > place to worry about hypervisor and kernel version is grub. >=20 > Quite. >=20 > In your case I would compile the tools with=20 > PREFIX=3D"/usr/" > and set >=20 > export LD_LIBRARY_PATH=3D"/usr//lib" > export=20 > PYTHONPATH=3D"/usr//python2.5/site-packages" > export PATH=3D"$PATH:/usr//sbin" >=20 > Then a simple 'xend start' on the command line (or via=20 > startup script) is=20 > enough. >=20 > > But i think it's perhaps not worth the trouble and a bit=20 > ugly to make that > > general, so just drop the idea :-) >=20 > I do that manually and that works great to switch between=20 > different versions > for my development/testing effort. >=20 > Christoph >=20 > > -- > > > > Sander > > > > Wednesday, December 9, 2009, 11:06:58 AM, you wrote: > > > On Wednesday 09 December 2009 08:22:14 Keir Fraser wrote: > > >> On 09/12/2009 00:23, "Sander Eikelenboom"=20 > wrote: > > >> > So if it was no coincidence but desirable, at the=20 > moment xend and > > >> > xentop from unstable don't seem to work on 3.4.2=20 > hypervisor anymore. > > >> > > >> There's no compatibility guarantee across different=20 > major Xen releases. > > >> But Christoph Egger did a lot of work to allow multiple=20 > toolstacks to be > > >> installed side by side. I think you should just need to specify a > > >> PREFIX=3D/path/to value when building the tools. Is that=20 > right, Christoph? > > > > > > Yes, this is right. > > > *Before* you start xend, you need to set two environment variables > > > LD_LIBRARY_PATH and PYTHONPATH. > > > > > > Here is an example for PREFIX=3D"/usr/local" and compiled=20 > with python 2.5: > > > > > > export LD_LIBRARY_PATH=3D"/usr/local/lib" > > > export PYTHONPATH=3D"/usr/local/lib/python2.5/site-packages" > > > > > > If these are not set correct, python tells you it can't=20 > find its modules > > > or the dynamic linker tells you it can't find the shared=20 > libs built from > > > tools/libxc. > > > > > > You should use the same python version you compiled with. > > > If you are on a machine where 'python' does not exist as=20 > a symbolic link > > > to the installed python version (like me on NetBSD) you=20 > need the attached > > > patch or all python programs installed with "INSTALL_PYTHON_PROG" > > > end up with '#!' in the first line instead of=20 > '#!/path/to/python2.5' > > > which is stupid. > > > > > > I already submitted attached patch earlier but Ian=20 > Jackson objected it > > > because he wants a way to have tools working with a=20 > different python > > > version than it has been compiled with. This sounds=20 > obscure to me when > > > looking at the path python modules get installed to. > > > > > > Keir: Please take attached patch. This is better than the current > > > situation regardless Ian likes it or not. In the latter=20 > case taking the > > > patch should motivate him to come up with a patch finally. :) > > > > > > Again: > > > Signed-off-by: Christoph Egger >=20 >=20 >=20 > --=20 > ---to satisfy European Law for business letters: > Advanced Micro Devices GmbH > Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen > Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni > Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen > Registergericht Muenchen, HRB Nr. 43632 >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >