meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| xcp-ng:installation_xo_serveurphysique [06/11/2025 20:05] – mdl | xcp-ng:installation_xo_serveurphysique [09/11/2025 18:50] (Version actuelle) – mdl | ||
|---|---|---|---|
| Ligne 8: | Ligne 8: | ||
| == Installation == | == Installation == | ||
| + | Installation sur une debian 13 | ||
| * installation des paquets requis | * installation des paquets requis | ||
| <code bash> | <code bash> | ||
| - | 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 | + | 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 | ||
| + | <code bash> | ||
| + | root@xoa:~# npm install -g yarn | ||
| </ | </ | ||
| * test de REDIS | * test de REDIS | ||
| <code bash> | <code bash> | ||
| - | root@xoa: | + | root@xoa:~# systemctl restart redis.service |
| root@xoa:~# redis-cli ping | root@xoa:~# redis-cli ping | ||
| PONG | PONG | ||
| Ligne 35: | Ligne 41: | ||
| <code bash> | <code bash> | ||
| root@xoa:~# mkdir -p / | root@xoa:~# mkdir -p / | ||
| - | root@xoa: | + | root@xoa:~# cp sample.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. | 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 | ici nous le faisons tourner sur le 8080 | ||
| + | |||
| + | root@xoa:~# vi / | ||
| + | |||
| + | [[http.listen]] | ||
| + | [...] | ||
| + | port = 8080 | ||
| + | [...] | ||
| + | |||
| </ | </ | ||
| + | |||
| + | |||
| * démarrage du service | * démarrage du service | ||
| Ligne 50: | Ligne 66: | ||
| + | == Démarrage automatique == | ||
| + | |||
| + | Le daemon tournant sur le port 8080, nous pouvons le lancer en utilisateur non-root. | ||
| + | |||
| + | |||
| + | * création du user xen-orchestra | ||
| + | <code bash> | ||
| + | root@xoa:~# useradd -m xen-orchestra | ||
| + | </ | ||
| + | |||
| + | |||
| + | * déplacement des binaires et ajustement des droits des binaires et du répertoire des données persistantes | ||
| + | <code bash> | ||
| + | root@xoa:~# mv / | ||
| + | root@xoa:~# chown xen-orchestra: | ||
| + | root@xoa:~# chown xen-orchestra: | ||
| + | </ | ||
| + | |||
| + | |||
| + | * création du service | ||
| + | <code bash> | ||
| + | root@xoa:~# vi / | ||
| + | |||
| + | [Unit] | ||
| + | Description=XO Server | ||
| + | After=network-online.target | ||
| + | |||
| + | [Service] | ||
| + | User=xen-orchestra | ||
| + | Group=xen-orchestra | ||
| + | Environment=" | ||
| + | Restart=always | ||
| + | SyslogIdentifier=xo-server | ||
| + | |||
| + | # Be sure to edit the path below to where your Node and your xo-server install is located! | ||
| + | ExecStart=/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | |||
| + | |||
| + | root@xoa:~# systemctl daemon-reload | ||
| + | root@xoa:~# systemctl enable --now xo-server | ||
| + | Created symlink '/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | == Gestion de la date et heure == | ||
| + | |||
| + | Sur Debian, aucun daemon de temps n'est installé par défault | ||
| + | |||
| + | * installation et configuration de systemd-timesyncd | ||
| + | |||
| + | <code bash> | ||
| + | root@xoa:~# apt install systemd-timesyncd | ||
| + | Installation de : | ||
| + | systemd-timesyncd | ||
| + | |||
| + | Sommaire : | ||
| + | Mise à niveau de : 0. Installation de : 1Supprimé : | ||
| + | Taille du téléchargement : | ||
| + | Espace nécessaire : | ||
| + | |||
| + | Réception de : 1 http:// | ||
| + | 92,9 ko réceptionnés en 0s (970 ko/s) | ||
| + | Sélection du paquet systemd-timesyncd précédemment désélectionné. | ||
| + | (Lecture de la base de données... 77807 fichiers et répertoires déjà installés.) | ||
| + | Préparation du dépaquetage de .../ | ||
| + | Dépaquetage de systemd-timesyncd (257.8-1~deb13u2) ... | ||
| + | Paramétrage de systemd-timesyncd (257.8-1~deb13u2) ... | ||
| + | Creating group ' | ||
| + | Creating user ' | ||
| + | Created symlink '/ | ||
| + | Created symlink '/ | ||
| + | systemd-time-wait-sync.service is a disabled or a static unit, not starting it. | ||
| + | Traitement des actions différées (« triggers ») pour dbus (1.16.2-2) ... | ||
| + | </ | ||
| + | |||
| + | |||
| + | * ajout des NTP | ||
| + | <code bash> | ||
| + | # This file is part of systemd. | ||
| + | # | ||
| + | # systemd is free software; you can redistribute it and/or modify it under the | ||
| + | # terms of the GNU Lesser General Public License as published by the Free | ||
| + | # Software Foundation; either version 2.1 of the License, or (at your option) | ||
| + | # any later version. | ||
| + | # | ||
| + | # Entries in this file show the compile time defaults. Local configuration | ||
| + | # should be created by either modifying this file (or a copy of it placed in | ||
| + | # /etc/ if the original file is shipped in /usr/), or by creating " | ||
| + | # the / | ||
| + | # recommended. Defaults can be restored by simply deleting the main | ||
| + | # configuration file and all drop-ins located in /etc/. | ||
| + | # | ||
| + | # Use ' | ||
| + | # | ||
| + | # See timesyncd.conf(5) for details. | ||
| + | |||
| + | [Time] | ||
| + | NTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org | ||
| + | # | ||
| + | RootDistanceMaxSec=5 | ||
| + | PollIntervalMinSec=32 | ||
| + | PollIntervalMaxSec=2048 | ||
| + | ConnectionRetrySec=30 | ||
| + | SaveIntervalSec=60 | ||
| + | </ | ||
| + | |||
| + | |||
| + | * redémarrage du daemon | ||
| + | <code bash> | ||
| + | root@xoa:~# systemctl restart systemd-timesyncd | ||
| + | </ | ||
| + | |||
| + | * forçage en NTP | ||
| + | <code bash> | ||
| + | root@xoa:~# timedatectl set-ntp true | ||
| + | </ | ||
| + | |||
| + | |||
| + | * status final | ||
| + | <code bash> | ||
| + | root@xoa:~# timedatectl | ||
| + | Local time: dim. 2025-11-09 19:37:30 CET | ||
| + | | ||
| + | RTC time: dim. 2025-11-09 18:37:30 | ||
| + | Time zone: Europe/ | ||
| + | System clock synchronized: | ||
| + | NTP service: active | ||
| + | RTC in local TZ: no | ||
| + | |||
| + | </ | ||
| + | == Updating == | ||
| - | Updating | ||
| If you would like to update your current version, enter your xen-orchestra directory and run the following: | If you would like to update your current version, enter your xen-orchestra directory and run the following: | ||