is the xen toolstack backwards compatible ?
Hello Keir,
Perhaps it was coincidence, but if i remember well, booting a 3.4.* hypervisor with the toolstack from a newer xen version (aka xen-unstable) seemed to work. The thing is, default a xen build installs the different hypervisor versions beside each other, and you can use them as such in your grub config, the same with kernels. But the toolstack (xend, xm, xentop etc.) gets overwritten. So after trying out a new hypervisor, you have to reinstall your old toolstack before booting in a older hypervisor.
So if it was no coincidence but desirable, at the moment xend and xentop from unstable don't seem to work on 3.4.2 hypervisor anymore.
Signature · 2 lines
Best regards, Sander mailto:[email protected]
On a separate thread, I've observed that the toolstack incompatibility seems to appear between c/s 20070 and 20072. I don't think backwards compatibility is guaranteed but I agree it is desirable when possible.
Quoted 34 lines
-----Original Message-----
From: Sander Eikelenboom [mailto:[email protected]]
Sent: Tuesday, December 08, 2009 5:23 PM
To: Keir Fraser
Cc: [email protected]
Subject: [Xen-devel] is the xen toolstack backwards compatible ?Hello Keir,
Perhaps it was coincidence, but if i remember well, booting a 3.4.* hypervisor with the toolstack from a newer xen version (aka xen-unstable) seemed to work.
The thing is, default a xen build installs the different hypervisor versions beside each other, and you can use them as such in your grub config, the same with kernels. But the toolstack (xend, xm, xentop etc.) gets overwritten. So after trying out a new hypervisor, you have to reinstall your old toolstack before booting in a older hypervisor.So if it was no coincidence but desirable, at the moment xend and xentop from unstable don't seem to work on 3.4.2 hypervisor anymore.
Signature · 8 lines
Best regards, Sander mailto:[email protected] _______________________________________________ Xen-devel mailing list [email protected] http://lists.xensource.com/xen-devel
Quoted 4 lines · Dan Magenheimer
On a separate thread, I've observed that the toolstack incompatibility seems to appear between c/s 20070 and 20072. I don't think backwards compatibility is guaranteed but I agree it is desirable when possible.
I don't agree with you, and the backward compatibility should be still kept after merging these Csets, and any dom0 or userspace's toolstack changes are not needed for them. :) Xiantao
Quoted 39 lines
Quoted 29 lines
-----Original Message-----
From: Sander Eikelenboom [mailto:[email protected]]
Sent: Tuesday, December 08, 2009 5:23 PM
To: Keir Fraser
Cc: [email protected]
Subject: [Xen-devel] is the xen toolstack backwards compatible ?Hello Keir,
Perhaps it was coincidence, but if i remember well, booting a 3.4.* hypervisor with the toolstack from a newer xen version (aka xen-unstable) seemed to work.
The thing is, default a xen build installs the different hypervisor versions beside each other, and you can use them as such in your grub config, the same with kernels. But the toolstack (xend, xm, xentop etc.) gets overwritten. So after trying out a new hypervisor, you have to reinstall your old toolstack before booting in a older hypervisor.So if it was no coincidence but desirable, at the moment xend and xentop from unstable don't seem to work on 3.4.2 hypervisor anymore.
--
Best regards,
Sander mailto:[email protected]Quoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 2 lines · Sander Eikelenboom
So if it was no coincidence but desirable, at the moment xend and xentop from unstable don't seem to work on 3.4.2 hypervisor anymore.
There's no compatibility guarantee across different major Xen releases. But Christoph Egger did a lot of work to allow multiple toolstacks to be installed side by side. I think you should just need to specify a PREFIX=/path/to value when building the tools. Is that right, Christoph?
-- Keir
Quoted 8 lines · On Wednesday 09 December 2009 08:22:14 Keir Fraser wrote:
Quoted 2 lines · Sander Eikelenboom
So if it was no coincidence but desirable, at the moment xend and xentop from unstable don't seem to work on 3.4.2 hypervisor anymore.
There's no compatibility guarantee across different major Xen releases. But Christoph Egger did a lot of work to allow multiple toolstacks to be installed side by side. I think you should just need to specify a PREFIX=/path/to value when building the tools. Is that 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="/usr/local" and compiled with python 2.5:
export LD_LIBRARY_PATH="/usr/local/lib"
export PYTHONPATH="/usr/local/lib/python2.5/site-packages"
If these are not set correct, python tells you it can't find its modules or the dynamic linker tells you it can't find the shared 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 a symbolic link to the installed python version (like me on NetBSD) you need the attached patch or all python programs installed with "INSTALL_PYTHON_PROG"
end up with '#!' in the first line instead of '#!/path/to/python2.5' which is stupid.
I already submitted attached patch earlier but Ian Jackson objected it because he wants a way to have tools working with a different python version than it has been compiled with. This sounds 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 case taking the patch should motivate him to come up with a patch finally. :)
Again:
tools/misc/Makefile +1 -2
@@ -25,8 +25,7 @@ INSTALL_BIN := $(INSTALL_BIN-y) INSTALL_SBIN-y := xm xen-bugtool xen-python-path xend xenperf xsview xenpm xen-tmem-list-parse gtraceview gtracestat INSTALL_SBIN := $(INSTALL_SBIN-y) -DEFAULT_PYTHON_PATH := $(shell $(XEN_ROOT)/tools/python/get-path) -PYTHON_PATH ?= $(DEFAULT_PYTHON_PATH) +PYTHON_PATH := $(shell which $(PYTHON)) INSTALL_PYTHON_PROG = $(XEN_ROOT)/tools/python/install-wrap \ "$(PYTHON_PATH)" $(INSTALL_PROG)
tools/python/get-path deleted +0 -22
@@ -1,22 +0,0 @@ -#! /usr/bin/env bash -set -e - -check () { - set +e - p=`type -p python$v` - r=$? - set -e - if [ $r = 0 ]; then - echo >&2 "${0##*/}: will use #!$p for python programs" - printf "%s\n" "$p" - exit 0 - fi -} - -v="$(python -V 2>&1)" -v="${v#* }" -check -v="${v%.*}" -check -echo >&2 'python version not determined, will use env to find python at runtime' -printf "/usr/bin/env python\n"
tools/python/install-wrap +34 -18
78 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hmmm so i could make the paths:
export LD_LIBRARY_PATH="/usr/local/lib/<xen_hypervisor_version>" export PYTHONPATH="/usr/local/lib/<xen_hypervisor_version>/python2.5/site-packages"
And let a startup script make symlinks to the right tools for the hypervisor version that is booted (and perhaps config files), then the only place to worry about hypervisor and kernel version is grub.
But i think it's perhaps not worth the trouble and a bit ugly to make that general, so just drop the idea :-)
--
Sander
Quoted 41 lines · you
Quoted 8 lines · On Wednesday 09 December 2009 08:22:14 Keir Fraser wrote:
Quoted 2 lines · Sander Eikelenboom
So if it was no coincidence but desirable, at the moment xend and xentop from unstable don't seem to work on 3.4.2 hypervisor anymore.
There's no compatibility guarantee across different major Xen releases. But Christoph Egger did a lot of work to allow multiple toolstacks to be installed side by side. I think you should just need to specify a PREFIX=/path/to value when building the tools. Is that right, Christoph?
Yes, this is right.
*Before* you start xend, you need to set two environment variablesLD_LIBRARY_PATHand PYTHONPATH.Here is an example for PREFIX="/usr/local" and compiled with python 2.5:
export LD_LIBRARY_PATH="/usr/local/lib"
export PYTHONPATH="/usr/local/lib/python2.5/site-packages"If these are not set correct, python tells you it can't find its modules or the dynamic linker tells you it can't find the shared 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 a symbolic link to the installed python version (like me on NetBSD) you need the attached patch or all python programs installed with "INSTALL_PYTHON_PROG"
end up with '#!' in the first line instead of '#!/path/to/python2.5' which is stupid.I already submitted attached patch earlier but Ian Jackson objected it because he wants a way to have tools working with a different python version than it has been compiled with. This sounds 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 case taking the patch should motivate him to come up with a patch finally. :)
Again:
Signed-off-by Christoph Egger <[email protected]>
Signature · 2 lines
Best regards, Sander mailto:[email protected]
Quoted 10 lines · On Wednesday 09 December 2009 12:25:40 Sander Eikelenboom wrote:
Hmmm so i could make the paths:
export LD_LIBRARY_PATH="/usr/local/lib/<xen_hypervisor_version>" export PYTHONPATH="/usr/local/lib/<xen_hypervisor_version>/python2.5/site-packages "
And let a startup script make symlinks to the right tools for the hypervisor version that is booted (and perhaps config files), then the only place to worry about hypervisor and kernel version is grub.
Quite.
In your case I would compile the tools with
PREFIX="/usr/<xen_hypervisor_version>"
and set
export LD_LIBRARY_PATH="/usr/<xen_hypervisor_version>/lib" export PYTHONPATH="/usr/<xen_hypervisor_version>/python2.5/site-packages" export PATH="$PATH:/usr/<xen_hypervisor_version>/sbin"
Then a simple 'xend start' on the command line (or via startup script) is enough.
Quoted 2 lines
But i think it's perhaps not worth the trouble and a bit ugly to make that general, so just drop the idea :-)
I do that manually and that works great to switch between different versions for my development/testing effort.
Christoph
Quoted 46 lines
--
Sander
Quoted 41 lines · you
Quoted 8 lines · On Wednesday 09 December 2009 08:22:14 Keir Fraser wrote:
Quoted 2 lines · Sander Eikelenboom
So if it was no coincidence but desirable, at the moment xend and xentop from unstable don't seem to work on 3.4.2 hypervisor anymore.
There's no compatibility guarantee across different major Xen releases. But Christoph Egger did a lot of work to allow multiple toolstacks to be installed side by side. I think you should just need to specify a PREFIX=/path/to value when building the tools. Is that right, Christoph?
Yes, this is right.
*Before* you start xend, you need to set two environment variablesLD_LIBRARY_PATHand PYTHONPATH.Here is an example for PREFIX="/usr/local" and compiled with python 2.5:
export LD_LIBRARY_PATH="/usr/local/lib"
export PYTHONPATH="/usr/local/lib/python2.5/site-packages"If these are not set correct, python tells you it can't find its modules or the dynamic linker tells you it can't find the shared 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 a symbolic link to the installed python version (like me on NetBSD) you need the attached patch or all python programs installed with "INSTALL_PYTHON_PROG" end up with '#!' in the first line instead of '#!/path/to/python2.5' which is stupid.I already submitted attached patch earlier but Ian Jackson objected it because he wants a way to have tools working with a different python version than it has been compiled with. This sounds 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 case taking the patch should motivate him to come up with a patch finally. :)
Again:
Signed-off-by Christoph Egger <[email protected]>
Signature · 6 lines
---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
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
Quoted 127 lines
-----Original Message-----
From: Christoph Egger [mailto:[email protected]]
Sent: Wednesday, December 09, 2009 4:43 AM
To: Sander Eikelenboom
Cc: [email protected]; Keir Fraser
Subject: [Xen-devel] Re: is the xen toolstack backwards compatible ?Quoted 5 lines · On Wednesday 09 December 2009 12:25:40 Sander Eikelenboom wrote:
Hmmm so i could make the paths:
export LD_LIBRARY_PATH="/usr/local/lib/<xen_hypervisor_version>" export
PYTHONPATH="/usr/local/lib/<xen_hypervisor_version>/python2.5/ site-packages
Quoted 4 lines
"
And let a startup script make symlinks to the right tools for the hypervisor version that is booted (and perhaps config
files), then the only
Quoted 1 line
place to worry about hypervisor and kernel version is grub.
Quite.
In your case I would compile the tools with
PREFIX="/usr/<xen_hypervisor_version>"
and setexport LD_LIBRARY_PATH="/usr/<xen_hypervisor_version>/lib" export PYTHONPATH="/usr/<xen_hypervisor_version>/python2.5/site-packages" export PATH="$PATH:/usr/<xen_hypervisor_version>/sbin"
Then a simple 'xend start' on the command line (or via startup script) is
enough.Quoted 1 line
But i think it's perhaps not worth the trouble and a bit
ugly to make that
Quoted 1 line
general, so just drop the idea :-)
I do that manually and that works great to switch between different versions
for my development/testing effort.Christoph
Quoted 7 lines
--
Sander
Quoted 2 lines · you
Quoted 1 line · On Wednesday 09 December 2009 08:22:14 Keir Fraser wrote:
On 09/12/2009 00:23, "Sander Eikelenboom"
Quoted 1 line · <[email protected]> wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
So if it was no coincidence but desirable, at the
moment xend and
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
xentop from unstable don't seem to work on 3.4.2
hypervisor anymore.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
There's no compatibility guarantee across different
major Xen releases.
Quoted 1 line
Quoted 1 line
Quoted 1 line
But Christoph Egger did a lot of work to allow multiple
toolstacks to be
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
installed side by side. I think you should just need to specify a PREFIX=/path/to value when building the tools. Is that
right, Christoph?
Quoted 6 lines
Quoted 6 lines
Yes, this is right.
*Before* you start xend, you need to set two environment variablesLD_LIBRARY_PATHand PYTHONPATH.Here is an example for PREFIX="/usr/local" and compiled
with python 2.5:
Quoted 5 lines
Quoted 5 lines
export LD_LIBRARY_PATH="/usr/local/lib"
export PYTHONPATH="/usr/local/lib/python2.5/site-packages"If these are not set correct, python tells you it can't
find its modules
Quoted 1 line
Quoted 1 line
or the dynamic linker tells you it can't find the shared
libs built from
Quoted 4 lines
Quoted 4 lines
tools/libxc.You should use the same python version you compiled with. If you are on a machine where 'python' does not exist as
a symbolic link
Quoted 1 line
Quoted 1 line
to the installed python version (like me on NetBSD) you
need the attached
Quoted 2 lines
Quoted 2 lines
patch or all python programs installed with "
INSTALL_PYTHON_PROG" end up with '#!' in the first line instead of'#!/path/to/python2.5'
Quoted 3 lines
Quoted 3 lines
which is stupid.
I already submitted attached patch earlier but Ian
Jackson objected it
Quoted 1 line
Quoted 1 line
because he wants a way to have tools working with a
different python
Quoted 1 line
Quoted 1 line
version than it has been compiled with. This sounds
obscure to me when
Quoted 4 lines
Quoted 4 lines
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
case taking the
Quoted 4 lines
Quoted 4 lines
patch should motivate him to come up with a patch finally. :)
Again:
Signed-off-by Christoph Egger <[email protected]>Signature · 12 lines
---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 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xensource.com/xen-devel
Quoted 3 lines · On Wednesday 09 December 2009 16:14:57 Dan Magenheimer wrote:
Hi Christophe --
What is the earliest version of the tools for which this will work?
Xen-unstable.
Quoted 3 lines
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!
Yes, that is possible. Install Xen-unstable in a different directory than you are "forced" to install Xen 3.4 to.
You can switch forth and back between Xen-unstable and Xen 3.4 by setting the environment variables as described.
Whenever you switch forth and back you have to consider to adapt the guest config files.
Xen 3.4 requires the full path to hvmloader and to qemu-dm while the path is optional in Xen-unstable.
Be sure that the correct hvmloader and qemu-dm is used when you switch.
The same way you can also switch back and forth between Xen 3.3 and Xen-unstable.
Christoph
Quoted 158 lines
Thanks,
DanQuoted 155 lines
-----Original Message-----
From: Christoph Egger [mailto:[email protected]]
Sent: Wednesday, December 09, 2009 4:43 AM
To: Sander Eikelenboom
Cc: [email protected]; Keir Fraser
Subject: [Xen-devel] Re: is the xen toolstack backwards compatible ?Quoted 4 lines · On Wednesday 09 December 2009 12:25:40 Sander Eikelenboom wrote:
Hmmm so i could make the paths:
export LD_LIBRARY_PATH="/usr/local/lib/<xen_hypervisor_version>" export
PYTHONPATH="/usr/local/lib/<xen_hypervisor_version>/python2.5/ site-packages
Quoted 4 lines
"
And let a startup script make symlinks to the right tools for the hypervisor version that is booted (and perhaps config
files), then the only
Quoted 1 line
place to worry about hypervisor and kernel version is grub.
Quite.
In your case I would compile the tools with
PREFIX="/usr/<xen_hypervisor_version>"
and setexport LD_LIBRARY_PATH="/usr/<xen_hypervisor_version>/lib" export PYTHONPATH="/usr/<xen_hypervisor_version>/python2.5/site-packages" export PATH="$PATH:/usr/<xen_hypervisor_version>/sbin"
Then a simple 'xend start' on the command line (or via startup script) is
enough.Quoted 1 line
But i think it's perhaps not worth the trouble and a bit
ugly to make that
Quoted 1 line
general, so just drop the idea :-)
I do that manually and that works great to switch between different versions
for my development/testing effort.Christoph
Quoted 7 lines
--
Sander
Quoted 2 lines · you
Quoted 1 line · On Wednesday 09 December 2009 08:22:14 Keir Fraser wrote:
On 09/12/2009 00:23, "Sander Eikelenboom"
Quoted 1 line · <[email protected]> wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
So if it was no coincidence but desirable, at the
moment xend and
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
xentop from unstable don't seem to work on 3.4.2
hypervisor anymore.
Quoted 1 line
Quoted 1 line
Quoted 1 line
There's no compatibility guarantee across different
major Xen releases.
Quoted 1 line
Quoted 1 line
Quoted 1 line
But Christoph Egger did a lot of work to allow multiple
toolstacks to be
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
installed side by side. I think you should just need to specify a PREFIX=/path/to value when building the tools. Is that
right, Christoph?
Quoted 5 lines
Quoted 5 lines
Yes, this is right.
*Before* you start xend, you need to set two environment variablesLD_LIBRARY_PATHand PYTHONPATH.Here is an example for PREFIX="/usr/local" and compiled
with python 2.5:
Quoted 4 lines
Quoted 4 lines
export LD_LIBRARY_PATH="/usr/local/lib"
export PYTHONPATH="/usr/local/lib/python2.5/site-packages"If these are not set correct, python tells you it can't
find its modules
Quoted 1 line
Quoted 1 line
or the dynamic linker tells you it can't find the shared
libs built from
Quoted 4 lines
Quoted 4 lines
tools/libxc.You should use the same python version you compiled with. If you are on a machine where 'python' does not exist as
a symbolic link
Quoted 1 line
Quoted 1 line
to the installed python version (like me on NetBSD) you
need the attached
Quoted 2 lines
Quoted 2 lines
patch or all python programs installed with "
INSTALL_PYTHON_PROG" end up with '#!' in the first line instead of'#!/path/to/python2.5'
Quoted 3 lines
Quoted 3 lines
which is stupid.
I already submitted attached patch earlier but Ian
Jackson objected it
Quoted 1 line
Quoted 1 line
because he wants a way to have tools working with a
different python
Quoted 1 line
Quoted 1 line
version than it has been compiled with. This sounds
obscure to me when
Quoted 4 lines
Quoted 4 lines
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
case taking the
Quoted 4 lines
Quoted 4 lines
patch should motivate him to come up with a patch finally. :)
Again:
Signed-off-by Christoph Egger <[email protected]>--
---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_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 6 lines
---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
Excellent!
I think it would be a great service for many developers if you could clearly document all the steps on a Xen wiki page. Maybe start with:
"Assume you have a distro-supplied Xen with version < 4.0 installed on your machine and you wish to also build/install either Xen 4.0 or xen-unstable PARALLEL to the distro installation so that you can easily switch between the distro version and the newer version. Follow these steps..."
Thanks,
Dan
Quoted 222 lines
-----Original Message-----
From: Christoph Egger [mailto:[email protected]]
Sent: Wednesday, December 09, 2009 9:57 AM
To: Dan Magenheimer
Cc: Sander Eikelenboom; [email protected]; Keir Fraser
Subject: Re: [Xen-devel] Re: is the xen toolstack backwards compatible ?Quoted 3 lines · On Wednesday 09 December 2009 16:14:57 Dan Magenheimer wrote:
Hi Christophe --
What is the earliest version of the tools for which this will work?
Xen-unstable.
Quoted 3 lines
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!
Yes, that is possible. Install Xen-unstable in a different directory than you are "forced" to install Xen 3.4 to.
You can switch forth and back between Xen-unstable and Xen 3.4 by setting the environment variables as described.
Whenever you switch forth and back you have to consider to adapt the guest config files.
Xen 3.4 requires the full path to hvmloader and to qemu-dm while the path is optional in Xen-unstable.Be sure that the correct hvmloader and qemu-dm is used when you switch.
The same way you can also switch back and forth between Xen 3.3 and Xen-unstable.
Christoph
Quoted 9 lines
Thanks,
DanQuoted 6 lines
-----Original Message-----
From: Christoph Egger [mailto:[email protected]]
Sent: Wednesday, December 09, 2009 4:43 AM
To: Sander Eikelenboom
Cc: [email protected]; Keir Fraser
Subject: [Xen-devel] Re: is the xen toolstack backwardscompatible ?
Quoted 7 lines
Quoted 7 lines · On Wednesday 09 December 2009 12:25:40 Sander Eikelenboom wrote:
Quoted 4 lines
Hmmm so i could make the paths:
export LD_LIBRARY_PATH="/usr/local/lib/<xen_hypervisor_version>" export
Quoted 6 lines
Quoted 6 lines
PYTHONPATH="/usr/local/lib/<xen_hypervisor_version>/python2.5/ site-packages
Quoted 3 lines
"
And let a startup script make symlinks to the right
tools for the
Quoted 52 lines
Quoted 52 lines
Quoted 1 line
hypervisor version that is booted (and perhaps config
files), then the only
Quoted 1 line
place to worry about hypervisor and kernel version is grub.
Quite.
In your case I would compile the tools with
PREFIX="/usr/<xen_hypervisor_version>"
and setexport LD_LIBRARY_PATH="/usr/<xen_hypervisor_version>/lib" export PYTHONPATH="/usr/<xen_hypervisor_version>/python2.5/site-packages" export PATH="$PATH:/usr/<xen_hypervisor_version>/sbin"
Then a simple 'xend start' on the command line (or via startup script) is
enough.Quoted 1 line
But i think it's perhaps not worth the trouble and a bit
ugly to make that
Quoted 1 line
general, so just drop the idea :-)
I do that manually and that works great to switch between different versions
for my development/testing effort.Christoph
Quoted 7 lines
--
Sander
Quoted 2 lines · you
Quoted 1 line · On Wednesday 09 December 2009 08:22:14 Keir Fraser wrote:
On 09/12/2009 00:23, "Sander Eikelenboom"
Quoted 1 line · <[email protected]> wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
So if it was no coincidence but desirable, at the
moment xend and
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
xentop from unstable don't seem to work on 3.4.2
hypervisor anymore.
Quoted 1 line
Quoted 1 line
Quoted 1 line
There's no compatibility guarantee across different
Quoted 7 lines
Quoted 7 lines
major Xen releases.
Quoted 1 line
Quoted 1 line
Quoted 1 line
But Christoph Egger did a lot of work to allow multiple
toolstacks to be
Quoted 1 line
Quoted 1 line
Quoted 1 line
installed side by side. I think you should just need
to specify a
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
PREFIX=/path/to value when building the tools. Is that
right, Christoph?
Quoted 2 lines
Quoted 2 lines
Yes, this is right.
*Before* you start xend, you need to set twoenvironment variables
Quoted 21 lines
Quoted 21 lines
Quoted 3 lines
Quoted 3 lines
LD_LIBRARY_PATHand PYTHONPATH.Here is an example for PREFIX="/usr/local" and compiled
with python 2.5:
Quoted 4 lines
Quoted 4 lines
export LD_LIBRARY_PATH="/usr/local/lib"
export PYTHONPATH="/usr/local/lib/python2.5/site-packages"If these are not set correct, python tells you it can't
find its modules
Quoted 1 line
Quoted 1 line
or the dynamic linker tells you it can't find the shared
libs built from
Quoted 4 lines
Quoted 4 lines
tools/libxc.You should use the same python version you compiled with. If you are on a machine where 'python' does not exist as
Quoted 7 lines
Quoted 7 lines
a symbolic link
Quoted 1 line
Quoted 1 line
to the installed python version (like me on NetBSD) you
need the attached
Quoted 1 line
Quoted 1 line
patch or all python programs installed with
"
INSTALL_PYTHON_PROG"Quoted 14 lines
Quoted 14 lines
Quoted 1 line
Quoted 1 line
end up with '#!' in the first line instead of
'#!/path/to/python2.5'
Quoted 3 lines
Quoted 3 lines
which is stupid.
I already submitted attached patch earlier but Ian
Jackson objected it
Quoted 1 line
Quoted 1 line
because he wants a way to have tools working with a
different python
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
version than it has been compiled with. This sounds
obscure to me when
Quoted 3 lines
Quoted 3 lines
looking at the path python modules get installed to.
Keir: Please take attached patch. This is better than
the current
Quoted 22 lines
Quoted 22 lines
Quoted 1 line
Quoted 1 line
situation regardless Ian likes it or not. In the latter
case taking the
Quoted 4 lines
Quoted 4 lines
patch should motivate him to come up with a patch finally. :)
Again:
Signed-off-by Christoph Egger <[email protected]>--
---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_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develSignature · 12 lines
---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 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xensource.com/xen-devel