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

Re: [Xen-users] [Xen-devel] Building Xen tools



On 3/13/2014 6:01 AM, Ian Campbell wrote:
> IMHO This is not a question about Xen development, but about using Xen,
> so redirecting to the user list.
> 
> On Wed, 2014-03-12 at 20:45 -0600, Kaushik Kanetkar wrote:
> 
>> How do I cross compile the tools for that particular target
>> environment? The wiki has instructions particular to Debian and I'm
>> running into problems while replicating those. 
> 
> What problems?

Is it completely necessary to cross-compile the tools?  I simply built them on
the target platform itself, which in my case is the Arndale, but while I have
not had any problems using this method, Ian may know of some reason why this
should not be done.

The process for Ubuntu is first log onto the target platform and configure the
necessary packages:

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get build-dep xen
sudo apt-get install libgtk2.0-dev libfdt-dev libaio-dev
sudo apt-get remove dh-ocaml libfindlib-ocaml ocaml-base-nox ocaml-findlib
ocaml-interp ocaml-nox

Finally build and install the tools (Make absolutely sure that you build the
tools from the same git hash that you built your Xen image, or you will have
interesting problems.):

./configure PYTHON_PREFIX_ARG=--install-layout=deb --libdir=/usr/lib
make dist-tools
sudo make -C tools install
sudo update-rc.d xencommons defaults 19 81
sudo update-rc.d xendomains defaults 21 79

    Nate

> 
>> The wiki mentions "The environment which you run on your dom0 must be
>> the same. The instructions use Ubuntu Raring and therefore that is
>> what you would need in your dom0 as well. " which I'm having problem
>> understanding
> 
> It is trying to say "These instructions use Ubuntu Raring so if you
> follow them exactly then you would also need to use Ubuntu Raring in
> your dom0".
> 
> You could also use the instructions as an example but substitute your
> own distro to match your own dom0 environment, but you'd then have to be
> able to handle the subtle differences between distros.
> 
>> Do you mean that if I have linux 3.10 kernel as dom0 then I would need
>> to build the tools on a 3.10 linux kernel?
> 
> No. That statement refers only to the userspace environment (i.e. glibc
> version, compiler version, other libraries etc). The compile time and
> runtime kernel can be independent (and if cross compiling this must
> obviously be the case).
>>
>>
>> I'm fairly new to this so please correct me if I'm wrong anywhere.
>>
>>
>>
>>
>> Thanks
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxx
>> http://lists.xen.org/xen-devel
> 
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxx
> http://lists.xen.org/xen-users
> 


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

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