Code Monkey home page Code Monkey logo

xen-api's Introduction

Xapi Project's XenAPI Management Toolstack

Build Status Coverage Status Lines of Code

Xen API (or xapi) is a management stack that configures and controls Xen-enabled hosts and resource pools, and co-ordinates resources within the pool. Xapi exposes the Xen API interface for many languages and is a component of the Citrix Hypervisor project. Xen API is written mostly in OCaml 4.07.

Xapi is the main component produced by the Linux Foundation's Xapi Project.

Build and Install

To build xen-api from source, we recommend using opam with the xs-opam repository (farther explanation in its readme).

  1. Install opam and git with your package manager.

  2. Clone this repo, and work from it's root.

    git clone https://github.com/xapi-project/xen-api && cd xen-api
  3. Figure out what version of ocaml-base-compiler to use.

    • Go to this xs-opam file, and look for "OCAML_VERSION_FULL"

    • Run that line, i.e:

      export OCAML_VERSION_FULL="4.10.1"
  4. Setup opam, with your Enviornment (i.e switch).

    opam init
    opam switch create xen-api ocaml-base-compiler.$OCAML_VERSION_FULL
    # This basically "jumps you into" the enviornment you just created:
    eval $(opam env --switch=xen-api --set-switch)
  5. Get the Recommended Packages.

    # Add the xs-opam library as the main repo to check for versions at:
    opam repo add xs-opam https://github.com/xapi-project/xs-opam.git
    # Remove the default, because how it handles version conflicts is different:
    opam repo remove default
    # (NOT needed with opam>=2.1.0) Have opam now figure out what versions of each package to use:
    opam pin --yes add . --no-action
  6. Install all the Packages.

    PACKAGES="xapi-cli-protocol xapi-client xapi-consts xapi-database xapi-datamodel xapi-types xapi xe xen-api-sdk xen-api-client xen-api-client-lwt xen-api-client-async xapi-rrdd xapi-rrdd-plugin xapi-rrd-transport xapi-rrd-transport-utils rrd-transport rrdd-plugin rrdd-plugins rrddump gzip http-svr pciutil safe-resources sexpr stunnel uuid xapi-compression xml-light2 zstd vhd-tool xs-toolstack"
    
    # NOT needed with opam>=2.1.0) Install all the dependances (Including OS):
    opam --yes depext --yes -u $PACKAGES # The first '--yes' is to install depext itself
    # Install the Packages finally:
    opam install $PACKAGES --yes --deps-only --with-test -v
    # Update the current switch. (You're already on the correct one, just refresh it).
    eval $(opam env)
  7. Build xen-api.

    ./configure
    make
    make test

The binaries should now be in ./_build/install/default/bin!

Contributions

To contribute patches to xen-api, please fork the repository on Github, and then submit a pull request. If for some reason you can't use Github to submit a pull request, then you may send your patch for review to the [email protected] mailing list, with a link to a public git repository for review. We much prefer Github pull requests, however, and submitting a patch to the mailing list will take much more time for review.

Maintainers

Maintainers can be contacted via this mailing list: [email protected]

Licensing

This software is licensed under the GNU LGPLv2 license. Please see the LICENSE file for more information.

xen-api's People

Contributors

robhoes avatar johnelse avatar lindig avatar edwintorok avatar jonludlam avatar gaborigloi avatar psafont avatar simonjbeaumont avatar samoht avatar djs55 avatar kc284 avatar thomassa avatar jonathanknowles avatar mg12ctx avatar zli avatar mseri avatar euanh avatar sharady avatar jjd27 avatar minglumlu avatar krizex avatar liulinc avatar blp avatar alexz avatar cheng-z avatar siddharthv avatar frezzle avatar ravippandey avatar taoyongd avatar minli1 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.