AD1735 - Virtualization and Cloud Computing Lab Manual

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 68

DEPARTMENT

OF
COMPUTER SCIENCE AND ENGINEERING

B.TECH Artificial Intelligence & Data


Science

LABORATORY MANUAL CUM RECORD


(AS PER OUTCOME BASED EDUCATION - OBE)

AD1735 – Virtualization and Cloud


Computing Laboratory
DEPARTMENT :

NAME :

REGISTER NUMBER :

ROLL NO :

BRANCH :

YEAR & SECTION :

SEMESTER :

Bona-fide Record of work done in the


of Kamaraj College of Engineering and Technology, Near Virudhunagar, during
the Academic Year 2023 - 2024

COURSE INCHARGE HEAD OF THE DEPARTMENT

Submitted for the Practical Examination held on at


Kamaraj College of Engineering and Technology, Near Virudhunagar.

INTERNAL EXAMINER EXTERNAL EXAMINER


CONTENT

Section: 1 Course Introductions

i. Introduction of Course
ii. Syllabus –List of Experiment - Reference books

Section: 2 Outcome Based Education (OBE)

i. Vision, Mission of Institution, Department, PEO’s


ii. OBE- Outcome Based Education - Introduction
iii. Program Outcome- PO, PSO
iv. Course Outcome - Course Objectives, Course Outcome
(CO) Mapping of CO vs PO - CO-PO Matrix (Calculation of
Expected POs value)
v. Demonstration of - CO Attainment (Internal Assessment),
Action Plan
vi. Rubrics for Experiments

Section: 3 Laboratory Experiments Skill Development

Experiments
(Planning- Aim; Description; Procedure;
Program; Viva;
Assessment – Rubrics- Mark allotted and awarded;
Result;
Observations - by student)

Section: 4 Self Learning

i. Self learning – Virtual lab & E-certificate course website link


INDEX

CO
Marks Attained?
Ex.No Date Experiment Name PageNo Sign
(100) (Yes/No)
Install Virtualbox with
1 different flavours of OS
Attach virtual block to the
virtual machine and check
2 whether it holds the data
even after the release of the
virtual machine
Install a C compiler in the
3
virtual machine
Show the virtual machine
migration based on the
4
certain condition from one
node to the other
Find a procedure to
transfer the files from one
5
virtual machine to another
virtual machine
Find a procedure to launch
virtual machine using
6
trystack (Online Openstack
Demo Version)
Laboratory Specific Instructions to Students

DOs:

1. Remove your footwear, outside the lab in its place.


2. Get permission before entering the lab.
3. Wear lab coat and ID Card while in Lab.
4. Record the use of system in the login register.
5. Report all problems to faculty in-charge.
6. Login in to the system with your credential only.
7. Remain seated in your allotted place and work quietly.
8. In case of any doubt ask the available teaching faculty.
9. Save all your work in the server with your login credential.
10. Keep your lab neat and clean.
11. Logoff and Properly shutdown the system after usage.
12. Switch off power supply (after proper shutdown) of the system and
arrange your chairs before leaving the laboratory.
13. Use internet facility, with the permission of faculty, only for
educational purpose.

Dont's:

1. Possession of eatables, drinks and own baggage inside the lab


is prohibited.
2. Sharing of username and password is not allowed.
3. Don't Change the Computer settings.
4. Never attempt to fix a system problem on your own.
5. Moving any equipment from its original position is prohibited.
6. Usage of pen drive/mobile phone storage/external disk in laboratory is
restricted.
7. Throwing garbage in the laboratory is not allowed.
8. Loitering in the laboratory is restricted.
9. Making noise in the laboratory is strictly prohibited.
10. Don't use internet facility in the lab without the permission of faculty.
Section: 1 Course Introductions

Introduction of Lab Course


Course Code
: AD1735
(As per Curriculum)
Course Code
: 20AD407
(As per NBA)
Course Name : Virtualization and Cloud Computing Laboratory

Importance of Course (150 Words write up)

a. Scalability: Cloud computing allows you to use as many or as few resources as

you need. Therefore, depending on your business needs or projected traffic to your

business you can choose to increase or decrease your investment in IT

infrastructure

b. Saving Costs: Cloud computing helps businesses to reduce costs in various ways.

Companies only pay for the resources they use, making this process a more

economical option than having to buy and manage their own resources. Cloud

computing also results in considerable savings in Capital Expenditure and

Operating Expenditure because companies do not have to invest in expensive

hardware, storage devices, software, etc.

c. Disaster Recovery: With all data stored in the ‘cloud’ backup and recovery of

data and applications is quicker and more reliable. This applies to all sizes of

organizations and volumes of data. 20% of cloud users claim disaster recovery in

four hours or less as opposed to only 9% of non-cloud users.

d. Security: It is the duty and responsibility of the cloud service providers to

carefully monitor security. Compare this against an in-house I.T. department, for
Syllabus – List of Experiments
Course Code
: AD1735
(As per Curriculum)
Course Code
: 20AD407
(As per NBA)
Course Name : Virtualization and Cloud Computing Laboratory

Aim :  To learn and develop applications using gcc and make


 To learn and use version control systems
 To develop web applications in cloud
 To learn the design and development process involved in
Objectives :
creating a cloud-based application
 To learn to implement and use parallel programming using
Hadoop

1a Install Virtualbox with different flavours of OS


1b Install a C compiler in the virtual machine
2 Create instances and volume attachment in AWS
3 Setup a Private Cloud Using Open Stack or Eucalyptus
List of Experiments : 4 Install Open Stack Object Storage -Swift in Ubuntu.
5 Implement OpenStack Nova – Compute and Image
services –Glance
6 Setup Openstack Using DevStack
7 Install a Single node hadoop cluster
8 Implement Map Reduce concept for word count
program
9 Implement VM Scheduling Using CloudSim
10 Use version control systems command to clone, commit,
push, fetch, pull, checkout, reset, and delete repositories
using Git Bash and Git Hub.
OBE- Outcome Based Education - Introduction
Aim:
i. Outcomes are more like signboards and roadmaps to help the learners reach where
they’re supposed to reach, and contribute to progress.
ii. Outcome measurements provide the basis for continuous improvement in the
quality of learning
Terminology Description
i. With the introduction of the washington accords, our higher
education demands better, intelligent workflows for the sake of
improving quality
ii. The accreditation and regulatory organisations including NBA, NAAC,
Accreditation
AICTE etc. has clearly made their intentions clear about introducing a
skill-based, competency nurturing learning experience
iii. As of the NBA, their accreditation methods and assessment
parameters are based on OBE

i. Deciding outcomes for academic achievements and it’s attainment


for assessment and formulation is based on a learning theory
called Outcome Based Education(OBE)
ii. OBE is an educational theory that bases each part of an
OBE- educational system around goals (outcomes).
Outcome iii. Student role: By the end of the educational experience, each
Based student should have achieved the goal. There is no single specified
Education style of teaching or assessment in OBE; instead, classes, opportunities,
and assessments should all help students achieve the specified
outcomes.
iv. Faculty role: The role of the faculty adapts into instructor, trainer,
facilitator, and/or mentor based on the outcomes targeted.

i. Stating what you want your students to be able to do at the end


of the program,
OBE ii. Assessing the students whether they are able to do what they
emphasizes are expected to do to do what they are expected to do,
on iii. Orienting teaching and other academic processes to facilitate
students to do what they are expected to do.
Note: Outcomes are different from your course objectives.

i. An objective is more like a plan, or a road map to reach/attain the


outcomes.
Course ii. A course objective describes what a faculty member will cover in a
Objectives
course. They are generally less broader than desirable goals and
more broader than student learning outcomes.

i. Outcome — A detailed description of what a student must be able to do


Course at the conclusion of a course.
Outcomes ii. POs are attained through program specific Core Courses, which has their
(COs) own, previously set outcomes to attain. These course-specific outcomes
are called Course Outcomes.
iii. No.of CO statement: Each course is designed to meet (about 5–6)
Course Outcomes.
iv. Structure of COs Statements: The Course Outcomes are stated in
such a way that they can be actually measured. (SMART –“S-
Specific; M-Measurable; A-Achievable; R-Realistic; T-Time bound”)
v. Framing of COs: COs are set by the institution, by consulting with
the department heads, faculty, students and other stakeholders.

i. POs are statements about the knowledge, skills and attitudes


(attributes) the graduate of a formal engineering program should
have.
Program ii. POs deal with the general aspect of graduation for a particular
Outcomes
program, and the competencies and expertise a graduate
(POs)
will possess after completion of the program.
iii. These are broad and cover a wider area than of COs. the NBA has set 12
Program Outcomes or Graduate Attributes for the sake of unity
and quality assurance.

i. Map the objective to the outcomes to analyse and document


their attainment
ii. Each CO can be identified to address a subset of POs
iii. Based on the number of COs and sessions dedicated to them , it is
Mapping possible to identify the strength of mapping (1,2 or 3) to
of CO vs
POs
PO
iv. Based on these strength of selected POs a CPO matrix can be established.
PO matrix can be established
Course PO1 PO2 PO3 PO11 PO12
CO1 1 0 3 1 2 3 2

i. Program Educational Objectives (PEO) are statements that describe


the career and professional accomplishments that the program is
preparing the graduates to achieve.
Program ii. Measuring PEOs: PEO’s are measured 4–5 years after graduation.
Educational iii. They are set in order to measure the effectiveness of the program, and to
Objectives check whether it has prepared the students to deal with the
(PEOs) real world, where they could apply and use the skills and knowledge
they’ve learned to good use.
iv. No.of PEOs: Each program shall specify 2–4 program specific
outcomes for the accreditation by the NBA.

CO Assessment:
i. The assessments should be in alignment with the COs
ii. Question paper should be so set to assess all COs
iii. The average marks obtained in assessments against items for each
CO will indicate the CO attainment
CO Attainment gaps:
CO iv. Instructors can set targets for each CO of his/her course
Attainment
v. Attainment gaps can therefore be identified
vi. Instructor can plan to reduce the attainment gaps or enhance
attainment targets enhance attainment targets
CO Attainment:
vii. If the assessment is in alignment with COs, the performance of the
students indicates the CO attainment
Program Outcome (PO)
( Graduate Attributes)
At end of the laboratory course,
PO/ Engineering Graduate will be able Learning
attained the Outcomes/Skill of the
PSO to : Level
student- ( Remark by students)
Engineering knowledge: Apply the
knowledge of mathematics, science,
engineering fundamentals and an K3
PO 1
engineering specialization for the - Apply

solution of complex engineering


problems.
Problem analysis: Identify,
formulate, research literature and
analyze complex engineering problems
K4
PO 2 reaching substantiated conclusions
- Analyze
using first principles of mathematics,
natural sciences and engineering
sciences.
Design/development of solutions:
Design solutions for complex
engineering problems and design system
K5
components or processes that meet the
PO 3 -
specified needs with appropriate
Evaluate
consideration for public health and
safety, and cultural, societal, and
environmental considerations.
Conduct investigations of complex
problems: Use research-based
knowledge and research methods K5
PO 4 including design of experiments, -

analysis and interpretation of data, and Evaluate

synthesis of the information to provide


valid conclusions.
Modern tool usage: Create, select and
apply appropriate techniques, resources
and modern engineering and IT tools,
K6
PO 5 including prediction and modeling to
- Create
complex engineering activities, with an
understanding of the limitations.
The engineer and society: Apply
reasoning informed by the contextual
knowledge to assess societal, health, K3
PO 6
safety, legal and cultural issues and the - Apply

consequent responsibilities relevant to


the professional engineering practice.
Environment and sustainability:
Understand the impact of the
K2
professional engineering solutions in
PO 7 Understa
societal and environmental contexts,
nd
and demonstrate the knowledge of, and
need for sustainable development.
Ethics: Apply ethical principles and
commit to professional ethics and K3
PO 8
responsibilities and norms of the - Apply

engineering practice.
Individual and team work: Function
effectively as an individual, and as a A3
PO 9
member or leader in diverse teams, and -Value

in multidisciplinary settings.
Communication: Communicate
effectively on complex engineering
activities with the engineering
community and with the society at large,
A3
PO 10 such as, being able to comprehend and
- Value
write effective reports and design
documentation, make effective
presentations, and give and receive clear
instructions.
Project management and finance:
Demonstrate knowledge and
understanding of the engineering and
K3
PO 11 management principles and apply these
- Apply
to one’s own work, as a member and
leader in a team, to manage projects and
in multidisciplinary environments.
Life-long learning: Recognize the
need for, and have the preparation and A5
PO 12 ability to engage in independent and Characte

life-long learning in the broadest context rize

of technological change.

Program Specific Outcome (PSOs)


At the end of the program, the
student
Ability to design and solve problems in
the field of Electronics &
Communication Engineering by
applying the knowledge acquired from K4
PSO 1
Electronic Devices and Circuits, VLSI - Analyze

Design, Embedded systems, Analog &


Digital Communication and other allied
topics.
Ability to identify, formulate and solve
the industrial problems using efficient
technical approaches and ability to K5
PSO 2 function in any multi-disciplinary work -

group for technical contribution as well Evaluate

as independent lifelong learner to adapt


to changing engineering technology.
Flow Chart -Attainment of Program Educational Objectives (PEO’s) through PO & CO
Course Outcome (COs)
Course Code
: AD1735
(As per Curriculum)
Course Code
: 20AD407
(As per NBA)
Course Name : Cloud Computing Laboratory

Course Objectives
 To understand the concepts of cloud computing
 To Explain migration concepts in virtualization
 To Familiarize with cloud software environment and security in cloud

Course Outcomes
On successful completion of this course, students will be able to
CO CO-Statements Knowledge Level

CO1 Outline the evolution of Cloud Computing and its characteristics K2 - Understand

Summarize the basic concepts and implementation levels of


CO2 K2 - Understand
virtualization
Illustrate the architecture, service and delivery models of
CO3 K2 - Understand
compute and storage cloud
Explain the core issues of resource management and security in
CO4 K2 - Understand
cloud computing

CO5 Demonstrate the features of various cloud software platforms K3 - Apply

Laboratory Assessment Tool


S.No Assessment Tool Weightage (%)
1 Continuous Assesment 75%
2 Model Exam 25%

Target Value = 80 % of Marks


CO –PO Mapping
Program
Program outcomes Specific
outcomes
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2
CO
(K3) (K4) (K5) (K5) (K6) (K3) (K2) (K3) (A3) (A3) (K3) (K5) (K3) (K5)

CO1 L L M L H L - - L L - L M M

CO2 M L M M H L - - L L - M M M

CO3 H M M M H L - - L L - M M M

CO4 M L M M H L - - L L - M M M

CO5 M M M M H L - - L L - M M M

CO –PO Matrix
Program
Program outcomes Specific
outcomes
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2
CO
(K3) (K4) (K5) (K5) (K6) (K3) (K2) (K3) (A3) (A3) (K3) (K5) (K3) (K5)
CO1 1 1 2 1 3 1 - - 1 1 - 1 2 2

CO2 2 1 2 2 3 1 - - 1 1 - 2 2 2

CO3 3 2 2 2 3 1 - - 1 1 - 2 2 2

CO4 2 1 2 2 3 1 - - 1 1 - 2 2 2

CO5 2 2 2 2 3 1 - - 1 1 - 2 2 2
PO
Expected
(Round off 1.8 1.4 2 1.8 3 1 - - 1 1 - 1.8 2 2
Average)

Note: Target Value = 80 %


If CO Attainment,
YES = Laboratory Mark (%) >= Target Value (%); NO= Laboratory Mark (%) < Target Value (%)
LIST OF EXPERIMENTS & ITS CO

Blooms Marks CO
Course Taxonomy Obtained Attained?
S.No Experiment Name
Outcome level Out of (Y/N)
100
Install Virtualbox with CO1
1 K3
different flavours of OS
Attach virtual block to the CO1
virtual machine and check
2 whether it holds the data even K3
after the release of the virtual
machine
Install a C compiler in the CO2
3 K3
virtual machine
Show the virtual machine CO3
migration based on the
4 K3
certain condition from one
node to the other
Find a procedure to transfer CO4
the files from one virtual
5 K3
machine to another virtual
machine
Find a procedure to launch CO5
virtual machine using
6 K3
trystack (Online Openstack
Demo Version)
CO ATTAINMENT - Internal Assesment EVALUATION SHEET
Marks Average CO
Course Obtained of each Attained?
Experiment Name
Outcome Out of CO (Y/N)
100
Install Virtualbox/VMware Workstation
20AD407.1 with different flavours of linux or
windows OS on top of windows7 or 8
Find procedure to attach virtual block to
the virtual machine and check whether it
20AD407.1
holds the data even after the release of
the virtual machine
20AD407.2 Install a C compiler in the virtual
machine created using virtual box and
execute Simple Programs
20AD407.3 Show the virtual machine migration
based on the certain condition from one
node to the other
20AD407.4 Find a procedure to transfer the files
from one virtual machine to another
virtual machine
20AD407.5 Find a procedure to launch virtual
machine using trystack (Online
Openstack Demo Version)
Over All Total
Average Mark (Out of 100) – ( A)

Co Attainment (Internal Assessment) Evaluation


Experiment Model Exam CO Attained
A B C D
Assessment
Assessment
Mark Obtained Weightage (75% Mark Obtained E=((B+D) *0.50)
Weightage 25% of
(100) of 100 Marks (100)
Mark Obtained
Obtained)

Measuring Tools for CO attainment (Components & Weight age)


Internal
External
Experiment - 75% 50% 50%
University Exam
Model Exam - 25%
Action Plan:
(If CO Not Attained)

Reason for not


CO Attaining CO Remedial Action Plan Remarks Signature
Rubrics for assessment
Course Code
: AD1735
(As per Curriculum)
Course Code
: 20AD407
(As per NBA)
Course Name : Virtualization and Cloud Computing Laboratory

Rubrics

Category Rubrics

1 Mark - Students must wear lab coat.


Dress Code
0 Mark - No lab coat.
1 Mark - Students must bring their manual cum record
Discipline note book.
Note book
(3)
0 Mark - No manual cum record note book.
1 Mark - Students must be present inside the lab in time.
Punctuality
0 Mark - Not in time.
2 Marks - Students should write the program for the given
Preparation Prior experiment.
(2) knowledge on
1 Mark – Partially written.
experiment
0 Mark –No idea about the experiment.
3 Marks - Students should successfully complete the
Completion execution within the allotted hours.
1 Mark - Partially completed.
Performance
(5) 2 Marks - Students should involve themselves while doing
Participation their experiments.
1 Mark - Involvement is less.

Viva-Voce Based on the performance, marks will be allotted.


(5)
5 Marks - The students should submit their completed
record before entering into next lab.
Record
Completion
(5) 3 Marks - Late submission within a week.
1 Mark – Late submission after one week.
Ex. No: 1 & 2 Install Virtualbox/VMware Workstation with different flavours of
Date: linux or windows OS on top of windows7 or 8

AIM
To install Guest OS on Virtual Machine using Oracle VirtualBox.

DESCRIPTION
VIRTUALIZATION
 Virtualization is the creation of virtual servers, infrastructures, devices and
computing resources.
 Virtualization changes the hardware-software relations and is one of the
foundational elements of cloud computing technology that helps utilize the
capabilities of cloud computing to the full.
 Virtualization techniques allow companies to turn virtual their networks, storage,
servers, data, desktops and applications.

Hypervisor or Virtual Machine Monitor (VMM)


A hypervisor or virtual machine monitor (VMM) is a piece of computer software,
firmware or hardware that creates and runs virtual machines. A computer on which a
hypervisor is running one or more virtual machines is defined as a host machine. Each
virtual machine is called a guest machine. The hypervisor presents the guest operating
systems with a virtual operating platform and manages the execution of the guest
operating systems. Multiple instances of a variety of operating systems may share the
virtualized hardware resources.

Types of Virtualization
 Operating System Level Virtualization: Server virtualization method where
the kernel of an operating system allows for multiple isolated user- space
instances, instead of just one. Such instances (sometimes called containers,
software containers, virtualization engines (VE), virtual private servers (VPS))
may look and feel like a real server from the point of view of its owners and
users.
 Platform / Hardware Virtualization: Hardware virtualization or platform
virtualization refers to the creation of a virtual machine that acts like a real
computer with an operating system. Software executed on these virtual machines
is separated from the underlying hardware resources. For example, a computer
that is running Microsoft Windows may host a virtual machine that looks like a
computer with the Ubuntu Linux operating system; Ubuntu-based software can
be run on the virtual machine.
 In hardware virtualization, the host machine is the actual machine on which
the virtualization takes place, and the guest machine is the virtual machine. The
words host and guest are used to distinguish the software that runs on the
physical machine from the software that runs on the virtual machine. Different
types of hardware virtualization include:
o Full Virtualization: Almost complete simulation of the actual hardware to
allow software, which typically consists of a guest operating system, to run
unmodified.
o Partial Virtualization: Some but not all of the target environment is
simulated. Some guest programs, therefore, may need modifications to run
in this virtual environment.
o Para Virtualization: A hardware environment is not simulated; however,
the guest programs are executed in their own isolated domains, as if they
are running on a separate system.
 Application Virtualization: A software technology that encapsulates computer
programs from the underlying operating system on which it is executed. A fully
virtualized application is not installed in the traditional sense, although it is still
executed as if it were.

PROCEDURAL STEPS
1. Download and Install Oracle Virtual Box latest version & Extension
Package. Link 1: https://www.virtualbox.org/wiki/Downloads
Link 2: https://www.oracle.com/in/virtualization/technologies/vm/downloads/
virtualbox- downloads.html
2. Download Ubuntu 14.4 OVA (Open Virtual Appliance)
Link: https://www.osboxes.org/ubuntu/

3. The files are downloaded in Local Machine  Click the Oracle VM VirtualBox 6.0.8
& Setup Wizard Move to run time environment (Open Terminal)

4. Custom Setup  Check VirtualBox Application


5. Custom Setup  Select the features to be installed

6. Warning: Network Interfaces  Click ‘Yes’ & Proceed to install


7. Ready to install  Click ‘Install’

8. Oracle VM VirtualBox 6.1.22 installing


9. To install device software  Click ‘Install’

10. Oracle VM VirtualBox 6.1.22 installation is complete  Click ‘Finish’


11. Import the Oracle VM Virtual Extension Pack into Oracle VirtualBox
12. Click ‘Install’ Oracle VM Virtual Extension Pack

13. VirtualBox License  Click ‘I Agree’


14. Extension Pack installation successful  Click ‘OK’

15. To install Virtual Machine: File  Import Appliance


16. Select Ubuntu 14.4 OVA from directory
17. Appliance Settings  Choose ‘RAM’ Size  Click ‘Import’

18. Importing the Virtual Disk Image


19. Guest OS ‘Ubuntu 14.4’ is installed successfully and Click ‘Start’ button to lunch the
virtual machine

20. Login to Ubuntu 14.4


Login Details:
User name: hadoop
Password: Test1234
VIVA QUESTIONS

1. What is virtualization in cloud computing?

2. What is Host OS in Virtualization?

3. What is Guest OS in Virtualization?

4. List some Virtual Machine Software.

5. Name the Virtual Machine Software used in our lab exercise.

RESULT
Thus, the Guest OS is installed on Virtual Machine using Oracle VirtualBox.

Observation by students: (what student able to?)

1.

MAX. MARKS MARKS


CATEGORY
ALLOTED AWARDED
DISCIPLINE 3
PREPARATION 2
PERFORMANCE 5
VIVA – VOCE 5
RECORD 5
TOTAL 20
Ex. No: 3
Date: Installing C Complier on Guest OS

AIM
To install C Complier on Guest OS ‘Ubuntu 14.4’.
PROCEDURAL STEPS
1. To download package information from all configured sources  $ sudo apt-get
update
2. To install C Compiler on Ubuntu 14.4  $ sudo apt-get install gcc
3. To install C++ Compiler on Ubuntu 14.4  $ sudo apt-get install g++
4. Create a file to write C program  $ sudo gedit <<file_name>>.c
To compile C program  $ gcc <<file_name>>.c
To run C program  $ ./a.out
VIVA QUESTIONS

1. What is Parallel Computing?

2. What is Distributed System?

3. List the compilers to run C program.

4. Name the command to compile C program in Linux.


RESULT
Thus, the C Complier is installed on Guest OS ‘Ubuntu 14.4’ and simple programs are
executed.

Observation by students: (what student able to?)

1.

MAX. MARKS MARKS


CATEGORY
ALLOTED AWARDED
DISCIPLINE 3
PREPARATION 2
PERFORMANCE 5
VIVA – VOCE 5
RECORD 5
TOTAL 20
Ex. No: 4 & 5
Date: Virtual Machine File Migration File and Node

AIM
To migrate files from one virtual machine to another virtual machine.

PROCEDURAL STEPS
1. Create two virtual machines in Oracle VM VirtualBox
Operating System used: CentOS

2. Set NAT Network in Oracle VM Virtual Box. File  Preferences


3. Choose Network  Add new NAT Network
4. Give Network Name (Eg: Lab)  Click “OK”
5. Configure NAT Network in both Virtual Machines
Select Virtual Machine  Click “Settings”  Select “Network”
6. Choose “NAT Network” option in Attached to  Select the NAT Network Name “Lab” 
Click “OK”
7. Start both Virtual Machines
Username: centos Password: centos

8. Check communication between the Virtual Machines


8.1 Get the IP address of both Virtual Machines
Open Terminal  To get IP address use “ifconfig” command
8.2 Check communication using “ping”
command ping “IP Address”  ping 10.0.2.4
9. To make connection between the Virtual Machines
9.1 Click “Places”  Home  Other Locations
9.2 To connect Virtual Machine: ssh://10.0.2.4 [ssh://IP Address]

9.3 Give Username: centos, Password: centos


9.4 Virtual Machine “10.0.2.4” is now connected
9.5 Now Files in Virtual Machine “10.0.2.4” can be accessed
VIVA QUESTIONS

1. Expansion of SSH is .

2. State the purpose of SSH protocol.

3. What is Network Address Translation Protocol?

RESULT
Thus, the file migration between VMs executed successfully.

Observation by students: (what student able to?)

1.

MAX. MARKS MARKS


CATEGORY
ALLOTED AWARDED
DISCIPLINE 3
PREPARATION 2
PERFORMANCE 5
VIVA – VOCE 5
RECORD 5
TOTAL 20
Ex. No: 6
Date: Launch virtual machine using trystack (Online Openstack Demo

AIM
To create Virtual Machine in Online OpenStack Cloud Platform.

DESCRIPTION
 OpenStack was introduced by Rackspace and NASA in July 2010.
 OpenStack is an Infrastructure as a Service known as Cloud Operating System, that
take resources such as Compute, Storage, Network and Virtualization Technologies
and control those resources at a data center level
 The project is building an open-source community to share resources and technologies
with the goal of creating a massively scalable and secure cloud infrastructure.
 The software is open source and limited to just open-source APIs such as Amazon.

OpenStack Architecture

 It is modular architecture
 Designed to easily scale out
 Based on (growing) set of core services

OpenStack Major Components


1. Keystone
2. Nova
3. Glance
4. Swift
5. Quantum
6. Cinder
KEYSTONE
 Identity service
 Common authorization framework
 Manage users, tenants and roles
 Pluggable back-ends (SQL,PAM,LDAP, IDM etc)
NOVA
 Core compute service comprised of
o Compute Nodes: Hypervisors that run virtual machines
 Supports multiple hypervisors KVM, Xen, LXC, Hyper-V and ESX
o Distributed controllers that handle scheduling, API calls, etc.
 Native OpenStack API and Amazon EC2 compatible API
GLANCE
 Image service
 Stores and retrieves disk images (Virtual machine templates)
 Supports RAW, QCOW, VHD, ISO, OVF & AMI/AKI
 Back-end Storage: File System, Swift, Gluster, Amazon S3
SWIFT
 Object Storage service
 Modeled after Amazon‘s Service
 Provides simple service for storing and retrieving arbitrary data
 Native API and S3 compatible API
NEUTRON
 Network service
 Provides framework for Software Defined Network
 Plugin architecture
o Allows integration of hardware and software-based network solutions
o Open vSwitch, Cisco UCS, Standard Linux Bridge, NiCira NVP

CINDER
 Block Storage (Volume) service
 Provides block storage for Virtual Machines (persistent disks)
 Like Amazon EBS service
 Plugin architecture for vendor extensions
 NetApp driver for cinder

HORIZON
 Dashboard
 Provides simple self-service UI for end-users
 Basic cloud administrator functions
o Define users, tenants, and quotas
o No infrastructure management

HEAT OpenStack Orchestration


 Provides template driven cloud application orchestration
 Modeled after AWS Cloud Formation
 Targeted to provide advanced functionality such as high availability and auto scaling
 Introduced by Redhat

CEILOMETER
 OpenStack Monitoring and Metering
 Goal: To Provide a single infrastructure to collect measurements from an entire
OpenStack Infrastructure; Eliminate need for multiple agents attaching to multiple
OpenStack Projects
 Primary targets metering and monitoring: Provided extensibility
PROCEDURAL STEPS
1. Create an account in Platform9
1.1 Click “Try SandBox”

1.2 Explore Managed OpenStack  Give all the details  Click “Submit”
1.3 Check the registered mail to get “User Name” and “Password”

1.4 To Login “Platform9”.


Click URL  Give “User Name” and “Password”
1.5 Platform9 Dashboard

1.6 Instances
2. Instance Creation
2.1 Move to Instances  Click “+INSTANCE”

2.2 Source: Boot Instance from  Image, Image Selection  Choose an “OS image”
 Click “Next”
2.3 Flavor:
Availability Zone  Choose “Nova”
Flavor Selection  Choose “m1.small”  Click “Next”

2.4 Network Selection: Select “tenant-01”  Click “Next”


2.5 Configure:
1. Instance Name (Eg: Test)
2. SSH Key (Optional)
3. Server Group (Optional)
Enter the details  Click
“Next”

2.6 (Optional) Customize  Click “Finish”


2.7 New VM Instance Review  Click “Create Instance”

2.8 Instance is Created


3. To Create new SSH Key
3.1 Move “Access & Security”  Click “+ NEW SSH KEY”  Give “Key pair
name” & “Public key content”
3.2 To generate SSH public key, In Linux (CentOS), Open
Terminal Switch to “root” user [Password: newitlab]

3.3 To install SSH  #yum –y install openssh-server openssh-clients

3.4 Set the service to start with the machine  #chkconfig sshd on

3.5 To generate SSH Key  #ssh-keygen -t rsa -f cloud-key


3.6 To view “Private Key” of cloud-key

3.7 To view “Public Key” of cloud-key


4. Copy “cloud-key.pub” key  Paste in platform9 “Import SSH Key Pair  Public
key content”  Click “IMPORT”
VIVA QUESTIONS

1. What is OpenStack?

2. List the key components of OpenStack.

3. List the hypervisors supported by OpenStack.

RESULT
Thus, the Virtual Machine is created successfully in Online OpenStack Cloud
Platform.

Observation by students: (what student able to?)

1.

MAX. MARKS MARKS


CATEGORY
ALLOTED AWARDED
DISCIPLINE 3
PREPARATION 2
PERFORMANCE 5
VIVA – VOCE 5
RECORD 5
TOTAL 20

You might also like