Skip to content

AnthoineB/xen-api

This branch is 136 commits behind xcp-ng/xen-api:master.

Folders and files

NameName
Last commit message
Last commit date
Mar 12, 2025
Sep 29, 2017
Mar 12, 2025
Mar 19, 2025
Mar 14, 2025
Mar 13, 2025
Mar 4, 2025
Mar 4, 2025
Jun 26, 2024
May 25, 2023
Oct 3, 2024
Nov 7, 2016
Aug 23, 2022
Mar 17, 2025
May 31, 2024
Sep 16, 2024
Feb 15, 2022
Sep 4, 2024
Sep 9, 2015
Nov 23, 2016
Nov 11, 2009
Mar 18, 2025
Mar 11, 2025
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Nov 18, 2021
Sep 9, 2024
Sep 19, 2024
Mar 13, 2025
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Mar 13, 2025
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Jul 23, 2024
Oct 1, 2024
Oct 1, 2024
Sep 19, 2024
Sep 19, 2024
Sep 4, 2024
Jul 31, 2024
Feb 25, 2025
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Feb 28, 2025
Nov 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Nov 18, 2024
Jun 14, 2024
Nov 18, 2024
Nov 18, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Mar 13, 2025
Mar 13, 2025
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Mar 13, 2025
Mar 13, 2025
Jan 23, 2025
Mar 13, 2025
Mar 13, 2025
Jul 23, 2024
Mar 13, 2025
Mar 13, 2025
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Jul 23, 2024
Jul 23, 2024
Nov 22, 2023
Jul 23, 2024
Jul 23, 2024
Sep 19, 2024
Oct 2, 2024
Apr 15, 2024
Jul 23, 2024
Sep 19, 2024
Sep 19, 2024
Mar 13, 2025
Mar 13, 2025
Sep 19, 2024
Sep 19, 2024
Oct 2, 2024
Oct 2, 2024
Sep 19, 2024
May 24, 2024
Feb 12, 2025
May 24, 2024
Mar 13, 2025
Mar 13, 2025
Mar 13, 2025
Jul 25, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Jul 23, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024
Sep 19, 2024

Repository files navigation

Xapi Project's XenAPI Management Toolstack

Build

Xen API (or xapi) is a management stack that configures and controls Xen-enabled hosts and resource pools, and coordinates resources within the pool. Xapi exposes the Xen API interface for many languages and is a component of the XenServer 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 (further explanation in its readme).

  1. Install opam and git with your package manager.

  2. Clone this repo and work from its root.

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

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

    • Run that line, e.g.:

      export OCAML_VERSION_FULL="4.14.2"
  4. Setup opam with your environment (i.e. switch).

    opam init
    opam switch create xen-api ocaml-base-compiler.$OCAML_VERSION_FULL
    # This basically "jumps you into" the environment 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.

    opam install xs-toolstack
    # 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!

Working From a Fork

If you are working from within a clone of a fork of this repository, you will need tags from the upstream repository in order to produce a build with the correct versioning string.

To fetch these tags, you must ensure that this repository is known to git (as a remote, often called upstream) and then you can fetch the tags as follows:

git remote add upstream https://github.com/xapi-project/xen-api
git fetch upstream --tags

You can check if this has been successful by invoking git describe.

You can then push these tags to your remote repository to ensure they are cloned in future:

git push origin --tags

Contributions

To contribute changes to xen-api, please fork the repository on GitHub, and then submit a pull request.

It is required to add a Signed-off-by: as a Developers Certificate of Origin. It certifies the patch's origin and is licensed under an appropriate open-source licence to include it in Xapi: https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff

Discussions

Discussions can be started at https://github.com/xapi-project/xen-api/discussions

Issues

Issues can be raised at https://github.com/xapi-project/xen-api/issues

Licensing

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

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 85.4%
  • Python 4.4%
  • Roff 3.9%
  • C 1.5%
  • C# 1.5%
  • Shell 1.0%
  • Other 2.3%