CC File Original
CC File Original
Session 2022-26
SUBMITTED TO – SUBMITTED BY-
Ms Jappreet Kaur DEEPESH (2224347)
Group 6 B
CLOUD COMPUTING
1
1. What is Cloud Computing?
Cloud Computing is the delivery of computing services such as servers, storage,
databases, networking, software, and more over the Internet.
It enables users to access technology services on-demand without owning physical
hardware.
It follows a pay-as-you-go model, meaning you only pay for what you use.
Common examples include using Google Drive for file storage or hosting a website on
AWS instead of a physical server.
3
Google Cloud Platform (GCP): Big data, AI, open-source tools.
IBM Cloud: AI, hybrid cloud, enterprise services.
Oracle Cloud: Strong database and analytics services.
9. Virtualization vs Containerization
Virtualization: Uses a hypervisor to run multiple OS on one machine.
Containerization: Shares OS kernel and isolates apps using containers.
Containers are lighter and start faster than virtual machines.
Tools: Docker for containers, Kubernetes for orchestration.
EXPERIMENT - 1
Introduction to VirtualBox
Oracle VM VirtualBox (formerly Sun VirtualBox, Sun xVM VirtualBox and Innotek
VirtualBox) is a free and open-source hosted hypervisor for x86 virtualization, developed by
Oracle Corporation. Created by Innotek, it was acquired by Sun Microsystems in 2008, which
was in turn acquired by Oracle in 2010.
VirtualBox may be installed on Windows, macOS, Linux, Solaris and OpenSolaris. There are
also ports to FreeBSD and Genode. It supports the creation and management of guest virtual
machines running Windows, Linux, BSD, OS/2, Solaris, Haiku, and OSx86, as well as limited
virtualization of macOS guests on Apple hardware. For some guest operating systems, a "Guest
Additions" package of device drivers and system applications is available, which typically
improves performance, especially that of graphics.
6
Steps to Install VirtualBox on different OS
a) Windows
1) Open the VirtualBox website. Go to https://www.virtualbox.org/ in your computer's
Internet browser. This is the website from which you'll download the VirtualBox
setup file.
2) Click Download VirtualBox. It's a blue button in the middle of the page. Doing so
will open the downloads page.
3) Click Windows hosts. You'll see this link below the "VirtualBox 6.1.14
platform packages" heading. The VirtualBox EXE file will begin downloading
onto your computer.
4) Open the VirtualBox EXE file. Go to the location to which the EXE file downloaded
and double-click the file. Doing so will open the VirtualBox installation window.
5) Navigate through the installation prompts. Do the following. Click Next on the first
three pages. Click Yes when prompted. Click Install. Click Yes when prompted.
7
6) Click Install when prompted. Doing so will allow VirtualBox to begin installing on
your computer.
7) Click Finish when prompted. It's in the lower-right side of the window. Doing so will
close the installation window and open VirtualBox. Now that you've installed and
opened VirtualBox, you can create a virtual machine in order to run any operating
system on your PC.
8
b)Linux
1) Open Terminal. This step will vary depending on your version of Linux, but you
can usually open Terminal by selecting Image titled Macterminal.png Terminal
2) Enter the installation command. Type in sudo apt-get install virtualbox-qt and press ↵
from the Menu. The Terminal window will pop up.
Enter.
3) Enter your password when prompted. Type in the password that you use to log into your
computer, then press Enter.
4) Confirm the installation. Type y when prompted, then press Enter.
5) Wait for VirtualBox to finish installing. This will take a few minutes. When you see
your computer account's username appear to the left of the command line, Terminal has
successfully installed VirtualBox and is awaiting further commands.
6) Open VirtualBox. Type in virtualbox and press ↵ Enter to do so. This will prompt the
9
VirtualBox main window to open. Now that you've installed and opened VirtualBox, you
can proceed with creating a virtual machine in order to run any operating system on your
computer.
10
EXPERIMENT - 2
Step 3.1:StartVirtualBox, and click on the New symbol. Give the virtual OS a
relevant name.
Step 3.2: Allocate RAM to the virtual OS. My system has 8GB of RAM and I decided to
allocate 2GB.
11
Step 3.3: Create a virtual disk. This serves as the hard disk of the virtual Linux system. It
is where the virtual system will store its files.
Step 3.5: choose either the “Dynamically allocated” or the “Fixed size” option for creating the
virtual hard disk.
12
Step 3.6:The recommended size is 10 GB and I allocate 14GB.
Step 3.7: Now boot that ISO and install Ubuntu Linux as a virtual operating system.
13
Step 3.9: Click 'Continue' button.
Step 3.10: Erase disk and install Ubuntu' option is selected and click 'Install Now'
button.
14
Step 3.12: In 'Who are you? Put the name and other options.
15
Step 3.15: Now Ubuntun is installed
16
EXPERIMENT - 3
AIM:-
1. Simulate a cloud scenario using simulator. (CloudSim)
2. Cloud scenario using CloudSim simulator: Implementing VMs,
Data centers, Cloudlets, etc.
DESCRIPTION: -
1. Simulate a cloud scenario using simulator. (CloudSim)
2. Pres-Requisites
open
17
Step 2: navigate the menu: File -> New -> java Project, to open the new project wizard
18
Step 3: Now a detailed new project window will open, here you will provide the project name
and the path of CloudSim project source code, which will be done as follows:
Step 4:Now open ‘Libraries’ tab and if you do not find commons-math3- 3.x.jar (here ‘x’ means
the minor version release of the library which could be 2 or greater) in the list then simply click
on ‘Add External Jar’ (commons- math3-3.x.jar will be included in the project from this step)
Once you have clicked on ‘Add External JAR’s‘ Open the path where you have unzipped the
commons-math binaries and select ‘Commons-math3-3.x.jar’ and click on open.
19
Click on the finish and creat the cloudsim project
20
Step 5: After confriguration Screen will look like this
EXAMPLES SCENARIOS:
Cloud scenario using CloudSim simulator: Implementing VMs, Data centers, Cloudlets,etc.
Example 1
A simple example showing how to create a datacenter with one host and run one cloudlet on it.
21
Output:
Example 2
A simple example showing how to create a datacenter with one host and run two cloudlets on it.
The cloudlets run in VMs with the same MIPS requirements.
The cloudlets will take the same time to complete the execution.
Output:
22
Example 3
A simple example showing how to create a datacenter with two hosts and run two cloudlets on it.
The cloudlets run in VMs with different MIPS requirements. The cloudlets will take different
time to complete the execution depending on the requested VM performance.
Output:
38