Local XAPI build
How to build XAPI locally.
Here are the steps:
-
First, set up a build env:
- Install the following packages:
dlm-develgmpgmp-devellibffi-developenssl-develpciutils-develsystemd-develxen-develxxhash-devel. - Install
opamto set up a build env. - Run
opam init. - Run
opam switch create toolstack 4.08.1, this sets up an opamswitchwhich is a virtual ocaml env. - Run
opam repo add xs-opam https://github.com/xapi-project/xs-opam.git, this adds thexs-opamrepo to your env. - Run
opam repo remove default, this removes the the default repo from your env as we only want thexs-opamone. - Run
opam depext -vv -y xs-toolstack, this installs the dependency needed to buildxs-toolstack - Run
opam install xs-toolstack -y, this installs the toolstack to build the xapi in your env.
- Install the following packages:
-
Build the XAPI:
- Go to the dir where your
xen-apicode base is. - Run
opam install . --deps-only -t, this installs the dependencies the build needs. - Run
./configure - Now you can run
make,make installormake test
- Go to the dir where your