Cloudcomputinglabmanual Cse
Cloudcomputinglabmanual Cse
TABLE OF CONTENTS
PAGE
S.NO DATE NAME OF THE EXPERIMENT SIGNATURE
NO
EX.NO:1 INSTALL VIRTUALBOX/VMWARE WORKSTATION WITH DIFFERENT
Aim:
Procedure:
Downloading and installing VMware
Step 1: Download VMware
Step 14: Browse the downloaded Ubuntu file and click next
Step 17: Select create a new virtual disk and click next
Step 25: Thus we have installed VMware Workstation with different flavours of linux on top of
windows
Result:
EX.No:2 Install a C compiler in the virtual machine created using
Date: virtual box and execute a simple program
Aim:
Procedure:
Step 1: Open the terminal on Ubuntu and install C compiler – “sudo apt install gcc”
Result:
EX.No:3 Transfer files from one host machine to another virtual machine
Date:
Aim:
Procedure:
Files that are to be shared to virtual machine
Step 5:Now right click ubunu 64-bit(VM name) and select properties,then go to optios tab
Step 6:Select the shared folders,change the radio button to “Always enabled” and click Add
Step 11:
Step 12:The files can be accessed in Read Only Mode in the VM now
Result:
EX.No:4 Installation of a Google App Engine
Date:
Aim:
Step 2:Select setting up your environment development and click on install the and initialize
the cloud sdk.
Step 3:Download the sdk installer and install it.
Result:
EX.No:5 Launch a web application using GAE launcher
Date:
Aim:
To launch the web applications by using the GAE launcher.
Procedure:
Step 1:Go to the following website
https://console.cloud.google.com/start/appengine?_ga=2.268575284.470742299.1604761115-
1715615348.1604761115&pli=1 and create a new project.
Step 2:Select python and click next.
Step 3:Open the cloud shell and follow the steps in the tutorial.
Clone the repository by using the given command
Step 4:Create the virtual environment
Result:
EX.No:6 Install Hadoop single mode cluster and run simple applications
Date:
Aim:
Procedure:
Update the packages
Installing java
Assigning a dedicated user on hadoop to perform operations
Run the program //word count prgm will be in the jar file by default which we are using now.
Result:
EX.No:7 Simulate a cloud scenario using CloudSim and run a
Date: scheduling algorithm
Aim:
Procedure:
Step 1: Download CloudSim installable files from:
https://code.google.com/p/cloudsim/downloads/list and unzip the download
.
Step 2: Open Netbeans and create a new project named “Clousim”
Step 3: Type the code and add the jar file to the libraries. The jar file will be in the
extracted cloudsim.
Step 4:Run the application
OUTPUT:
Result:
EX.No:8 Find a procedure to launch virtual machine using
Date: trystack (Online Openstack Demo Version)
Overview: What we will do? In this , I will show you how to run an OpenStack instance.
The instance will be accessible through the internet (have a public IP address).
Yes, the network in here is our own local network. So, your instances will be not mixed up
with the others. You can imagine this as your own LAN (Local Area Network) in the cloud.
4. In Subnet Details tab, fill DNS Name Servers with 8.8.8.8 (Google DNS) and then
click Create.
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.
5. Select Image Name with Ubuntu 14.04 amd64 (243.7 MB) if you want
install Ubuntu 14.04 in your virtual machine.
1. Click [+] button of Key Pair to import key pair. This key pair is a public
and private key that we will use to connect to the instance from our machine.
1. Fill Key Pair Name with your machine name (for example Edward-
Key).
5. Click Launch.
6. If you want to create multiple instances, you can repeat step 1-5. I created one
more instance with instance name Ubuntu 2.
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.
1. Go to Network > Routers and then click Create Router.
2. Fill Router Name for example router1 and then click Create router.
3. Click on your router name link, for example router1, Router Details page.
4. Click Set Gateway button in upper right: 1. Select External networks with external.
2. Then OK.
6. Go to Network > Network Topology. You will see the network topology. In the
example, there are two network, i.e. external and internal, those are bridged by a router.
There are instances those are joined to internal network.
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.
OpenStack has a feature like a firewall. It can whitelist/blacklist your in/out connection.
It is called Security Group.
1. Go to Compute > Access & Security and then open Security Groups tab.
2. In default row, click Manage Rules.
3. Click Add Rule, choose ALL ICMP rule to enable ping into your instance, and
then click Add.
4. Click Add Rule, choose HTTP rule to open HTTP port (port 80), and then click Add.
5. Click Add Rule, choose SSH rule to open SSH port (port 22), and then click Add.
6. You can open other ports by creating new rules.
Step 6: SSH to Your Instance
Now, you can SSH your instances to the floating IP address that you got in the step 4. If
you are using Ubuntu image, the SSH user will be ubuntu.