Getting started with OpenStack
This part is combining some newly recorded material for managing your cloud accounts on our OpenStack cloud. Before you start using our lab cloud, make sure you watch trough these videos. The interface can be a bit different since we have updated the Open Stack version since the demo was recorded.
Getting started - Create your network
In this video we talk about our cloud environment, CS Cloud, that is built on OpenStack. You learn what it is and how you could log into it and start using it. The video also shows how to start to set up a new network for your OpenStack project.
Create an instance
In this video you will learn how to create an instance or machine in your network
Connect to an instance through SSH
When we now have created our machine we want to connect to and log in on it. This is done by using SSH and a pre-produced SSH-key.
Using the OpenStackClient (OSC) - with docker
In this video we go through how to run a docker container that includes the OSC.
OBS! For more demos about cli-commands you can whats the older recording below (see OpenStack CLI).
Older videos
Here are some older videos that could still be of importance. The are recorded in an older version of OpenStack but most of the instructions are still relevant. Some of the contents is the same as the new videos above.
Web Interface
- Overview of the Web interface
- Network
- Create a router
- Create a network
DNS: 194.47.199.41, 194.47.110.97 - Add an interface for the router
- Key pair
- Create a Key Pair (OBS You don't have to create your own keys, they ones you should use are already created for you!) Make sure to actually log in with SSH on Linux using keys only, do not active log in using password. For Windows when you do use passwords, make sure you use secure passwords from the start!
- Add Key to your computer
chmod 400 my-key.pem mv my-key.pem ~/.ssh eval $(ssh-agent) ssh-add -k ~/.ssh/my-key.pem
- Create Instances
OpenStack CLI
- Install the OpenStack Client
- Doc: Install the OpenStack Client
- Install Python 2.7
- setup tools package
easy_install pip
pip install python-openstackclient
- Get the OpenStack RC file
- Run the RC file
If you run Windows, download this script and run it like this:
windowsrc.cmd {path to RC file}
- Test the CLI
- Run the RC file
- Create a machine
- List images
openstack image list --limit 50
- List flavor
openstack flavor list
- List key pair
openstack keypair list
- Create a Server
openstack server create --image <ImageID> --flavor <Number> --key-name <KeyName> <ServerName>
- Create Floating ip
openstack ip floating create ext_net
- Add floating IP
openstack ip floating add <IP> <ServerName>
- Add security group
openstack server add security group <ServerName> <security group>
- List images
Manage your servers
- Using one machine to access others
- Transfer your private key
scp ~/.ssh/my-key.pem <username>@<IP>:~/.ssh/
- Transfer your private key
- Add key
chmod 400 ~/.ssh/my-key.pem eval $(ssh-agent) ssh-add -k ~/.ssh/my-key.pem
- Connect to other servers