Chap 4 Virtualization
Chap 4 Virtualization
Chapter 4
Ashim Khadka
Outline
1 Virtualization
Virtualization reference model
Virtual machine (VM)
Hypervisor
2 Types of virtualization
Hardware virtualization
Software virtualization
Server Virtualization
Storage virtualization
3 Containerization
Virtualization
Virtualization
Needs of virtualization
Guest
The guest represents the system component that interacts with the
virtualization layer rather than with the host
Guests usually consist of one or more virtual disk files, and a VM
definition file
Virtual Machines are centrally managed by a host application that
sees and manages each virtual machine as a different application
Virtual Machine
Hypervisor
Hypervisor type
Type 1 Hypervisor
Type 2 Hypervisor
Types of virtualization
Hardware virtualization
Software Virtualization
Server Virtualization
Storage Virtualization
Hardware virtualization
Creation of virtual physical hardware resources so that multiple users
can access the hardware resources at the same time
In hardware virtualization, the virtual machine software is directly
installed on the hardware system: bare-metal virtualization
A virtual machine is created over the existing operating system and
hardware: host virtualization
Once the hardware virtualization is done, it is appropriate to install
different operating systems and run various applications on them
Usage: Hardware virtualization is mainly done for the server
platforms, because controlling virtual machines is much easier than
controlling a physical server
Types of hardware virtualization
Full virtualization
Para-virtualization
Hardware assisted virtualization
Ashim Khadka Virtualization in Cloud Computing 27 / 44
Types of virtualization Hardware virtualization
Full virtualization
Full virtualization
OS assisted/Para-virtualization
Para-virtualization
Software virtualization
1 Testing:
Easier to test the new operating system and software on VMs as it
does not require any additional hardware and the testing can do within
the same software
2 Utilization:
VM can modify as per the requirement such as the user can modify
ram, drive space, etc
higher efficiency in resource utilization
It requires very less amount of hardware as compared to the equivalent
number of physical machines
3 Flexible:
It provides flexibility to the user so that the user can modify the
software as per their demand
The modification can do within minutes and can adjust easily when the
workload changes
Server Virtualization
1 Cost efficient:
Organizations do not need to invest a lot of money in buying physical
servers and resources
All resources are available virtually
2 Improved efficiency:
Multiple virtual servers are used in place of one physical server
This makes the system more efficient as multiple tasks can be
completed at the same time.
3 Independent environment for users:
Enables each virtual server to run independently of the other
Every user is given an isolated environment to work on
No interference is made from other users
4 Reduced need for physical infrastructure
5 Reduced energy consumption
Storage virtualization
Containerization
Containerization is the packaging of software code with just the
operating system (OS) libraries and dependencies required to run the
code to create a single lightweight executable—called a
container—that runs consistently on any infrastructure
With traditional methods, code is developed in a specific computing
environment which, when transferred to a new location, often results
in bugs and errors
For example, when a developer transfers code from a desktop computer
to a VM or from a Linux to a Windows operating system
Containerization eliminates: by bundling the application code
together with the related configuration files, libraries, and
dependencies required for it to run
Containers share the machine’s operating system kernel and do not
require the overhead of associating an operating system within each
application
referred as lightweight
Ashim Khadka Virtualization in Cloud Computing 42 / 44
Containerization
Benefits of containerization
Docker engine