Openstack Tutorial
Openstack Tutorial
Shihabur R. Chowdhury
CS 856 - Winter 2017
University of Waterloo
Environment Setup
● VM credentials
○ username: openstack
○ password: openstackpass
● OpenStack credentials
○ username: admin
○ password: adminpass
DevStack
The installation has been done for you. No need to run the installation again.
DevStack Configuration
The installation has been done for you. No need to run the installation again.
DevStack Configuration (contd…)
● Network configuration
○ FLOATING_RANGE=10.0.3.0/27
○ PUBLIC_NETWORK_GATEWAY=10.0.3.1
○ HOST_IP=10.0.2.15
The installation has been done for you. No need to run the installation again.
DevStack Configuration (contd…)
The installation has been done for you. No need to run the installation again.
DevStack Configuration (contd…)
● Neutron configuration
○ Q_USE_SECGROUP=True
○ ENABLE_TENANT_VLANS=True
○ TENANT_VLAN_RANGE=1000:1999
○ PHYSICAL_NETWORK=default
○ FLAT_INTERFACE=eth0
○ PUBLIC_INTERFACE=eth0
The installation has been done for you. No need to run the installation again.
Environment Setup
The installation has been done for you. No need to run the installation again.
General Tips
● export VM_ID=<value_of_id_field>
Virtual Machines
● Shutdown a VM
○ nova stop $VM_ID
● Delete a VM
○ nova delete $VM_ID
● Show the VM log
○ nova console-log $VM_ID (or VM name)
● nova show $VM_ID will display information about the
VM including network configuration, loaded image, the
used flavor, security groups etc.
Assign External IP to VM
● LVM concepts
○ https://www.howtoforge.com/linux_lvm
○ http://www.routemybrain.com/understanding-the-concept-of-logic
al-volume-manager-%E2%80%93-lvm/
○ http://tldp.org/HOWTO/LVM-HOWTO/anatomy.html
Volume Management
neutron = client.Client(username=<username>,
password=<password>, tenant_name=<tenant_name>,
auth_url=<auth_url>)
OpenStack Python API - Neutron