Computer Science & Engineering: Department of
Computer Science & Engineering: Department of
Computer Science & Engineering: Department of
Experiment 2.3
Aim: Discover a method for initiating a virtual machine using the TryStack (Online Open
Stack Demo Version).
TryStack.org Homepage
I assume that you already join to the Facebook Group and login to the dashboard. After you
log in to the TryStack, you will see the Compute Dashboard like-
In this post, I will show you how to run an OpenStack instance. The instance willbe
accessible through the internet (have a public IP address). The final topology will like:
Network topology
As you see from the image above, the instance will be connected to a local network and the
local network will be connected to internet.
Network? Yes, the network in here is our own local network. So, your instanceswill be not
mixed up with the others. You can imagine this as your own LAN (Local Area Network) in
the cloud.
Now, we will create an instance. The instance is a virtual machine in the cloud,like AWS
EC2. You need the instance to connect to the network that we just created in the previous
step.
I guess you already know what router is. In the step 1, we created our network, but it is
isolated. It doesn’t connect to the internet. To make our network has an internet connection,
we need a router that running as the gateway to the internet.
Floating IP address is public IP address. It makes your instance is accessible from the
internet. When you launch your instance, the instance will have a private network IP, but no
public IP. In OpenStack, the public Ips is collected in a pool and managed by admin (in our
case is TryStack). You need to request a public (floating) IP address to be assigned to your
instance.
Step 5: Configure Access & Security OpenStack has a feature like a firewall. It can
whitelist/blacklist your in/outconnection. It is called Security Group.
Go to Compute > Access & Security and then open Security Groups tab.
In default row, click Manage Rules.
Click Add Rule, choose ALL ICMP rule to enable ping into your instance, and then
click Add.
Click Add Rule, choose HTTP rule to open HTTP port (port 80), and then click Add.
Click Add Rule, choose SSH rule to open SSH port (port 22), and then click Add.
You can open other ports by creating new rules
Now, you can SSH your instances to the floating IP address that you got in thestep 4. If you
are using Ubuntu image, the SSH user will be ubuntu.
RESULT: