Professional Documents
Culture Documents
Hardware Requirements :
PC with hardware virtualization extensions
Software Requirements :
For Windows Based system Virtual Box & Linux Ubuntu 20.04
For Linux based system only Ubuntu 21
Theory :
Virtualization is very important concept in cloud computing. In cloud computing, a cloud
vendor who will provide cloud services have all physical resources like server, storage device,
network device etc. and these physical services are rented by cloud vendors so that user’s will
not worry about these physical services.
With the help of Virtualization, multiple operating systems and applications can run on the
same machine and its same hardware at the same time, increasing the utilization and flexibility
of hardware making it cost-effective, hardware-reducing, and energy-saving.Virtualization
allows sharing of a single physical instance of a resource or an application among multiple
customers and organizations at one time. It does this by assigning a logical name to physical
storage and providing a pointer to that physical resource on demand. The term virtualization is
often synonymous with hardware virtualization, which plays a fundamental role in efficiently
delivering Infrastructure-as-a-Service (IaaS) solutions for cloud computing. Moreover,
virtualization technologies provide a virtual environment for not only executing applications
but also for storage, memory, and networking.
Benefits of Virtualization
More flexible and efficient allocation of resources.
Enhance development productivity.
It lowers the cost of IT infrastructure.
Remote access and rapid scalability.
High availability and disaster recovery.
Pay peruse of the IT infrastructure on demand.
Enables running multiple operating systems.
Characteristics of Virtualization
Increased Security: The ability to control the execution of a guest program in a completely
transparent manner opens new possibilities for delivering a secure, controlled execution
environment. All the operations of the guest programs are generally performed against the
virtual machine, which then translates and applies them to the host programs.
Managed Execution: In particular, sharing, aggregation, emulation, and isolation are the
most relevant features.
Sharing: Virtualization allows the creation of a separate computing environment within the
same host.
Aggregation: It is possible to share physical resources among several guests, but
virtualization also allows aggregation, which is the opposite process.
Portability – The concept of portability applies in different ways according to the specific
type of virtualization considered.In the case of a hardware virtualization solution, the guest
is packaged into a virtual image that, in most cases, can be safely moved and executed on
top of different virtual machines. In the case of programming-level virtualization, as
implemented by the JVM or the .NET runtime, the binary code representing application
components (jars or assemblies) can run without any recompilation on any implementation
of the corresponding virtual machine.
Resource sharing: Virtualization allows multiple virtual machines to share the resources of
a single physical machine, such as CPU, memory, storage, and network bandwidth. This
improves hardware utilization and reduces the need for additional physical servers.
Cons of Virtualization :
Data can be at Risk –
Working on virtual instances on shared resources means that our data is hosted on third
party resource which put’s our data in vulnerable condition. Any hacker can attack on our
data or try to perform unauthorized access. Without Security solution our data is in threaten
situation.
Learning New Infrastructure –
As Organization shifted from Servers to Cloud. They required skilled staff who can work
with cloud easily. Either they hire new IT staff with relevant skill or provide training on that
skill which increase the cost of company.
High Initial Investment –
It is true that Virtualization will reduce the cost of companies but also it is truth that Cloud
have high initial investment. It provides numerous services which are not required and
when unskilled organization will try to set up in cloud they purchase unnecessary services
which are not even required to them.
Types of Virtualization
Types of Virtualization
1. Application Virtualization
2. Network Virtualization
3. Desktop Virtualization
4. Storage Virtualization
5. Server Virtualization
6. Data virtualization
There are three main types of server virtualization: full-virtualization, para-virtualization, and
OS-level virtualization.
Full-Virtualization
A hypervisor is a specialized type of software that is necessary for full server virtualization.
There are many different hypervisors available, so make sure to compare your requirements with
available features before finalizing a purchase. Hypervisors function by communicating with
servers to monitor disk space and CPU usage. The software can then allocate resources as needed
across multiple virtual server deployments. Computing power can even be shared across various
operating systems with ease without sacrificing efficiency. Hypervisors do require a set amount
of dedicated server resources to operate, limiting overall server power. When utilizing full
virtualization, the separate server instances will not need to be aware of each other.
Para-Virtualization
The major difference between full and para-virtualization is that each OS on the server is aware
of each other's presence. This allows for an entire network to work together to manage resources.
The most significant benefit of para-virtualization is that the hypervisor doesn't require nearly as
many resources to operate because different virtual servers are aware of each other and thus can
more efficiently share physical resources.
OS-Level Virtualization
The most basic form of server virtualization is OS-level virtualization. There are limitations
when using this method, but it can be implemented and maintained with fewer resources than
para- or full- virtualization. When using OS-level virtualization, there is no need for a
hypervisor. The duty of managing resources and separating virtual machines is instead handled
by the physical server’s operating system. The drawback to this solution is that each virtual
machine will have to run the same operating system, because the OS is acting as a hypervisor.
6. Data Virtualization: This is the kind of virtualization in which the data is collected from
various sources and managed at a single place without knowing more about the technical
information like how data is collected, stored & formatted then arranged that data logically so
that its virtual view can be accessed by its interested people and stakeholders, and users
through the various cloud services remotely. Many big giant companies are providing their
services like Oracle, IBM, At scale, Cdata, etc.
Uses of Virtualization
Data-integration
Business-integration
Service-oriented architecture data-services
Searching organizational data
Virtualization is generally achieved through the hypervisor. A hypervisor enables the separation
of operating systems with the underlying hardware. It enables the host machine to run many
virtual machines simultaneously and share the same physical computer resources.
There are two methods through which virtualization architecture is achieved described below:
Type one: The first hypervisor type is termed a bare-metal hypervisor. They directly
run over the top of the hardware of the host system. They deliver effective resource
management and ensure the high availability of resources. It delivers direct access to the
hardware system, ensuring better scalability, performance, and stability.
Type two: The second hypervisor type is the hosted hypervisor. This is installed on the
host operating system, and the virtual operating system runs directly above the
hypervisor. It is the kind of system that eases and simplifies system configuration.
KVM hypervisor
KVM (Kernel-based Virtual Machine) is the leading open source virtualisation technology for
Linux. It installs natively on all Linux distributions and turns underlying physical servers into
hypervisors so that they can host multiple, isolated virtual machines (VMs). KVM comes with no
licenses, type-1 hypervisor capabilities and a variety of performance extensions which makes it
an ideal candidate for virtualisation and cloud infrastructure implementation. But what are the
benefits of KVM hypervisor and how do you get started?
KVM is available as a Linux kernel module. It plugs directly into the kernel’s code and allows it
to function as a hypervisor. Every VM runs as a separate Linux process under systemd, with
dedicated virtual hardware resources attached. KVM can only be used on a processor with
hardware virtualisation extensions, such as Intel-VT or AMD-V.
The main benefit of the KVM hypervisor is its native availability on Linux. Since KVM is part
of Linux, it installs natively, enabling straightforward user experience and smooth integration.
But KVM brings more benefits compared to other virtualisation technologies. Those include:
Step 2: Install it in Windows, Once the installation has done open it.
Step 5-: To Select the media for installation Click on start and browse for iso file
CLOUD COMPUTING LAB MANUAL COMPILED BY PROF. BHUSHAN JADHAV CONTACT -:9702868662
KVM only works if your CPU has hardware virtualization support – either Intel VT-x or AMD
V. To determine whether your CPU includes these features, run the following command:
A 0 indicates that your CPU doesn’t support hardware virtualization, while a 1 or more indicates
that it does.
CLOUD COMPUTING LAB MANUAL COMPILED BY PROF. BHUSHAN JADHAV CONTACT -:9702868662
3) Create User.
Only the root user and users in the libvirtd group have permission to use KVM virtual machines.
Run the following command to add your user account to the libvirtd group:
After running this command, log out and log back in as tsec
Run following command after logging back in as tsec and you should see an empty list of virtual
machines.
This indicates that everything is working correctly.
#virsh -c qemu:///system list