Table des matières

Installation MiniOne

Minione est une installation OpenNebula de test sur un seul noeud. L'installation est simplifiée au maximum. C'est un simple script bash à lancer et qui se charge de tout installer.

Prérequis

Nous utilisons une installation minimale de Debian 11 sur une machine dédiée.

Récupération du script

Pour télécharger le script

wget 'https://github.com/OpenNebula/minione/releases/latest/download/minione'

Installation front-end + hyperviseur KVM

Pour installer Sunstone (le front-end) et un hyperviseur KVM pour gérer les VMs

# bash minione

le check de l'hôte se lance

### Checks & detection
Checking cpu virtualization capabilities  SKIP QEMU will be used
Checking augeas is installed  SKIP will try to install
Checking curl is installed  SKIP will try to install
Checking add-apt-repository is available  SKIP will try to install
Checking iptables are installed  SKIP will try to install
Checking bridge-utils are installed  SKIP will try to install
Checking apt-transport-https is installed  SKIP will try to install
Checking if gnupg is installed  SKIP will try to install
Checking AppArmor  SKIP will try to modify
Checking for present ssh key  SKIP
Checking (iptables|netfilter)-persistent are installed  SKIP will try to install
Checking docker is installed  SKIP will try to install
Checking python3-pip is installed  SKIP will try to install
Checking ansible  SKIP will try to install
Checking terraform  SKIP will try to install
Checking unzip is installed  SKIP will try to install

### Main deployment steps:
Install OpenNebula frontend version 6.4
Install Terraform
Install Docker
Configure bridge minionebr with IP 172.16.100.1/24
Enable NAT over eno1
Modify AppArmor
Install OpenNebula KVM node
Export appliance and update VM template
Install  augeas-tools curl software-properties-common iptables bridge-utils apt-transport-https gnupg iptables-persistent netfilter-persistent python3-pip unzip
Install pip 'ansible==2.9.9'

Do you agree? [yes/no]:

Si tout est ok, saisissez “yes”, et appuyez sur la touche entrée pour lancer l'installation.

### Installation
Updating APT cache  OK
Install  augeas-tools curl software-properties-common iptables bridge-utils apt-transport-https gnupg iptables-persistent netfilter-persistent python3-pip unzip  OK
Updating PIP  OK
Install from PyPI 'ansible==2.9.9'  OK
Creating bridge interface minionebr  OK
Bring bridge interfaces up  OK
Enabling IPv4 forward  OK
Persisting IPv4 forward  OK
Configuring NAT using iptables  OK
Saving iptables changes  OK
Installing DNSMasq  OK
Starting DNSMasq  OK
Configuring repositories  OK
Updating APT cache  OK
Installing OpenNebula packages  OK
Installing opennebula-provision package   OK
Installing TerraForm  OK
Create docker packages repository  OK
Install docker  OK
Start docker service  OK
Enable docker service  OK
Installing OpenNebula kvm node packages  OK
Updating AppArmor  OK
Disable default libvirtd networking  OK
Restart libvirtd  OK

### Configuration
Generating ssh keypair in /root/.ssh-oneprovision/id_rsa  OK
Add oneadmin to docker group  OK
Update network hooks  OK
Switching OneGate endpoint in oned.conf  OK
Switching OneGate endpoint in onegate-server.conf  OK
Switching keep_empty_bridge on in OpenNebulaNetwork.conf  OK
Switching scheduler interval in oned.conf  OK
Switching to QEMU emulation  OK
Setting initial password for current user and oneadmin  OK
Changing WebUI to listen on port 80  OK
Switching FireEdge public endpoint  OK
Starting OpenNebula services  OK
Enabling OpenNebula services  OK
Add ssh key to oneadmin user  OK
Update ssh configs to allow VM addresses reusing  OK
Ensure own hostname is resolvable  OK
Checking OpenNebula is working  OK
Disabling ssh from virtual network  OK
Adding localhost ssh key to known_hosts  OK
Testing ssh connection to localhost  OK
Updating datastores template  OK
Creating KVM host  OK
Restarting OpenNebula  OK
Creating virtual network  OK
Exporting [Alpine Linux 3.14] from Marketplace to local datastore  OK
Waiting until the image is ready  OK
Updating VM template  OK

### Report
OpenNebula 6.4 was installed
Sunstone is running on:
  http://xxx.xxx.xxx.xxx/
FireEdge is running on:
  http://xxx.xxx.xxx.xxx:2616/
Use following to login:
  user: oneadmin
  password: xxxxxxxxxx

Le mot de passe est stocké également dans le fichier /var/lib/one/.one/one_auth.