xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dongli Zhang <dongli.zhang0129@gmail.com>
To: Meng Xu <mengxu@cis.upenn.edu>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: Question about the best practice to install two versions of Xen toolstack on the same machine
Date: Tue, 24 May 2016 16:12:48 +0800	[thread overview]
Message-ID: <CAAbxUGvAeXzjmattOBiSa84XPn=_otNggFB3GO8j4-Th4G622w@mail.gmail.com> (raw)
In-Reply-To: <5742C72B02000078000EDA1B@prv-mh.provo.novell.com>


[-- 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

  reply	other threads:[~2016-05-24  8:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2016-05-24 13:34         ` Olaf Hering
2016-05-24 15:16     ` Dario Faggioli
2016-05-25 20:34       ` Meng Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAbxUGvAeXzjmattOBiSa84XPn=_otNggFB3GO8j4-Th4G622w@mail.gmail.com' \
    --to=dongli.zhang0129@gmail.com \
    --cc=mengxu@cis.upenn.edu \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).