Professional Documents
Culture Documents
Requirements-
1. Safety and isolation: hypervisor should have full control of virtualized resources.
There has to be proper isolation between virtual machines. Each virtual machine
should run independent of others.
2. Fidelity: behavior of a program on a virtual machine should be identical to same
program running on Host OS or bare metal.
3. Efficiency: much of code in virtual machine should run without interference by
hypervisor. The resources must be used efficiently.
Q. 2 Write the advantages of Virtualization
Advantages of Virtualization-
• It allows a single computer to host multiple virtual machines, each potentially
running a completely different operating system.
VMM (Virtual Machine Monitor) / hypervisor create the illusion of multiple virtual
machines on the same physical hardware.
Failure in one virtual machine does not bring down others.
On a virtualized system, different servers can run on different virtual machines.
Lower cost and with easier maintainability.
Efficient use of system resources.
Safety and isolation: hypervisor has full control of virtualized resources. It provides
proper isolation between virtual machines. Each virtual machine runs independent
of others without interfering into each other’s activity. .
Fidelity: behavior of a program on a virtual machine and on real machine is always
identical.
Efficiency: much of code in virtual machine should run without interference by
hypervisor. The resources must be used efficiently.
Q. 3 State and explain Type1 and Type 2 Hypervisor with neat diagram.
1. Type 1 Hypervisor-
Runs on “bare metal”- directly on system hardware.
A bare metal environment is a computer system in which a virtual machine is
installed directly on hardware rather than within the host operating system (OS).
Type 1 hypervisor provides virtualization platform as well as OS functionalities as it is
the only program running in Kernel mode.
Offers multiple copies of real hardware called virtual machines.
Virtual machines run in user mode.
2. Type 1 Hypervisor-
Runs on a host operating system.
Provides virtualization platform.
Depends on host OS to allocate and schedule resources.
VMware workstation was first type2 hypervisor.
Also known as hosted hypervisor.
Image file of guest OS (ISO file) is loaded on hard disk of Host OS.
Hypervisor acts as if it is reading OS from DVD drive and installs OS to its virtual disk.
Q. 4 Explain Virtual appliances.
Virtual Appliances-
• A virtual appliance (VA) is a virtual machine image file consisting of a pre-configured
operating system environment and a single application.
• The purpose of a virtual appliance is to simplify delivery and operation of an
application.
• Only necessary operating system components are included in VA.
• Deploying an application as a virtual appliance can eliminate problems with
installation and configuration, such as software or driver compatibility issues.
• Users can simply download a single file and run the application.
• Resources required for maintenance are also reduced.
Q5 How to migrate virtual machine more quickly.
To move the virtual machine from the hardware to the new machine without taking it
down at all.
Modern virtualization solutions offer is something known as live migration. they move the
virtual machine while it is still operational.
For instance, they employ techniques like pre-copy memory migration.
This means that they copy memory pages while the machine is still serving requests.
5. Most memory pages are not written much, so copying them over is safe.
6. Remember, the virtual machine is still running, so a page may be modified after it has
already been copied.
7. When memory pages are modified, we have to make sure that the latest version is copied
to the destination, so we mark them as dirty.
8. They will be recopied later. When most memory pages have been copied, we are left with
a small number of dirty pages.
9. We now pause very briefly to copy the remaining pages and resume the virtual machine
at the new location. While there is still a pause, it is so brief that applications typically are
not affected.
10. When the downtime is not noticeable, it is known as a seamless live migration.
Q. 6 What is cloud? Write essential characteristic of cloud
Cloud computing –
• It is a type of Internet-based computing that provides shared resources and data to
computers and other devices on demand.
• It is a model for enabling on-demand access to a shared pool of configurable
computing resources (e.g., computer networks, servers, storage, applications and
services) which can be rapidly provisioned and released with minimal management
effort.
• Cloud computing and storage solutions provide users and enterprises with various
capabilities to store and process their data in third-party data centers that may be
located far from the user across the world.
• Memory is divided into equal sized partitions, where each partition belongs to one
CPU.
• Each CPU has its own private memory and its own private copy of the operating
system.
• In effect, the n CPUs then operate as n independent computers.
There are 4 aspects of this design,
i) First, when a process makes a system call, the system call is caught and handled on
its own CPU using the data structures in that operating system’s tables.
ii) Second, since each operating system has its own tables, it also has its own set of
processes that it schedules by itself.
iii) Third, there is no sharing of physical pages.
iv) Fourth, and worst, if the operating system maintains a buffer cache of recently
used disk blocks, each operating system does this independently of the other ones
2. Master-Slave-
• Only one copy of OS is present in memory.
• Master CPU can only run the operating system from memory. So here, only CPU1
can run the OS and not any others.
• All system calls from other CPUs are redirected to CPU 1 for processing there.
• CPU 1 is the master and all the others are slaves.
• There is a single data structure that keeps track of ready processes.
• When a CPU goes idle, it asks the operating system on CPU 1 for a process to run
and is assigned one.
• Thus it can never happen that one CPU is idle while another is overloaded. Similarly,
pages can be allocated among all the processes dynamically and there is only one
buffer cache, so inconsistencies never occur.
• The problem with this model is that with many CPUs, the master will become a
bottleneck.
3. Symmetric