Lab session#
Setting up the development environment#
- Installing virtualbox or VMware on the local machine
- Download the appropriate version of virtualbox or VMware for your system from the official website
- Install virtualbox or VMware following the instructions provided by the installer.
- Installing Ubuntu 18.04 as the host operating system
- Once virtualbox or VMware is installed, create a new virtual machine and select Ubuntu 18.04 as the operating system
- Follow the prompts to configure the virtual machine as desired (e.g. assigning RAM, disk space)
- Start the virtual machine and complete the installation of Ubuntu 18.04
- (If you are using VMware, you should follow their guide for creating and configuring a new Virtual machine)
- Installing DevStack
- Once Ubuntu is installed, open a terminal and run the following commands:
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get install git
- git clone https://github.com/openstack-dev/devstack.git
- cd devstack
- Copy the local.conf file to the devstack folder run ./stack.sh to start the installation, it could take a while
- Once Ubuntu is installed, open a terminal and run the following commands:
- Configuring DevStack
- Once the installation of DevStack is completed, you can log in to the OpenStack dashboard by navigating to http://
/dashboard in your browser - run the command source openrc to setup the environment
- run the command openstack token issue to get the token, you can use this token to interact with openstack using API
- Once the installation of DevStack is completed, you can log in to the OpenStack dashboard by navigating to http://
Getting familiar with the OpenStack CLI#
- Familiarizing with the basic openstack commands such as:
- openstack --help : to understand the different option of openstack command
- openstack user list : To list all the user in the openstack deployment
- openstack flavor list : To list all the flavor available in the deployment
- Creating and managing virtual machines, networks, and storage using the openstack client
- openstack server create : Creating a virtual machine
- openstack server list : Listing all the virtual machines
- openstack network list : Listing all the networks
- openstack subnet list : Listing all the subnets
- openstack router list : Listing all the routers
- Understanding the Openstack API and how to interact with it
- sending basic rest requests to interact with openstack
- How to retrieve token
Basic operations on users, roles and Projects#
- Create a user
- openstack user create --password
- openstack user create --password
- List all users
- openstack user list
- Create a role
- openstack role create
- openstack role create
- Add a role to a user
- openstack role add --user
--project
- openstack role add --user
- Create a project
- openstack project create --domain
- openstack project create --domain
- Add a user to a project
- openstack role add --user
--project
- openstack role add --user
- Assign a role to a user in a project
- openstack role add --user
--project
- openstack role add --user
Hands-on exercise and case study:#
- Create a virtual machine
- Create and attach a volume to the virtual machine
- Create a network, subnet, and router
- Allocate a floating IP
- Create security groups and rules
- Create a new user, assign role and add to the project
- demonstrate the change of access level with the role.
Travaux pratiques 5.1. Comparaison des différentes méthodes d'installation 5.2. Sélection d'une méthode d'installation adaptée au contexte 5.3. Installation et configuration d'une plateforme OpenStack de base 5.4. Validation de l'installation et tests de fonctionnement