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" > Add "DNS Name Servers" > "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" > "Key Pairs" > select "Create Key Pair" > set key pair name > "Create Key Pair" > save the private key

Create Security Group
1. Go to "Project" > "Network" > "Security Groups" > 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 an IP address under "CIDR" if you want to limit access > "Add" 

Create instance
1. Go to "Project" > "Compute" > "Instances" > select "Launch Instance"
> set instance name > "Next"
> select "Image" in"Select Boot Source" >  select "No" in "Create New Volume"
> select image (ubuntu-20.04-server-latest for example) > "Next"
> select a flavor (v1-standard-1 for example) > "Next"
> your network should already be selected > "Next"
> you do not need to select any port > "Next"
> add the security group you created earlier > "Next"
> the key pair you created earlier should already be selected 
> "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" "elx-public1" > "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?
2 out of 2 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.