Unit - 3
Unit - 3
• Virtualization is a technology that enables the single physical infrastructure to function as a multiple
logical infrastructure or resources.
• Virtualization is not only limited to the hardware, it can take many forms such as memory, processor,
I/O, network, OS, data, and application.
• Before virtualization, the single physical infrastructure was used to run a single OS and its applications,
which results in underutilization of resources. The nonshared nature of the hardware forces the
organizations to buy a new hardware to meet their additional computing needs.
• After virtualization was introduced, different OSs and applications were able to share a single physical
infrastructure.
Before Virtualization
After Virtualization
What is Virtualization ?
• Virtualization is originated in the1960s at IBM.
• Virtualization is the "creation of a virtual (rather than
actual) version of something, such as a server, a
desktop, a storage device, an operating system or
network resources".
• In other words, Virtualization is a technique, which
allows to share a single physical instance of a resource
or an application among multiple customers and
organizations.
- Decrease cost, improve manageability (with fewer admins and with fewer electrical bills)
• Migration: Migrate the OS in the applications from one physical machine to another physical
machine.
• Security: As the OS and the applications are nicely encapsulated in a virtual machine. It
becomes more easy to contain any kinds of bugs, or any kinds of malicious behavior, to those
resources that are available to the virtual machine only, and not to potentially affect the entire
hardware system.
• Some other benefits: Debugging, Provide affordable Support for legacy OSs
Vu Pham
Virtualization example
Consider a company that needs servers for three functions:
• The email application requires more storage capacity and a Windows operating system.
• The customer-facing application requires a Linux operating system and high processing power to
handle large volumes of website traffic.
• The internal business application requires iOS and more internal memory (RAM).
• To meet these requirements, the company sets up three different dedicated physical servers for each
application. The company must make a high initial investment and perform ongoing maintenance and
upgrades for one machine at a time. The company also cannot optimize its computing capacity. It pays 100%
of the servers’ maintenance costs but uses only a fraction of their storage and processing capacities.
• Efficient hardware use: With virtualization, the company creates three digital servers, or virtual machines,
on a single physical server. It specifies the operating system requirements for the virtual machines and can
use them like the physical servers. However, the company now has less hardware and fewer related
expenses.
• Infrastructure as a service: The company can go one step further and use a cloud instance or virtual
machine from a cloud computing provider such as AWS. AWS manages all the underlying hardware, and the
company can request server resources with varying configurations. All the applications run on these virtual
servers without the users noticing any difference. Server management also becomes easier for the company’s
IT team.
Hypervisors
• Before hypervisors are introduced, there was a one-to-one relationship between hardware and
OSs.
• After the hypervisors are introduced, it became a one-to-many relationship. With the help of
hypervisors, many OSs can run and share a single hardware.
• The virtual environment can be created with the help of a software tool called hypervisors.
• Hypervisors are the software tool that sits in between VMs and physical infrastructure and
provides the required virtual infrastructure for VMs.
• Generally, the virtual infrastructure means virtual CPUs (vCPUs), virtual memory, virtual NICs
(vNICs), virtual storage, and virtual I/O devices.
• The hypervisors are also called VMM(Virtual Machine Monitors).
• They are the key drivers in enabling virtualization in cloud data centers.
• There are different hypervisors that are being used in the IT industry.
• Some of the examples are VMware, Xen, Hyper-V, KVM, and OpenVZ.
Types of Hypervisors
1. Bare-metal hypervisor
or Native Hypervisor (Type 1)
• It can run and access physical resources directly without the help of any host OS.
• Here, the additional overhead of communicating with the host OS is reduced and offers
better efficiency when compared to type 2 hypervisors.
• This type of hypervisors is used for servers that handle heavy load and require more
security.
Vu
Hosted Hypervisor
Example:
• KVM (Kernel-based VM) Based on
Linux
• KVM kernel module + hardware
emulator called QEMU for hardware
virtualization
1) Desktop Virtualization
2) Network Virtualization
3) Storage Virtualization
4) Application Virtualization
Server Virtualization
• All the storage is formed in a shared pool from which they can be allotted to any VM on
the system.
Application Virtualization
• In this virtualization process, the application runs without the need of
installing it into the system, as they run on a virtual environment.
• Types of virtualization: