Virtualization Notes
Virtualization Notes
UNIT-1
1.NEED FOR VIRTUALIZATION
Here are some key aspects of how virtualization addresses these needs:
● Cost savings: Virtualization can lead to significant cost savings by optimizing the
utilization of hardware resources. By creating multiple Virtual Machines (VMs) on a
single physical server, organizations can reduce the number of physical servers
needed, resulting in lower hardware acquisition costs, reduced power consumption
and decreased data center space requirements. Additionally, virtualization enables
organizations to consolidate their workloads onto a smaller number of servers, which
can reduce operational costs, such as maintenance, licensing and support for hardware
and software.
● Hardware Independence: Virtual machines are not tied to specific physical hardware,
allowing them to be easily migrated or replicated across different servers. This
flexibility enables workload balancing, disaster recovery, and efficient resource
allocation.
● High Availability: Virtualization platforms often include features for high availability,
such as live migration and automatic failover. These features ensure that VMs can be
moved between physical hosts with minimal downtime, maximizing uptime for
critical applications.
2.TYPES OF VIRTUALIZATION
Types of Virtualization
● Application Virtualization
● Network Virtualization
● Desktop Virtualization
● Storage Virtualization
● Server Virtualization
● Data virtualization
1. Application Virtualization:
Application virtualization helps a user to have remote access to an application from a
server. The server stores all personal information and other characteristics of the application but
can still run on a local workstation through the internet. An example of this would be a user who
needs to run two different versions of the same software. Technologies that use application
virtualization are hosted applications and packaged applications.
2. Network Virtualization:
The ability to run multiple virtual networks with each having a separate control and data
plan. It co-exists together on top of one physical network. It can be managed by individual
parties that are potentially confidential to each other. Network virtualization provides a facility to
create and provision virtual networks, logical switches, routers, firewalls, load balancers, Virtual
Private Networks (VPN), and workload security within days or even weeks.
3. Desktop Virtualization:
Desktop virtualization allows the users’ OS to be remotely stored on a server in the data
center. It allows the user to access their desktop virtually, from any location by a different
machine. Users who want specific operating systems other than Windows Server will need to
have a virtual desktop. The main benefits of desktop virtualization are user mobility, portability,
and easy management of software installation, updates, and patches.
4. Storage Virtualization:
Storage virtualization is an array of servers that are managed by a virtual storage
system. The servers aren’t aware of exactly where their data is stored and instead function
more like worker bees in a hive. It makes managing storage from multiple sources be managed
and utilized as a single repository. storage virtualization software maintains smooth operations,
consistent performance, and a continuous suite of advanced functions despite changes, breaks
down, and differences in the underlying equipment.
5. Server Virtualization:
This is a kind of virtualization in which the masking of server resources takes place.
Here, the central server (physical server) is divided into multiple different virtual servers by
changing the identity number, and processors. So, each system can operate its operating
systems in an isolated manner. Where each sub-server knows the identity of the central server.
It causes an increase in performance and reduces the operating cost by the deployment of main
server resources into a sub-server resource. It’s beneficial in virtual migration, reducing energy
consumption, reducing infrastructural costs, etc.
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
3.TYPES OF HYPERVISORS
TYPES OF HYPERVISORS:
A hypervisor is a software that you can use to run multiple virtual machines on a single physical
machine. Every virtual machine has its own operating system and applications. The hypervisor
allocates the underlying physical computing resources such as CPU and memory to individual
virtual machines as required.
Type 1 hypervisors
A Type 1 hypervisor runs directly on the host machine's physical hardware, and it's referred to as
a bare-metal hypervisor. The Type 1 hypervisor doesn't have to load an underlying OS. With
direct access to the underlying hardware and no other software -- such as OSes and device
drivers -- to contend with for virtualization, Type 1 hypervisors are regarded as the most efficient
and best-performing hypervisors available for enterprise computing. In fact, Type 1 hypervisors
are often referred to as the virtualization or virtual operating system. Hypervisors that run
directly on physical hardware are also highly secure. Virtualization mitigates the risk of attacks
that target security flaws and vulnerabilities in OSes because each guest has its own OS. This
ensures an attack on a guest VM is logically isolated to that VM and can't spread to others
running on the same hardware.
Type 1 hypervisors have long been preferred and are the de facto standard for enterprise-class
virtualization. The ability to create VMs of almost any size and configuration makes bare metal
VMs well-suited for hosting large and complex enterprise workloads. The close connection
established between the VM and the underlying hardware allows excellent performance,
especially once virtualization command sets were added to modern microprocessors.
The Type 1 hypervisor provides several key benefits for the enterprise:
Type 2 hypervisors
A Type 2 hypervisor is typically installed on top of an existing host OS. It is sometimes called a
hosted hypervisor because it relies on the host machine's preexisting OS to manage calls to CPU,
memory, storage and network resources.Type 2 hypervisors trace their roots back to the early
days of x86 virtualization when the hypervisor was added above the existing systems' OSes.
Although the purpose and goals of Type 1 and Type 2 hypervisors are identical, the presence of
an underlying OS with Type 2 hypervisors introduces unavoidable latency. All the hypervisor's
activities and the work of every VM must pass through a single common host OS. Any security
flaws or vulnerabilities in the host OS could also potentially compromise all of the VMs running
above it.
The traditional limitations of a Type 2 hypervisor have limited its use to client or end-user
systems, or experimental environments where performance and security were lesser concerns
than a full production environment. For example, software developers might use a Type 2
hypervisor to create VMs to test a software product prior to release. Similarly, Type 2
hypervisors have seen significant use in smaller high-volume virtual instances, and IT
organizations typically use Type 2 hypervisors to create virtual desktops common in VDI
deployments.Still, Type 2 hypervisors have seen a strong surge in popularity because of several
attractive benefits:
● Small and fast. Type 2 hypervisors don't need individual operating systems like Type
1 VMs. This results in simpler and smaller logical entities that use far fewer
resources, are faster to create, and are easier to migrate or manipulate.
● Highly scalable. Because a Type 2 VM can use far fewer computer resources than a
Type 1 VM, a computer can potentially host many more Type 2 VMs than Type 1
VMs.
● Foundation for containers. The concept of Type 2 hypervisors is core to the
emergence of virtualized containers. Containers use specialized Type 2 hypervisors
called container engines, such as Docker or Apache Mesos, which let containers
share a common OS. Container technology has spawned a new and highly efficient
type of application architecture called microservices.
● Foundation for cloud. Most public cloud providers offer native services that directly
support the creation and management of virtual containers alongside traditional Type
1 VMs.
4.CLOUD COMPUTING IN VIRTUALIZATION
The machine on which the virtual machine is going to be built is known as Host
Machine.
Guest machine :
Characteristics of virtualization:
Benefits of Virtualization:
Improved Scalability
Cloud computing is a model for delivering computing resources and services over
the internet, enabling on-demand access to a shared pool of resources, including
computing power, storage, and applications. Cloud computing allows users to rent
or subscribe to these resources and services, which are provided by cloud service
providers, rather than building and maintaining local IT infrastructure.
Examples of SaaS providers include Salesforce, Microsoft Office 365 and Google
Workspace.
UNIT-2
1.SERVER VIRTUALIZATION
DEFINITION:
Server virtualization is a technology that allows multiple virtual instances of servers to run
on a single physical server. Instead of dedicating one physical server to one specific application
or task, virtualization enables the consolidation of multiple virtual servers onto a single physical
server, maximizing hardware utilization and efficiency.
· Virtual Machines (VMs): Each VM acts as a self-contained virtual server with its own
OS, applications, and resources. Multiple VMs can run simultaneously on a single
physical server, each isolated from the others.
· Resource Pooling: The hypervisor manages the physical server's resources and
allocates them dynamically to the VMs based on their needs. This allows for efficient
utilization of resources and better scalability.
· Isolation: VMs are isolated from each other, meaning that if one VM crashes or
experiences issues, it does not affect the others. This isolation provides better security
and stability.
· Migration and Flexibility: Virtual machines can be easily moved or migrated between
physical servers without downtime using features like live migration or vMotion. This
allows for workload balancing, hardware maintenance without disruption, and better
disaster recovery capabilities.
Server virtualization offers increased flexibility, scalability, efficiency, and cost savings
for organizations by abstracting physical hardware and optimizing resource utilization. It has
become a fundamental technology in modern data centers and cloud computing environments.
ADVANTAGES:
· Each server in server virtualization can be restarted separately without affecting the
operation of other virtual servers.
· Server virtualization lowers the cost of hardware by dividing a single server into several
virtual private servers.
· One of the major benefits of server virtualization is disaster recovery. In server
virtualization, data may be stored and retrieved from any location and moved rapidly
and simply from one server to another.
DISADVANTAGES:
· The major drawback of server virtualization is that all websites that are hosted by the
server will cease to exist if the server goes offline.
- Advantages :
- Isolation: VMs are completely isolated from each other, enhancing security
and stability.
- Hardware Independence: Guest operating systems are unaware of the
underlying hardware, allowing for greater flexibility and portability.
- Resource Optimization: Resources can be dynamically allocated and adjusted
to meet changing workload demands.
- Live Migration: VMs can be migrated between physical hosts without
downtime, facilitating maintenance and load balancing.
- Considerations :
- Overhead: Full virtualization imposes overhead on the system due to the
additional layer of abstraction.
- Licensing Costs: Some hypervisor solutions may involve licensing fees,
adding to the overall cost of implementation.
- Advantages :
- Improved Performance: By eliminating the need for hardware emulation, para-
virtualization achieves better performance compared to full virtualization.
- Lower Overhead: The absence of hardware emulation reduces overhead on the
system, resulting in higher efficiency.
- Scalability: Para-virtualization can scale efficiently to support a large number
of virtual machines.
- Considerations :
- Guest OS Modification: Para-virtualization requires modification of the guest
operating system, which may not be feasible for all environments.
- Limited Guest OS Support: Not all operating systems support para-
virtualization, restricting the choice of guest OS.
- Advantages :
- Lightweight: Containers consume minimal resources since they share the host
OS kernel and binaries, enabling efficient resource utilization.
- Rapid Deployment: Containers can be deployed quickly, making them ideal
for microservices architectures and DevOps practices.
- Portability: Containers are portable across different environments, ensuring
consistency and flexibility in deployment.
- Considerations :
- Limited Isolation: Containers share the host OS kernel, leading to potential
security vulnerabilities if not properly configured.
- OS Dependency: Containers must run on compatible host operating systems,
limiting cross-platform compatibility.
- Performance Impact: While lightweight, containerization may incur
performance overhead compared to bare-metal execution.
- Advantages :
- Reduced Overhead: Hardware-assisted virtualization offloads virtualization
tasks to the CPU, resulting in lower overhead and improved performance.
- Improved Security: Hardware virtualization extensions enhance security by
providing hardware-enforced isolation between virtual machines.
- Compatibility: HVM is compatible with a wide range of operating systems
without requiring modifications or special drivers.
- Considerations :
- Hardware Requirements: Hardware-assisted virtualization requires CPU
support for virtualization extensions, which may not be available on older
hardware.
- Vendor Lock-in: HVM implementations may vary between CPU vendors,
potentially leading to vendor lock-in for certain virtualization platforms.
Conclusion:
server virtualization plays a crucial role in modern IT infrastructure, offering a
range of techniques to meet diverse workload requirements. From full
virtualization to containerization, each approach has its own strengths and
considerations, allowing organizations to tailor their virtualization strategy to
specific use cases and performance objectives. By understanding the intricacies of
different virtualization techniques, businesses can harness the power of
virtualization to improve efficiency, scalability, and agility in their IT operations.
3.DESKTOP VIRTUALIZATION
Desktop virtualization is the concept of isolating a logical operating system (OS) instance from
the client used to access it.
There are several different conceptual models of desktop virtualization, which can be broadly
divided into two categories based on whether the technology executes the OS instance locally or
remotely. It's important to note that not all forms of desktop virtualization technology involve the
use of virtual machines (VMs).
Users typically run a remote desktop protocol (RDP) client to access the virtual desktop
environment. This client attaches to a connection broker that links the user's session to a virtual
desktop. Typically, virtual desktops are nonpersistent, meaning the connection broker assigns the
user a random virtual desktop from a virtual desktop pool. When the user logs out, this virtual
desktop resets to a pristine, unchanged state and returns to the pool. However, some vendors
offer an option to create persistent virtual desktops, in which users receive their own writable
virtual desktop.
Desktop virtualization deployment types:
There are three main types of desktop virtualization: virtual desktop infrastructure (VDI),
Remote Desktop Services (RDS) -- formerly, Terminal Services -- and desktop as a service
(DaaS).
When most people think of desktop virtualization, VDI is probably the first thing that comes to
mind. VDI is a technology in which physical servers host virtual desktops in an organization's
own data center. Like server computing and virtualization, VDI relies on underlying hardware
virtualization technology. Users sometimes use the terms desktop virtualization and VDI
interchangeably, but they aren't the same.
While VDI is a type of desktop virtualization, not all types of desktop virtualization use VDI.
VDI refers exclusively to the use of host-based VMs to deliver virtualized desktops, which
emerged in 2006 as an alternative to Terminal Services and Citrix's client-server approach to
desktop virtualization technology.
Other types of desktop virtualization -- including the shared hosted model, host-based physical
machines and all methods of client virtualization -- aren't examples of VDI.
RDS is also an on-premises desktop virtualization technology. Unlike VDI, however, RDS
doesn't rely on hardware virtualization, nor does it use desktop OSes. Instead, the server acts as a
session host, running a Remote Desktop Session Host. One potential disadvantage of using this
method is that application virtualization can be a problem. RDS runs desktop applications on
Microsoft Windows Server, and an application that's designed to run on Windows 10 won't
necessarily run on Windows Server. This is especially true for Microsoft Store apps.
DaaS is a public cloud-based desktop virtualization service that vendors offer. Organizations
lease virtual desktops on an as-needed basis from a cloud provider. DaaS is generally accessible
from anywhere using an RDP client.
Choosing a deployment model:
The primary decision that organizations must make when they choose a deployment model is
whether to deploy an on-premises VDI platform or subscribe to a cloud-based DaaS provider.
An on-premises platform is best suited to organizations that have already acquired, or have the
budget to purchase, server hardware and any other required resources. An on-premises platform
might also be a good choice for organizations that wish to repurpose their existing desktop OS
licenses. Lastly, on-premises VDI is a good fit for organizations that lack the internet bandwidth
needed to support a cloud computing DaaS offering.
A cloud-based option tends to be a good fit for organizations that don't have the IT expertise or
budget to support an on-premises virtual desktop deployment. Cloud-based deployments are also
well suited to organizations that employ seasonal or temporary workers because administrators
can add or remove end-user capacity on an as-needed basis without incurring a significant
investment in server hardware.
Like any other technology, there are both advantages and disadvantages to using desktop
virtualization. One of the primary advantages of desktop virtualization is that virtualization often
makes it easier for IT professionals to manage the desktop environment. Rather than maintaining
countless physical desktops, administrators can focus their attention on a small number of
desktop images that they deploy to the users.
Conversely, there are some circumstances in which the use of desktop virtualization can increase
an organization's management burden and its licensing costs. For example, if an organization
allows users to connect to virtual desktops from their physical desktops, then the IT staff must
license and maintain both the physical and virtual desktops.
Another advantage to desktop virtualization is that users can access their virtual desktops from
anywhere. Even if a user is working from home or a hotel room, they can still work from the
same desktop environment that they use in the office.
A potential disadvantage, however, is that virtual desktops can't function without connectivity to
the VDI environment. As such, an internet connectivity failure or a server hardware failure could
make an organization's virtual desktops inaccessible to users.
Desktop virtualization refers to the process of running a virtual instance of a desktop operating
system (OS) on a centralized server or data center, allowing users to access their desktop
environments remotely from various devices. There are several types of desktop virtualization,
each with its own characteristics and use cases
- Description : In VDI, each user's desktop environment runs on a virtual machine (VM)
hosted on a centralized server. Users can access their desktops remotely via thin clients, PCs, or
other devices connected to the network.
- Characteristics :
- Dedicated desktop experience: Each user gets their own isolated virtual desktop instance.
- Scalability: VDI allows for flexible scaling of virtual desktops to accommodate changing
user requirements.
- Support for various client devices: Users can access their virtual desktops from thin clients,
PCs, laptops, tablets, or smartphones.
- Use Cases :
- Remote work: Allows employees to access their desktop environments from anywhere with
an internet connection.
- Bring Your Own Device (BYOD): Facilitates BYOD initiatives by enabling users to access
corporate desktops from personal devices.
- Secure access: Enhances security by keeping data and applications centralized in the data
center, reducing the risk of data loss or theft from endpoint devices.
- Description : Formerly known as Terminal Services, RDS enables multiple users to access a
shared desktop environment on a server simultaneously. Users connect to the server using
Remote Desktop Protocol (RDP) or similar protocols.
- Characteristics :
- Shared desktop experience: Multiple users share the same server-based desktop
environment.
- Application virtualization: Users can run virtualized applications alongside their desktop
sessions, improving flexibility and compatibility.
- Use Cases :
- Task workers: Suitable for scenarios where users perform similar tasks and require access to
standardized desktop environments.
3. Application Virtualization :
- Characteristics :
- Compatibility: Helps ensure application compatibility across different operating systems and
environments.
- Use Cases :
- Description : DaaS providers deliver virtual desktops to users over the internet. Users
subscribe to a service that hosts their desktop environments in the cloud.
- Characteristics :
- Cloud-based delivery: Desktop environments are hosted in the cloud and accessed over the
internet.
- Subscription model: Users pay a subscription fee for access to virtual desktops, typically on
a per-user/per-month basis.
- Scalability and flexibility: DaaS providers offer scalable solutions that can accommodate
changing user requirements and workloads.
- Use Cases :
- Small and medium-sized businesses (SMBs): Provides SMBs with access to enterprise-
grade desktop virtualization solutions without the need for significant upfront investment.
- Temporary or seasonal workers: Ideal for organizations that need to quickly provision
desktop environments for temporary or seasonal workers.
Each type of desktop virtualization has its own benefits and considerations, and the choice of
which to implement depends on factors such as organizational requirements, budget, security
considerations, and scalability needs. By understanding the characteristics and use cases of each
type, organizations can make informed decisions about which desktop virtualization solution best
fits their needs.