Module : Cloud Computing
Prof : Hazman Chaimae Filière : LST
TP 1: Installation d’OpenStack avec DevStack
Objectifs
Installer DevStack sur une machine virtuelle ou un serveur.
Comprendre les composants essentiels d’OpenStack.
Accéder et interagir avec OpenStack via l’interface web et la ligne de commande.
Prérequis
Système d’exploitation : Ubuntu 20.04/22.04 (machine physique ou VM).
Matériel minimum :
-8 Go RAM (recommandé 16 Go).
- 50 Go d’espace disque.
- 4 vCPU.
Accès root ou utilisateur avec privilèges sudo.
Installation de DevStack
Étape 1 : Préparation du Système
➢ Mettre à jour les paquets
sudo apt update && sudo apt upgrade -y
➢ Installer les dépendances requises
sudo apt install -y git net-tools curl
➢ Créer un utilisateur dédié pour DevStack
sudo useradd -s /bin/bash -d /opt/stack -m stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
sudo su - stack
Étape 2 : Télécharger et Configurer DevStack
➢ Cloner DevStack depuis GitHub
➢
git clone https://opendev.org/openstack/devstack
cd devstack
Module : Cloud Computing
Prof : Hazman Chaimae Filière : LST
➢ Créer le fichier local.conf
nano local.conf
ADMIN_PASSWORD=admin
DATABASE_PASSWORD=admin
RABBIT_PASSWORD=admin
SERVICE_PASSWORD=admin
Étape 3 : Installer DevStack
➢ Lancer l’installation
./stack.sh
Temps d’installation : environ 30 à 60 minutes.
➢ Vérifier l’installation
source openrc
openstack service list
Interface web OpenStack
Ouvrir Horizon (Interface Web OpenStack)
URL : `http://<IP>:5000/dashboard`
Identifiants
- Utilisateur : `admin`
- Mot de passe : `admin`
Vérifications et Tests
➢ Lister les services OpenStack actifs
openstack service list
➢ Créer un utilisateur et un projet
openstack project create my_project
openstack user create --project my_project --password user123 my_user
Module : Cloud Computing
Prof : Hazman Chaimae Filière : LST
➢ Créer un réseau privé
openstack network create my-network