[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Question about the best practice to install two versions of Xen toolstack on the same machine



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@xxxxxxxx>:
>>> On 20.05.16 at 19:56, <mengxu@xxxxxxxxxxxxx> wrote:
> On Fri, May 20, 2016 at 6:20 AM, Jan Beulich <JBeulich@xxxxxxxx> wrote:
>>>>> On 19.05.16 at 20:40, <mengxu@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel




--
Dongli Zhang (张东立)
finallyjustice.github.io
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.