* Question about the best practice to install two versions of Xen toolstack on the same machine @ 2016-05-19 18:40 Meng Xu 2016-05-20 8:52 ` Olaf Hering 2016-05-20 10:20 ` Jan Beulich 0 siblings, 2 replies; 13+ messages in thread From: Meng Xu @ 2016-05-19 18:40 UTC (permalink / raw) To: xen-devel@lists.xenproject.org Hi all, I'm trying to install two versions of Xen, say Xen 4.6 and Xen 4.7-unstable, onto the same machine. I want them to exist at the same time, instead of letting one override the other. I'm thinking about this because sometimes I want to try out someone else's code which uses an older or newer version. But I also want to keep my current version of Xen toolstack so that I won't need to reinstall everything again later. If I just use the following command, the new installation of the toolstack will override the old version's toolstack. obviously: $./configure $make dist $sudo make install (Right now, I just have to recompile my code after I tried out someone else's code that has a different version. I can keep two version of Xen kernel and configure it in the grub2 entries. But I have to reinstall the toolstack.) My quick question is: Does anyone try to install two version of Xen toolstack on the same machine? Is there any documentation about the best practice to install two versions of Xen onto the same machine? --- I had a look at the ./configure's help. There are several options, each of which can specify a specific path to install. However, I'm not that sure if I should configure every option to make it work. For example, it has --prefix and --exec-prefix to change the PREFIX from /usr/local to user defined path. However, there is also --bindir and --sbindir; I assume I should change it, should I? In addition, should I specify the --libexecdir for the program executables? I found one very old link at [1], but I doubt if it's still working since Xen changes the toolstack a lot since Xen 4.1 http://old-list-archives.xenproject.org/xen-users/2009-09/msg00263.html Thanks and Best Regards, Meng ----------- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Question about the best practice to install two versions of Xen toolstack on the same machine 2016-05-19 18:40 Question about the best practice to install two versions of Xen toolstack on the same machine Meng Xu @ 2016-05-20 8:52 ` Olaf Hering 2016-05-20 17:52 ` Meng Xu 2016-05-24 20:47 ` Meng Xu 2016-05-20 10:20 ` Jan Beulich 1 sibling, 2 replies; 13+ messages in thread From: Olaf Hering @ 2016-05-20 8:52 UTC (permalink / raw) To: Meng Xu; +Cc: xen-devel@lists.xenproject.org On Thu, May 19, Meng Xu wrote: > Does anyone try to install two version of Xen toolstack on the same machine? I do that. See the INSTALL file which has examples at the end: * To build a private copy of tools and xen: configure --prefix=/odd/path --sysconfdir=/odd/path/etc --enable-rpath make sudo make install BOOT_DIR=/ood/path/boot EFI_DIR=/odd/path/efi Note that pygrub has no concept of "rpath". Use pvgrub2 instead. Olaf _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Question about the best practice to install two versions of Xen toolstack on the same machine 2016-05-20 8:52 ` Olaf Hering @ 2016-05-20 17:52 ` Meng Xu 2016-05-24 20:47 ` Meng Xu 1 sibling, 0 replies; 13+ messages in thread From: Meng Xu @ 2016-05-20 17:52 UTC (permalink / raw) To: Olaf Hering; +Cc: xen-devel@lists.xenproject.org On Fri, May 20, 2016 at 4:52 AM, Olaf Hering <olaf@aepfle.de> wrote: > On Thu, May 19, Meng Xu wrote: > >> Does anyone try to install two version of Xen toolstack on the same machine? > > I do that. See the INSTALL file which has examples at the end: > > * To build a private copy of tools and xen: > configure --prefix=/odd/path --sysconfdir=/odd/path/etc --enable-rpath > make > sudo make install BOOT_DIR=/ood/path/boot EFI_DIR=/odd/path/efi > > Note that pygrub has no concept of "rpath". Use pvgrub2 instead. Thank you so much, Olaf! I will try it out. :-) Best Regards, Meng -- Best Regards, Meng ----------- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Question about the best practice to install two versions of Xen toolstack on the same machine 2016-05-20 8:52 ` Olaf Hering 2016-05-20 17:52 ` Meng Xu @ 2016-05-24 20:47 ` Meng Xu 2016-05-25 10:53 ` Wei Liu 1 sibling, 1 reply; 13+ messages in thread From: Meng Xu @ 2016-05-24 20:47 UTC (permalink / raw) To: Olaf Hering, Dongli Zhang; +Cc: xen-devel@lists.xenproject.org Hi Olaf, Thank you very much for your suggestion! On Fri, May 20, 2016 at 4:52 AM, Olaf Hering <olaf@aepfle.de> wrote: > On Thu, May 19, Meng Xu wrote: > >> Does anyone try to install two version of Xen toolstack on the same machine? > > I do that. See the INSTALL file which has examples at the end: > > * To build a private copy of tools and xen: > configure --prefix=/odd/path --sysconfdir=/odd/path/etc --enable-rpath > make > sudo make install BOOT_DIR=/ood/path/boot EFI_DIR=/odd/path/efi > I'm wondering if BOOT_DIR=/ood/path/boot and EFI_DIR=/odd/path/efi is a must? I'm using the grub2 to boot the kernel (so that I can remotely control which grub entry I will get into). I put the xen image to /boot and the system can boot up. The xl toolstack seems working well. However, the dom0's name is null. When I run /ood/path/etc/init.d/xencommons restart , it reports the following message: Stopping xenconsoled Stopping QEMU WARNING: Not stopping xenstored, as it cannot be restarted. Starting xenconsoled... Starting QEMU as disk backend for dom0 I guess there is something wrong with the xenstored's configuration? Did you happen to experience this issue before? Thanks and Best Regards, Meng ----------- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Question about the best practice to install two versions of Xen toolstack on the same machine 2016-05-24 20:47 ` Meng Xu @ 2016-05-25 10:53 ` Wei Liu 2016-05-25 20:02 ` Meng Xu 0 siblings, 1 reply; 13+ messages in thread From: Wei Liu @ 2016-05-25 10:53 UTC (permalink / raw) To: Meng Xu; +Cc: Dongli Zhang, xen-devel@lists.xenproject.org, Olaf Hering, Wei Liu On Tue, May 24, 2016 at 04:47:38PM -0400, Meng Xu wrote: > Hi Olaf, > > Thank you very much for your suggestion! > > On Fri, May 20, 2016 at 4:52 AM, Olaf Hering <olaf@aepfle.de> wrote: > > On Thu, May 19, Meng Xu wrote: > > > >> Does anyone try to install two version of Xen toolstack on the same machine? > > > > I do that. See the INSTALL file which has examples at the end: > > > > * To build a private copy of tools and xen: > > configure --prefix=/odd/path --sysconfdir=/odd/path/etc --enable-rpath > > make > > sudo make install BOOT_DIR=/ood/path/boot EFI_DIR=/odd/path/efi > > > > I'm wondering if BOOT_DIR=/ood/path/boot and EFI_DIR=/odd/path/efi is a must? > I'm using the grub2 to boot the kernel (so that I can remotely control > which grub entry I will get into). > > I put the xen image to /boot and the system can boot up. The xl > toolstack seems working well. > > However, the dom0's name is null. > > When I run /ood/path/etc/init.d/xencommons restart , it reports the > following message: > > Stopping xenconsoled > Stopping QEMU > WARNING: Not stopping xenstored, as it cannot be restarted. > Starting xenconsoled... > Starting QEMU as disk backend for dom0 > > I guess there is something wrong with the xenstored's configuration? > Did you happen to experience this issue before? > > I think xenstored is running fine. If you're using systemd, there should be a service called xen-init-dom0 that needs to be started. That small program does a bunch of things including setting the name for Dom0 in xenstore. Wei. > Thanks and Best Regards, > > Meng > ----------- > Meng Xu > PhD Student in Computer and Information Science > University of Pennsylvania > http://www.cis.upenn.edu/~mengxu/ > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Question about the best practice to install two versions of Xen toolstack on the same machine 2016-05-25 10:53 ` Wei Liu @ 2016-05-25 20:02 ` Meng Xu 0 siblings, 0 replies; 13+ messages in thread From: Meng Xu @ 2016-05-25 20:02 UTC (permalink / raw) To: Wei Liu; +Cc: Dongli Zhang, xen-devel@lists.xenproject.org, Olaf Hering Hi Wei, On Wed, May 25, 2016 at 6:53 AM, Wei Liu <wei.liu2@citrix.com> wrote: > On Tue, May 24, 2016 at 04:47:38PM -0400, Meng Xu wrote: >> Hi Olaf, >> >> Thank you very much for your suggestion! >> >> On Fri, May 20, 2016 at 4:52 AM, Olaf Hering <olaf@aepfle.de> wrote: >> > On Thu, May 19, Meng Xu wrote: >> > >> >> Does anyone try to install two version of Xen toolstack on the same machine? >> > >> > I do that. See the INSTALL file which has examples at the end: >> > >> > * To build a private copy of tools and xen: >> > configure --prefix=/odd/path --sysconfdir=/odd/path/etc --enable-rpath >> > make >> > sudo make install BOOT_DIR=/ood/path/boot EFI_DIR=/odd/path/efi >> > >> >> I'm wondering if BOOT_DIR=/ood/path/boot and EFI_DIR=/odd/path/efi is a must? >> I'm using the grub2 to boot the kernel (so that I can remotely control >> which grub entry I will get into). >> >> I put the xen image to /boot and the system can boot up. The xl >> toolstack seems working well. >> >> However, the dom0's name is null. >> >> When I run /ood/path/etc/init.d/xencommons restart , it reports the >> following message: >> >> Stopping xenconsoled >> Stopping QEMU >> WARNING: Not stopping xenstored, as it cannot be restarted. >> Starting xenconsoled... >> Starting QEMU as disk backend for dom0 >> >> I guess there is something wrong with the xenstored's configuration? >> Did you happen to experience this issue before? >> >> > > I think xenstored is running fine. > > If you're using systemd, there should be a service called xen-init-dom0 > that needs to be started. That small program does a bunch of things > including setting the name for Dom0 in xenstore. Yes, you are right! After running xen-init-dom0, everything works now. BTW, I followed Olaf and Dongli's approach. I'm writing the wiki now... -- Best Regards, Meng ----------- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Question about the best practice to install two versions of Xen toolstack on the same machine 2016-05-19 18:40 Question about the best practice to install two versions of Xen toolstack on the same machine Meng Xu 2016-05-20 8:52 ` Olaf Hering @ 2016-05-20 10:20 ` Jan Beulich 2016-05-20 17:56 ` Meng Xu 1 sibling, 1 reply; 13+ messages in thread From: Jan Beulich @ 2016-05-20 10:20 UTC (permalink / raw) To: Meng Xu; +Cc: xen-devel@lists.xenproject.org >>> On 19.05.16 at 20:40, <mengxu@cis.upenn.edu> wrote: > Does anyone try to install two version of Xen toolstack on the same machine? > Is there any documentation about the best practice to install two > versions of Xen onto the same machine? Or, as an alternative to Olaf's reply, don't install the tools at all, but instead run everything right out of the build trees. That requires some script wrappers to get things like the library search path set up correctly, but with that in place it has been working fine for me for years. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Question about the best practice to install two versions of Xen toolstack on the same machine 2016-05-20 10:20 ` Jan Beulich @ 2016-05-20 17:56 ` Meng Xu 2016-05-23 7:02 ` Jan Beulich 2016-05-24 15:16 ` Dario Faggioli 0 siblings, 2 replies; 13+ messages in thread From: Meng Xu @ 2016-05-20 17:56 UTC (permalink / raw) To: Jan Beulich; +Cc: xen-devel@lists.xenproject.org Hi Jan, On Fri, May 20, 2016 at 6:20 AM, Jan Beulich <JBeulich@suse.com> wrote: >>>> On 19.05.16 at 20:40, <mengxu@cis.upenn.edu> wrote: >> Does anyone try to install two version of Xen toolstack on the same machine? >> Is there any documentation about the best practice to install two >> versions of Xen onto the same machine? > > Or, as an alternative to Olaf's reply, don't install the tools at all, but > instead run everything right out of the build trees. That requires some > script wrappers to get things like the library search path set up > correctly, but with that in place it has been working fine for me for > years. > Thank you so much for your suggestions! I tried to add the library and bins in xen/dist/install into the PATH and LD_LIBRARY_PATH, but failed to have the system work properly. I'm wondering if it's convenient for you, would you mind sharing your script wrapper? I can learn from it and customize it for my machine. Once I have it set up successfully, I can write a xen wiki to describe how to do it. Thank you again for your time and help! Best Regards, Meng ----------- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Question about the best practice to install two versions of Xen toolstack on the same machine 2016-05-20 17:56 ` Meng Xu @ 2016-05-23 7:02 ` Jan Beulich 2016-05-24 8:12 ` Dongli Zhang 2016-05-24 15:16 ` Dario Faggioli 1 sibling, 1 reply; 13+ messages in thread From: Jan Beulich @ 2016-05-23 7:02 UTC (permalink / raw) To: Meng Xu; +Cc: xen-devel@lists.xenproject.org [-- Attachment #1: Type: text/plain, Size: 1315 bytes --] >>> On 20.05.16 at 19:56, <mengxu@cis.upenn.edu> wrote: > On Fri, May 20, 2016 at 6:20 AM, Jan Beulich <JBeulich@suse.com> wrote: >>>>> On 19.05.16 at 20:40, <mengxu@cis.upenn.edu> wrote: >>> Does anyone try to install two version of Xen toolstack on the same machine? >>> Is there any documentation about the best practice to install two >>> versions of Xen onto the same machine? >> >> Or, as an alternative to Olaf's reply, don't install the tools at all, but >> instead run everything right out of the build trees. That requires some >> script wrappers to get things like the library search path set up >> correctly, but with that in place it has been working fine for me for >> years. >> > > Thank you so much for your suggestions! I tried to add the library > and bins in xen/dist/install into the PATH and LD_LIBRARY_PATH, but > failed to have the system work properly. > > I'm wondering if it's convenient for you, would you mind sharing your > script wrapper? I can learn from it and customize it for my machine. Sure, here you go. For commands other then "xl" it ought to be hard linked to respective other names. I cannot easily tell whether it makes assumptions on settings done elsewhere in my systems, so don't put too high hopes into being able to use it as is. Jan [-- Attachment #2: xl --] [-- Type: application/octet-stream, Size: 4908 bytes --] #!/bin/sh if [ $UID = 0 ] then usr=$root/usr if [ -d $usr/local/sbin ] then usr=$usr/local elif [ ! -d "$usr/sbin" ] then echo "'$usr/sbin' does not exist" >&2 exit 1 fi what=$(basename $0) if [ $what = xend -a "$1" = start ] then killall blktapctrl killall xenconsoled : killall xenstored : export XENSTORED_TRACE=1 fi for m in {,xen-}{evtchn,gntdev,privcmd} do modinfo -F xyz $m 2>/dev/null || continue if [ -n "${m##xen-*}" ] then modprobe $m else modprobe --allow-unsupported $m fi done lib=$usr/lib test ! -d ${lib}64 || lib=${lib}64 export PATH=$usr/sbin:$usr/bin:/sbin:/usr/sbin${PATH+:}$PATH export LD_LIBRARY_PATH=$lib${LD_LIBRARY_PATH+:}$LD_LIBRARY_PATH python=$(echo $lib/python*) test -d $python/site-packages && python=$python/site-packages export PYTHONPATH=$python${PYTHONPATH+:}$PYTHONPATH export FSIMAGE_FSDIR=$lib/fs if [ $what = xend -a "${1#re}" = start -o $what = xl ] then test -f /etc/sysconfig/xencommons && . /etc/sysconfig/xencommons if [ -z "$(ps -U root | grep xenstored)" ] then echo -n "Starting xenstored..." test -z "$XENSTORED_ROOTDIR" || XENSTORED_ROOTDIR=/var/lib/xenstored rm -f "$XENSTORED_ROOTDIR"/tdb* /var/run/xenstore*.pid test -z "$XENSTORED_TRACE" || XENSTORED_ARGS=" -T /var/log/xen/xenstored-trace.log" $usr/sbin/xenstored --pid-file=/var/run/xenstored.pid $XENSTORED_ARGS while ! $usr/bin/xenstore-read -s / >/dev/null 2>&1; do echo -n . sleep 1 done echo if [ -x $usr/lib/xen/bin/xen-init-dom0 ] then $usr/lib/xen/bin/xen-init-dom0 else $usr/bin/xenstore-write /local/domain/0/name Domain-0 $usr/bin/xenstore-write /local/domain/0/domid 0 fi ln /var/run/xenstore{d,}.pid if [ -x $(dirname $0)/vf-addr.sh ] then $(dirname $0)/vf-addr.sh /sbin/modprobe pciback fi elif [ -r /var/run/xenstore.pid -a ! -e /var/run/xenstored.pid ] then ln /var/run/xenstore{,d}.pid fi if [ -z "$(ps -U root | grep xenconsoled)" ] then echo "Starting xenconsoled..." rm -f /var/run/xenconsoled.pid test -z "$XENCONSOLED_TRACE" || XENCONSOLED_ARGS=" -T /var/log/xen/xenconsoled-trace.log" $usr/sbin/xenconsoled --pid-file=/var/run/xenconsoled.pid $XENCONSOLED_ARGS fi : "${QEMU_XEN:=$usr/lib/xen/bin/qemu-system-i386}" if [ $what = xl -a "${1%%-*}" = block -a -x "$QEMU_XEN" -a -z "$(ps -U root | grep ' qemu-[sd][ym]')" ] then echo "Starting '$QEMU_XEN' as disk backend for Dom0" "$QEMU_XEN" -xen-domid 0 -xen-attach -name dom0 -nographic -M xenpv -daemonize -monitor /dev/null -serial /dev/null -parallel /dev/null fi elif [ $what = xen-mceinj ] then exec ${root%/*/*}/tools/tests/mce-test/tools/$what "$@" fi test -x $usr/sbin/$what && exec $usr/sbin/$what "$@" test -x $usr/sbin/$what.py && exec python $usr/sbin/$what.py "$@" test -x $usr/lib/xen/bin/$what && exec $usr/lib/xen/bin/$what "$@" test -x $lib/xen/bin/$what && exec $lib/xen/bin/$what "$@" exec "$usr/bin/xenstore-$@" fi if [ -z "$ver" ] then if [ ! -r /sys/hypervisor/properties/changeset ] then echo "Not running on Xen?" >&2 exit 1 fi cs="$(</sys/hypervisor/properties/changeset)" for i in ~/build/xen/{*-svn/*/ChangeLog,*-hg/*/.tip} do test -d ${i%/*}/dist/install/usr/local/sbin -o -d ${i%/*}/dist/install/usr/sbin || continue this_cs=$(sed -n 's,^changeset: *\([^:]*\):[[:xdigit:]]*$,\1,p' $i) if [ -z "$this_cs" ] then # This first branch can get removed eventually. if [[ "$cs" =~ 20[1-9][0-9][01][0-9][0-3][0-9]- ]] then date=$(date -d "$(sed -n 's,^Date: *\([^ ].*[^ ]\) *[-+][0-9]*$,\1,p' $i)" '+%Y%m%d') this_cs=$date-$(sed -n 's,^commit \([0-9a-f]\{8\}\)[[:xdigit:]]*$,\1,p' $i) else date=$(date -d "$(sed -n 's,^Date: *\([^ ].*[^ ]\) *[-+][0-9]*$,\1,p' $i)" '+%Y %m %d') tag=$(radix -i=10 -o=36 -s= -u $date) this_cs=$tag-$(sed -n 's,^commit \([0-9a-f]\{8\}\)[[:xdigit:]]*$,\1,p' $i) fi fi for j in ${i%/*}/.*buildrev do test -r $j && this_cs=$this_cs-$(cat $j) done test "$this_cs" == "$cs" || continue ver="$ver ${i%/*}" done case $(echo $ver | wc -w | sed 's,[[:space:]],,g') in 0) echo "No build area for c/s $cs" >&2 exit 1 ;; 1) ;; *) echo "Ambiguous:" >&2 for i in $ver do echo " $i" >&2 done exit 1 ;; esac ver=${ver##*/build/xen/} echo "Using $ver" >&2 elif [ ! -d ~/build/xen/$ver/dist/install/usr/local/sbin -a ! -d ~/build/xen/$ver/dist/install/usr/sbin ] then if [ "$ver" = "${ver%-dbg}" ] then ver=${ver}-dbg else ver=${ver%-dbg} fi fi root=$(echo ~/build/xen/$ver/dist/install) mkdir -p $root/var/{lock,run/xen} if [ ! -s $root/etc/ssh/ssh_config ] then cfg=$root/etc/ssh/ssh_config mkdir -p $root/etc/ssh echo Host localhost >$cfg echo SendEnv root >>$cfg fi exec sudo sh -c "root=$root DISPLAY=$DISPLAY XAUTHLOCALHOSTNAME=$XAUTHLOCALHOSTNAME XAUTHORITY=$(echo ~/.Xauthority) $0 $*" [-- Attachment #3: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Question about the best practice to install two versions of Xen toolstack on the same machine 2016-05-23 7:02 ` Jan Beulich @ 2016-05-24 8:12 ` Dongli Zhang 2016-05-24 13:34 ` Olaf Hering 0 siblings, 1 reply; 13+ messages in thread From: Dongli Zhang @ 2016-05-24 8:12 UTC (permalink / raw) To: Meng Xu, xen-devel@lists.xenproject.org [-- Attachment #1.1: Type: text/plain, Size: 2959 bytes --] Hi Meng, I never install two xen (actually xen-tools) on the same server. However, I always hate to install xen-tools at default locations since that will mess the OS. Here is how I install xen-tools without overriding the privileged folders like /etc or /usr. Hope this can help. ENV: xen-4.6.1 and Ubuntu 14.04.3. You can easily install xen.gz by just modifying grub. Let's skip this. About xen-tools, e.g., my username is "zhang" and I want to install tools at /soft/xen. I always run the following with a script. 1. sudo mkdir /soft/xen & sudo chown zhang /soft/xen 2. sudo mkdir /var/lib/xen & sudo chown zhang /var/lib/xen 3. sudo mkdir /var/lib/xenstored & sudo chown zhang /var/lib/xenstored 4. ./configure --prefix=/soft/xen --sysconfdir=/soft/xen 5. make tools 6. make install-tools (do not use "sudo" or "su" in this step) 7. export LD_LIBRARY_PATH=/soft/xen/lib 8. PATH=$PATH:/soft/xen/bin:/soft/xen/sbin 9. export PYTHONPATH=/soft/xen/lib/python2.7/site-packages (this is for pygrub) 10. Goto /soft/xen and run "./init.d/xencommons" 11. Boot guest with xl for either pv, pvhvm or hvm, never tried pvh :) Hopefully, you can install different xen-tools at different locations and let them share the same /var/lib/xen and /var/lib/xenstored. 2016-05-23 15:02 GMT+08:00 Jan Beulich <JBeulich@suse.com>: > >>> On 20.05.16 at 19:56, <mengxu@cis.upenn.edu> wrote: > > On Fri, May 20, 2016 at 6:20 AM, Jan Beulich <JBeulich@suse.com> wrote: > >>>>> On 19.05.16 at 20:40, <mengxu@cis.upenn.edu> wrote: > >>> Does anyone try to install two version of Xen toolstack on the same > machine? > >>> Is there any documentation about the best practice to install two > >>> versions of Xen onto the same machine? > >> > >> Or, as an alternative to Olaf's reply, don't install the tools at all, > but > >> instead run everything right out of the build trees. That requires some > >> script wrappers to get things like the library search path set up > >> correctly, but with that in place it has been working fine for me for > >> years. > >> > > > > Thank you so much for your suggestions! I tried to add the library > > and bins in xen/dist/install into the PATH and LD_LIBRARY_PATH, but > > failed to have the system work properly. > > > > I'm wondering if it's convenient for you, would you mind sharing your > > script wrapper? I can learn from it and customize it for my machine. > > Sure, here you go. For commands other then "xl" it ought to be > hard linked to respective other names. I cannot easily tell whether > it makes assumptions on settings done elsewhere in my systems, > so don't put too high hopes into being able to use it as is. > > Jan > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel > > -- Dongli Zhang (张东立) finallyjustice.github.io [-- Attachment #1.2: Type: text/html, Size: 4079 bytes --] [-- Attachment #2: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Question about the best practice to install two versions of Xen toolstack on the same machine 2016-05-24 8:12 ` Dongli Zhang @ 2016-05-24 13:34 ` Olaf Hering 0 siblings, 0 replies; 13+ messages in thread From: Olaf Hering @ 2016-05-24 13:34 UTC (permalink / raw) To: Dongli Zhang; +Cc: xen-devel@lists.xenproject.org, Meng Xu On Tue, May 24, Dongli Zhang wrote: > 7. export LD_LIBRARY_PATH=/soft/xen/lib That is to be replaced by --enable-rpath. > 9. export PYTHONPATH=/soft/xen/lib/python2.7/site-packages (this is for pygrub) This is to be replaced by pvgrub2. Olaf _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Question about the best practice to install two versions of Xen toolstack on the same machine 2016-05-20 17:56 ` Meng Xu 2016-05-23 7:02 ` Jan Beulich @ 2016-05-24 15:16 ` Dario Faggioli 2016-05-25 20:34 ` Meng Xu 1 sibling, 1 reply; 13+ messages in thread From: Dario Faggioli @ 2016-05-24 15:16 UTC (permalink / raw) To: Meng Xu; +Cc: xen-devel@lists.xenproject.org [-- Attachment #1.1: Type: text/plain, Size: 1321 bytes --] [trimmed To/Cc] On Fri, 2016-05-20 at 13:56 -0400, Meng Xu wrote: > On Fri, May 20, 2016 at 6:20 AM, Jan Beulich <JBeulich@suse.com> > wrote: > > Or, as an alternative to Olaf's reply, don't install the tools at > > all, but > > instead run everything right out of the build trees. That requires > > some > > script wrappers to get things like the library search path set up > > correctly, but with that in place it has been working fine for me > > for > > years. > > > Thank you so much for your suggestions! I tried to add the library > and bins in xen/dist/install into the PATH and LD_LIBRARY_PATH, but > failed to have the system work properly. > > I'm wondering if it's convenient for you, would you mind sharing your > script wrapper? I can learn from it and customize it for my machine. > > Once I have it set up successfully, I can write a xen wiki to > describe > how to do it. > Hey Meng, Now that you've got a couple of alternatives, feel free to go and write the wiki page! :-P Thanks and Regards, Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 819 bytes --] [-- Attachment #2: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Question about the best practice to install two versions of Xen toolstack on the same machine 2016-05-24 15:16 ` Dario Faggioli @ 2016-05-25 20:34 ` Meng Xu 0 siblings, 0 replies; 13+ messages in thread From: Meng Xu @ 2016-05-25 20:34 UTC (permalink / raw) To: Dario Faggioli; +Cc: xen-devel@lists.xenproject.org On Tue, May 24, 2016 at 11:16 AM, Dario Faggioli <dario.faggioli@citrix.com> wrote: > [trimmed To/Cc] > > On Fri, 2016-05-20 at 13:56 -0400, Meng Xu wrote: >> On Fri, May 20, 2016 at 6:20 AM, Jan Beulich <JBeulich@suse.com> >> wrote: >> > Or, as an alternative to Olaf's reply, don't install the tools at >> > all, but >> > instead run everything right out of the build trees. That requires >> > some >> > script wrappers to get things like the library search path set up >> > correctly, but with that in place it has been working fine for me >> > for >> > years. >> > >> Thank you so much for your suggestions! I tried to add the library >> and bins in xen/dist/install into the PATH and LD_LIBRARY_PATH, but >> failed to have the system work properly. >> >> I'm wondering if it's convenient for you, would you mind sharing your >> script wrapper? I can learn from it and customize it for my machine. >> >> Once I have it set up successfully, I can write a xen wiki to >> describe >> how to do it. >> > Hey Meng, > > Now that you've got a couple of alternatives, feel free to go and write > the wiki page! :-P I have added a separate wiki page for this. I finally took Olaf and Donglin's approach. So I just documented that approach. :-) Please feel free to modify that page. I'm thinking if I should put a link to the new page? Thanks and Best Regards, Meng ----------- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2016-05-25 20:34 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-05-19 18:40 Question about the best practice to install two versions of Xen toolstack on the same machine Meng Xu 2016-05-20 8:52 ` Olaf Hering 2016-05-20 17:52 ` Meng Xu 2016-05-24 20:47 ` Meng Xu 2016-05-25 10:53 ` Wei Liu 2016-05-25 20:02 ` Meng Xu 2016-05-20 10:20 ` Jan Beulich 2016-05-20 17:56 ` Meng Xu 2016-05-23 7:02 ` Jan Beulich 2016-05-24 8:12 ` Dongli Zhang 2016-05-24 13:34 ` Olaf Hering 2016-05-24 15:16 ` Dario Faggioli 2016-05-25 20:34 ` Meng Xu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).