meta données pour cette page
Ceci est une ancienne révision du document !
Installation Xen Orchestra à partir des sources
Sources
Installation
Installation sur une debian 13
- installation des paquets requis
root@xoa:~# apt-get install build-essential redis-server libpng-dev git python3-minimal libvhdi-utils lvm2 cifs-utils nfs-common ntfs-3g openssl libfuse2 nmap wget npm htop tree
- installation de yarn
root@xoa:~# npm install -g yarn
- test de REDIS
root@xoa:~# systemctl restart redis.service root@xoa:~# redis-cli ping PONG
- installation de Xen Orchestra
root@xoa:~# git clone -b master https://github.com/vatesfr/xen-orchestra root@xoa:~# cd xen-orchestra root@xoa:~# yarn root@xoa:~# yarn build root@xoa:~# cd packages/xo-server
- création du fichier de conf
root@xoa:~# mkdir -p /etc/xo-server/ root@xoa:~# cp sample.config.toml /etc/xo-server/config.toml In this config file, you can change default ports (80 and 443) for xo-server. If you are running the server as a non-root user, you will need to set the port to 1024 or higher. ici nous le faisons tourner sur le 8080
- démarrage du service
root@xoa:~# yarn start Default user: "admin@admin.net" with password "admin"
Démarrage automatique
Le daemon tournant sur le port 8080, nous pouvons le lancer en utilisateur non-root.
- création du user xen-orchestra
root@xoa:~# useradd -m xen-orchestra -d /home/xen-orchestra
- déplacement de binaires et ajustement des droits
root@xoa:~# mv /root/xen-orchestra/ /usr/bin/ root@xoa:~# chown xen-orchestra:xen-orchestra /usr/bin/xen-orchestra/ -R
- création du service
root@xoa:~# vi /etc/systemd/system/xo-server.service [Unit] Description=XO Server After=network-online.target [Service] Environment="DEBUG=xo:main" Restart=always SyslogIdentifier=xo-server # Be sure to edit the path below to where your Node and your xo-server install is located! ExecStart=/usr/bin/node /usr/bin/xen-orchestra/packages/xo-server/dist/cli.mjs [Install] WantedBy=multi-user.target
Updating
If you would like to update your current version, enter your xen-orchestra directory and run the following:
# This will clear any changes you made in the repository!! git checkout .
git pull –ff-only yarn yarn build