Chapter2-Introduction To Compute Virtualization
Chapter2-Introduction To Compute Virtualization
5. Server: The server helps to compute the resource sharing and offers other services
such as resource allocation and de-allocation, monitoring the resources, providing
security etc.
6. Storage: Cloud keeps multiple replicas of storage. If one of the storage resources
fails, then it can be extracted from another one, which makes cloud computing more
reliable.
1
CLOUD COMPUTING COURSE
1. Virtualization Definition:
It is the creation of a virtual (rather than actual) version of something, such as
an operating system (OS), a server, a storage device or network resources.
2. Virtualization History:
Virtualization began in the 1960s, as a method of logically dividing the system resources
provided by mainframe computers between different applications.
3. Virtualization Benefits
Reduced IT costs
Efficient resource utilization
Easier testing
Quicker backups
Easier disaster recovery
4. Virtualization Types:
In this course we will cover three types of virtualization
1. Compute Virtualization
2. Network Virtualization
3. Storage Virtualization
2
CLOUD COMPUTING COURSE
5. Virtualization Concept
Creating a virtual machine over existing operating system and hardware is referred as
Hardware Virtualization. Virtual Machines provide an environment that is logically
separated from the underlying hardware.
3
CLOUD COMPUTING COURSE
6. Hypervisor Types:
Hypervisors are able to sit on top of an OS or they can be directly installed onto the
hardware. This directs us to the different types of hypervisor, which comes in two types:
1. Type 1 (also called bare-metal): The most common hypervisor in cloud computing, it
is designed to sit directly on underlying hardware and provide the ability to virtualize
the hardware resources for use by the virtual machines.
Type1 Hypervisor Examples: VMware ESXi, Citrix Xen Server , Microsoft Hyper-V.
2. Type 2 hypervisor (also called hosted): requires a host operating system and it runs
on this host machine as another applications and used to create VM’s behind the
host own applications. Type2 Hypervisor Examples: VirtualBox, Qemu, VMware
Workstation player. Type2 is more often used for testing and labs and for home
usage.
4
CLOUD COMPUTING COURSE
Installation
Run directly on the system Hardware. Run on a host OS.
Position
5
CLOUD COMPUTING COURSE
7. Virtualization Features
There are four main VM features supported by both type1 and type2 hypervisors:
1. Partitioning
- Run multiple operating systems on one physical machine.
- Divide system resources between virtual machines.
2. Isolation
- Provide fault and security isolation at the hardware level.
- Preserve performance with advanced resource controls.
3. Encapsulation
- Each VM is saved as a group of hardware-independent files.
- Move and copy virtual machines as easily as moving and copying files, which
support VM migration.
4. Hardware Independence
- Provision or migrate any virtual machine to any physical server.
- The migration of VMs can be successful as long as the same VMM running on
the target host as that on the source host.
6
CLOUD COMPUTING COURSE
9. Compute Virtualization
It is a technique, which allows sharing single physical instance of a resource among
multiple organizations or tenants (customers). It does so by assigning a logical name to a
physical resource and providing a pointer to that physical resource on demand.
This done by using a software layer called a hypervisor. The resources include the CPU's,
memory and input/output (I/O).
Hypervisors take the physical resources and separate them so they can be utilized by
the virtual environment.
• Para virtualization
1. Full virtualization:
- Hypervisor directly interact with the hardware such as CPU, disks.
7
CLOUD COMPUTING COURSE
- Hypervisor does not need large amounts of processing power to manage guest OS.
- Example- Xen
3. Hardware-Assisted virtualization:
- The VMM uses processor extension (Intel-VTx or AMD-V) to intercept and emulate
privileged instructions.
- Guest OS runs at kernel level (Ring 0) and VMM runs in more privileged Ring than
the Ring 0.
2. Memory Virtualization
Memory virtualization decouples volatile random access memory (RAM) resources from
individual systems in the data center and then aggregates those resources into a
virtualized memory pool available to any computer in the cluster.
8
CLOUD COMPUTING COURSE
Address Binding is the process of mapping from one address space to another address
space.
1. In the virtual machine, the guest operating system's page tables maintain the
mapping from virtual memory (VA) to physical memory (PA). (VAPA)
2. The Hypervisor then mapping from the physical memory (PA) to the machine
memory (MA) on the underlying machine. (PAMA)
9
CLOUD COMPUTING COURSE
3. I/O Virtualization
With compute virtualization, a large number of VMs can be created on a single host, and
the VMs all need to access the I/O devices of this host. However, I/O devices are limited.
I/O device sharing among multiple VMs requires VMM.
VMM intercepts access requests from VMs to I/O devices, simulates I/O devices using
software, and responds to I/O requests.
1. Full virtualization
2. Paravirtualization
3. Hardware-assisted virtualization. Hardware-assisted virtualization is the
mainstream technology for I/O virtualization.
1. Full virtualization
The Mechanism
1. VMM virtualizes I/O devices for VMs. When a VM initiates an I/O request to an
I/O device, VMM intercepts the request sent by the VM.
2. Then sends the real access request to the physical device for processing.
No matter which type of OS is used by the VM, the OS does not need to be
modified for I/O virtualization.
Multiple VMs can directly use the I/O device of the physical server.
However, VMM needs to intercept I/O requests delivered by each VM in real
time and emulates the request to a real I/O device, which causes severe
performance loss to the server.
10
CLOUD COMPUTING COURSE
2. Para virtualization
The Mechanism
11
CLOUD COMPUTING COURSE
3. Hardware-assisted virtualization
The Mechanism
Open-Source Closed-source
Are free of charge and can be used anytime. Are generally not free of charge and can be
used out of the box.
Users can customize some special Users cannot view or customize source
requirements based on open-source code code.
Once a problem occurs in the system, the If a system problem occurs, vendors provide
system recovery strongly relies on the all-round support.
administrator's skillset and experience.
12
CLOUD COMPUTING COURSE
KVM vs Xen
KVM Xen
Privileged VM
Common VM’s
13
CLOUD COMPUTING COURSE
After the KVM module is installed in a common Linux OS, three running modes are
added:
2. User Mode: The quick emulator (QEMU) typically runs in this mode. QEMU
emulates I/O requests.
3. Kernel Mode: In this mode, the hardware can be operated. When the guest OS
executes an I/O operation or privileged instruction, a request needs to be
submitted to the user mode, and then the user mode initiates a hardware
operation request to the kernel mode again to operate the hardware.
14
CLOUD COMPUTING COURSE
QEMU was not a part of KVM kernel. It was a universal open-source virtualization
emulator that uses pure software to implement virtualization. The guest OS considers
that it is interacting with hardware. Actually, QEMU is interacting with hardware. This
means that all interactions with the hardware need to pass through QEMU. Therefore,
the simulation performance delivered by QEMU is low.
3. Management tool.
In addition to virtualization of various devices, QEMU-KVM provides native tools for
creating, modifying, and deleting VMs. However, Libvirt is the most widely used tool
and API for managing KVM VMs.
Libvirt is:
15
CLOUD COMPUTING COURSE
Benefit of FusionCompute
FusionCompute Parts
CNA manages VMs and resources on the local node (the server), it provides the
virtualization function, and it based on the Linux OS.
VRM is the resource scheduling and management software. VRM manages clusters or
resources in the resource pool. It functions as the management tool of KVM.
Administrators and common users can manage and use FusionCompute on the GUI-
based portal of VRM.
16
CLOUD COMPUTING COURSE
2. Manages network resources, such as IP addresses and virtual local area network
3. Manages the lifecycle of VMs in a cluster, distributes, and migrates VMs across
compute nodes.
17