These are two scripts to set up Xen compilation environment.
Clone Xen with
git clone git://xenbits.xen.org/xen.git
Clone this repository
git clone https://gist.github.com/elazarl/a29e6b4948e9cfac5d79712a774c4a56 xenscripts
Then, prepare a development environment with
bash -xv prepare_build_env.sh
We assume you do not have a current pbuilder
environment for other purposes.
Enter the build environment with
pbuilder --login --bindmount ~
Then build xen in your environment with
./configure --enable-systemd
make debball
You'll create a debian package in dist
which you'll need to install on the server.
On the Xen server, install Ubuntu 16.04, then run the prepare_xen_server.sh
once
on the server after installing the xen debian package.
You can easily run prepare_xen_server.sh
with
./prepare_xen_server.sh REMOTE_SSH_SERVER_IP
It would copy the script there, and run it.
Finally, reboot, and you'll have a working Xen.
Verify with xl info