How To Build XO From Sources on Debian 10 Using XenOrchestraInstallerUpdater

Load Debian 10 in a VM on XCP-NG (or where ever you prefer) and as of April 2020 it is recommended that the allocate at least 4GB of ram to that machine and as many CPU resources as you find reasonable. The source code compiling process speed will vary greatly based on what you have allocated. Next make sure git is installed using

apt install git

Then clone the latest installer from https://github.com/ronivay/XenOrchestraInstallerUpdater by running

git clone https://github.com/ronivay/XenOrchestraInstallerUpdater.git

If you plan on using a self signed certificate as shown in the video, then choose a location such as /etc/ssl/xo and create the keys using:

openssl req -newkey rsa:4096 \
            -x509 \
            -sha256 \
            -days 3650 \
            -nodes \
            -out xo.crt \
            -keyout xo.key

Then go back into the /root/XenOrchestraInstallerUpdater directory and copy the sample config over to xo-install.cfg:

cp sample.xo-install.cfg xo-install.cfg

Then edit the xo-install.cfg for the setting you want for your server, here are the setting used in the video:

# Port number where xen-orchestra service is bound
PORT="443"
#PLUGINS="xo-server-transport-email,xo-server-usage-report,xo-server-perf-alert"
PLUGINS="all"
# X.509 certificate setup.
PATH_TO_HTTPS_CERT=/etc/ssl/xo/xo.crt
PATH_TO_HTTPS_KEY=/etc/ssl/xo/xo.key

Then run the xo-install.sh choose option 1 autoinstall and your wait for the system to finish. Once complete you will be able to log into the system using the following credentials

user: admin@admin.net
pass: admin

6 Likes

Do you have a guide for getting plug-ins installed on the “free” version of xcp-ng?

That is covered in the video.

Thanks again for a really helpful guide/video.

Would you have any advice on where to read up on how to secure the connection so I can get a padlock in Chrome/browser. I appreciate this is linked to the certificates but not really sure where to start and whether this would need me to make changes to the hosts as well?

I use the Jarli Method – script was developed in conjuction with one of the xcp-ng members – really really easy:


Comes with all the plugins.

Happy to report that XO installs nicely on a Raspberry Pi 4 with 4GB RAM using Ubuntu Server 20.04 LTS. It’s not the fastest install but works nicely.
I have a couple of small servers that I don’t run all the time so having the managment on a low power Pi allows me run which ever server I want to with out needing to run two installs of XO.

New to Linux, so lost with problem on first step. When I type “sudo apt install git” or “sudo apt-get install git”, I receive “command not found”. When I type “man -k apt” I see both apt and apt-get as a command line interface. I’ve restarted Debian, with the same result. Maybe I’ll go back to Ubuntu, which I haven’t had such problems with.

Ignore last message. First install stalled. Second install had above problem. Third install didn’t have a problem with “apt”.