Get started with OpenStack IaaS

Here are the initial steps that you need to perform to start you first instance and access it with ssh.

Create Network
1. Go to "Project" > "Network" > "Networks"
2. Select "Create Network" > set a network name > "Next" > set subnet name and network address (10.0.1.0/24 for example) > "Next" > "Create"

Create Router
1. Go to "Project" > "Network" > "Routers"
2. Select "Create Router" > set a router name and select the public network "ext-net-01" > "Create Router"
3. Select the router you just created > "Interfaces" > "Add Interface" > select the subnet you created > "Add Interface"

Now the network is up and ready for you to create the first instance.

Create ssh key
1. Go to "Project" > "Compute" > "Access & Security" > "Key Pairs" > select "Create Key Pair" > set key pair name > "Create Key Pair" > save the private key

Create Security Group
1. Go to "Project" > "Compute" > "Access & Security" > select "Create Security Group" > set a name > "Create Security Group"
2. select "Manage Rules" on the security group you created"
3. select "Add Rule" > set "Port" 22 > "Add" 

Create instance
1. Go to "Project" > "Compute" > "Instances" > select "Launch Instance"
> set instance name and select an image (ubuntu-16.04-server-160805 for example)
> "Flavor" > select a flavor (m1.small for example)
> "Networks" > select the network you created
> "Security groups" > add the security group you created
> "Key Pair" > add the key pair you created
> "Launch instance"

Add a public IP to the instance
1. Go to "Project" > "Compute" > "Instances" > from the "Actions" menu on the instance you created select "Associate Floating IP"
> select the "+" button next to the "IP Address" field
> select "Pool" "ext-net-01 > "Allocate IP"
> "Associate"

Log in to your new instance using the floating IP and the ssh key you created.
1. ssh -i mykeypair.pem ubuntu@1.2.3.4
In this example the ssh key pair I created was named mykeypair and the public ip is "1.2.3.4" and the image I used was an Ubuntu image.
If you used any other image you can find the default user names here https://elastx.zendesk.com/hc/en-us/articles/214237986-How-to-log-in-to-your-new-Linux-instance

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.