Installation XOA à partir des sources (github ronivay)

COMMON GROUNDS

apt update && apt upgrade

 

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

 

cd XenOrchestraInstallerUpdater

 

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

 

nano xo-install.cfg

 

# Port number to where xo-proxy service is bound
PROXY_PORT="443"

# Location of pem certificate/key files. Installation will automatically configure HTTPS if these are defined. Remember to change PORT variable as well.
PATH_TO_HTTPS_CERT=$INSTALLDIR/xo.crt
PATH_TO_HTTPS_KEY=$INSTALLDIR/xo.key

 

sudo apt-get install openssl

 

sudo mkdir /opt/xo

 

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

 

./xo-install.sh

FOR XOA

-----------------------------------------

Welcome to automated Xen Orchestra install

Following options will be used for installation:

OS: Ubuntu 24
Basedir: /opt/xo
User: root
Port: 443
HTTPS: true
Git Branch for source: master
Following plugins will be installed: all
Number of previous installations to preserve: 3
Node.js and yarn auto update: true

Errorlog is stored to /root/XenOrchestraInstallerUpdater/logs/xo-install.log-202509090808 for debug purposes

Depending on which installation is chosen:

Xen Orchestra configuration will be stored to /root/.config/xo-server/config.toml, if you don't want it to be replaced with every update, set CONFIGUPDATE to false in xo-install.cfg
Xen Orchestra Proxy configuration will be stored to /root/.config/xo-proxy/config.toml. Config won't be overwritten during update, ever
-----------------------------------------

1. Install
2. Update
3. Rollback
4. Install proxy
5. Update proxy
6. Exit

: 1

[ok] OS Ubuntu so making sure universe repository is enabled

[ok] Running apt-get update

[ok] Installing build dependencies, redis server, python3-minimal, git, libvhdi-utils, lvm2, nfs-common, cifs-utils, curl, ntfs-3g, dmidecode patch

[ok] Installing apt-transport-https and ca-certificates packages to support https repos

[ok] Installing node.js

[ok] Installing yarn

[ok] Enabling and starting redis service

[ok] Enabling and starting rpcbind service

[info] Creating missing xo-builds directory to /opt/xo/xo-builds

[info] Fetching Xen Orchestra source code

[info] Creating install directory: /opt/xo/xo-builds/xen-orchestra-202509090808

[info] Installing Xen Orchestra from branch: master - commit: 9dda9be6f

[info] No 3rd party plugins to install

[info] xo-server and xo-web build takes quite a while. Grab a cup of coffee and lay back

[ok] Running installation

[ok] Installing plugins

[info] Fixing binary path in systemd service configuration file
[info] Adding WorkingDirectory parameter to systemd service configuration file
[info] Replacing systemd service configuration file
[info] Reloading systemd configuration

[info] Fixing relative path to xo-web installation in xo-server configuration file
[info] Changing redis connection address in xo-server configuration file
[info] Changing port in xo-server configuration file
[info] Enabling HTTPS in xo-server configuration file
[info] Activating modified configuration file

[info] Symlinking fresh xo-server install/update to /opt/xo/xo-server
[info] Symlinking fresh xo-web install/update to /opt/xo/xo-web
[info] Symlinking fresh xo-cli install/update to /opt/xo/xo-cli
[info] Symlinking xo-cli script to /usr/local/bin/xo-cli

[info] Starting xo-server...
 waiting for port to be open

       WebUI started in port 443. Make sure you have firewall rules in place to allow access.
       Default username: admin@admin.net password: admin

[info] Installation successful. Enabling xo-server service to start on reboot






for XO PROXY

root@xoa-proxy:~/XenOrchestraInstallerUpdater# ./xo-install.sh
[fail] Local changes in this script directory. Not attempting to self upgrade
-----------------------------------------

Welcome to automated Xen Orchestra install

Following options will be used for installation:

OS: Ubuntu 24
Basedir: /opt/xo
User: root
Port: 443
HTTPS: true
Git Branch for source: master
Following plugins will be installed: all
Number of previous installations to preserve: 3
Node.js and yarn auto update: true

Errorlog is stored to /root/XenOrchestraInstallerUpdater/logs/xo-install.log-202602020833 for deb

Depending on which installation is chosen:

Xen Orchestra configuration will be stored to /root/.config/xo-server/config.toml, if you don't wupdate, set CONFIGUPDATE to false in xo-install.cfg
Xen Orchestra Proxy configuration will be stored to /root/.config/xo-proxy/config.toml. Config wo ever
-----------------------------------------

1. Install
2. Update
3. Rollback
4. Install proxy
5. Update proxy
6. Exit

: 4

[ok] OS Ubuntu so making sure universe repository is enabled

[ok] Running apt-get update

[..] Installing build dependencies, redis server, python3-minimal, git, libvhdi-utils, lvm2, nfs-[ok] Installing build dependencies, redis server, python3-minimal, git, libvhdi-utils, lvm2, nfs-

[ok] Installing apt-transport-https and ca-certificates packages to support https repos

[ok] Installing node.js

[ok] Installing yarn

[ok] Enabling and starting redis service

[ok] Enabling and starting rpcbind service

[info] Creating missing xo-builds directory to /opt/xo/xo-builds

[info] Fetching Xen Orchestra Proxy source code

[info] Creating install directory: /opt/xo/xo-builds/xen-orchestra-202602020833

[info] Installing Xen Orchestra Proxy from branch: master - commit: eb020e250

[info] xo-proxy build takes quite a while. Grab a cup of coffee and lay back

[ok] Running installation

[info] Disabling license check in proxy to enable running it in XO from sources

[info] Generate systemd service configuration file
[info] Reloading systemd configuration

[info] No xo-proxy configuration present, copying default config to /root/.config/xo-proxy/config.toml
[info] Adding authentication token to xo-proxy config

[info] Symlinking fresh xo-proxy install/update to /opt/xo/xo-proxy

[info] Starting xo-proxy...
 waiting for port to be open

       Proxy started in port 443. Make sure you have firewall rules in place to allow access from xen orchestra.
       Save following line as json file and use config import in Xen Orchestra to add proxy

{"proxies":[{"authenticationToken":"cDzMSS14bAGp9pWDo1YXIAyKwJUwumWe2YJkiHmaCiI","name":"xo-ce-proxy-202602020833","vmUuid":"1fb64a8c-2d81-42b7-2211-56e26604df13","id":"1ff75706-882f-4194-a490-5b8b91fe26e4"}]}

[info] Installation successful. Enabling xo-proxy service to start on reboot

keep authenticationToken and vmUuid to register on main XOA