Vir Unit 2
Vir Unit 2
There are different types of virtual machines, each designed to serve specific purposes and
scenarios. The two main categories of virtual machines are:
- **Full Virtualization:** In full virtualization, the virtual machine simulates an entire physical
computer, allowing multiple operating systems to run concurrently on a single host machine. The
hypervisor is responsible for managing and providing access to hardware resources. Examples
include VMware, Microsoft Hyper-V, and Oracle VirtualBox.
- **Application Virtual Machines:** Application virtual machines are designed to run a single
application in an isolated environment. These are often used for compatibility purposes or to
sandbox applications. Examples include the Java Virtual Machine (JVM) and the .NET Common
Language Runtime (CLR).
=-------------------------------------------------------------------------------------------------------------------------------=
SERVER VIRTUALIZATION:
Server virtualization is a technology that enables the creation of multiple virtual servers on a single
physical server. It involves using a hypervisor, which is a software layer or a hardware component, to
abstract and partition the physical server's resources—such as CPU, memory, storage, and
networking—into virtualized instances. Each of these virtual servers, known as virtual machines
(VMs), operates independently and can run its own operating system and applications.
The working of server virtualization involves the use of a hypervisor to create and manage multiple
virtual machines (VMs) on a single physical server. Here's a step-by-step overview of how server
virtualization typically works:
1. **Hypervisor Installation:**
- The process begins with the installation of a hypervisor on the physical server. The hypervisor can
be either a Type 1 (bare-metal) hypervisor, which runs directly on the hardware, or a Type 2 (hosted)
hypervisor, which runs on top of an existing operating system.
2. **Resource Abstraction:**
- The hypervisor abstracts the physical server's resources, including CPU, memory, storage, and
networking. It creates a layer of abstraction that allows these resources to be shared among multiple
VMs.
- Virtual machines are created by the hypervisor, and each VM is configured with its own virtual
hardware, including virtual CPU cores, virtual RAM, and virtual storage. The hypervisor presents
these virtual resources to the VMs, making them appear as independent servers.
- The hypervisor ensures isolation between virtual machines. Each VM operates independently, and
activities or issues in one VM do not affect the others. This isolation enhances security and stability.
6. **Resource Allocation:**
- The hypervisor dynamically allocates physical resources to each virtual machine based on
demand. This allows for efficient utilization of resources and ensures that each VM gets the
necessary computing power and memory to run its applications.
7. **Networking:**
- The hypervisor manages networking for the virtual machines. It can create virtual networks and
assign virtual network interfaces to each VM, enabling communication between VMs and the
external network.
8. **Storage:**
- Virtual machines store their data on virtualized storage resources. The hypervisor abstracts
physical storage and presents it to each VM. This allows for flexibility in allocating storage space and
managing data.
- Advanced hypervisors often support features like live migration, allowing VMs to be moved
between physical servers without downtime. High availability features ensure that if a physical server
fails, VMs can be automatically restarted on other servers.
In summary, server virtualization works by abstracting and virtualizing the resources of a physical
server, creating multiple independent virtual machines. The hypervisor manages the allocation of
resources, provides isolation between VMs, and offers tools for efficient administration and control
of the virtualized environment. This technology has become a cornerstone in modern data centers,
improving resource utilization, scalability, and flexibility in managing IT infrastructure.
Imagine you're hosting a party, and you have a large table where you want to serve different types of
dishes (applications and operating systems). You have various options for how you arrange and
manage the serving process:
- In full virtualization, it's like preparing individual plates for each guest. Each plate represents a
complete set of food (an operating system with applications). Guests (virtual machines) can enjoy
their meals independently. The table (physical server) is shared, but everyone gets their own
dedicated portion.
- Now, let's say you have a coordinated buffet where guests are aware of the available dishes. In
para-virtualization, the guests (virtual machines) collaborate with you (hypervisor) to optimize the
buffet experience. The guests are informed about the offerings, allowing for more efficient dining
(better performance).
- In containerization, it's like serving dishes family-style. Instead of individual plates, you place the
main dishes and sides in separate containers (containers). These containers share the same table
(host operating system's kernel), making it more resource-efficient. Guests (applications) can grab
what they need without the need for separate plates (virtual machines).
- Imagine having smart helpers (hardware extensions like Intel VT-x or AMD-V) at the buffet. These
helpers streamline the serving process, making it more efficient. They assist in providing a seamless
dining experience for guests (virtual machines) by reducing the workload on the host (physical
server).
Virtual server consolidation refers to the practice of consolidating multiple physical servers into
fewer virtual servers. This approach offers several benefits, and here are ten common uses for virtual
server consolidation:
1. **Resource Optimization:**
- **Use Case:** Pooling resources from underutilized physical servers to create a consolidated
virtual environment.
- **Benefits:** Efficient utilization of computing resources, reduction in idle capacity, and improved
overall performance.
2. **Cost Savings:**
- **Use Case:** Consolidating servers leads to reduced hardware, maintenance, and energy costs.
- **Benefits:** Lower total cost of ownership (TCO), decreased capital expenditure, and improved
return on investment (ROI).
3. **Energy Efficiency:**
- **Use Case:** Fewer physical servers result in decreased power consumption and cooling
requirements.
- **Benefits:** Lower energy bills, reduced environmental impact, and alignment with green IT
initiatives.
4. **Simplified Management:**
- **Use Case:** Managing a smaller number of virtual servers is more straightforward than
handling numerous physical servers.
- **Use Case:** Easily scale up or down by adding or removing virtual servers based on demand.
- **Benefits:** Improved agility, responsiveness to changing workloads, and better alignment with
business growth.
- **Use Case:** Virtual server consolidation simplifies backup and recovery processes.
- **Benefits:** Faster recovery times, reduced data loss, and simplified disaster recovery planning.
7. **Improved Performance:**
- **Use Case:** Efficiently allocate resources to virtual machines to optimize performance.
- **Use Case:** Extend the lifespan of legacy applications by running them on modern virtualized
infrastructure.
- **Benefits:** Avoid the costs and risks associated with maintaining outdated physical servers,
while still supporting critical legacy systems.
- **Benefits:** Improved protection against security threats, isolation of sensitive workloads, and
easier enforcement of security policies.
- **Use Case:** Create isolated virtual environments for development and testing.
- **Benefits:** Faster and more efficient software development cycles, improved quality
assurance, and quicker deployment of test environments.
When referring to "platforms" in the context of server virtualization, it generally means the
virtualization software or hypervisors that provide the foundation for creating and managing virtual
machines. Here are some prominent virtualization platforms:
1. **VMware vSphere/ESXi:**
2. **Microsoft Hyper-V:**
- **Description:** Hyper-V is Microsoft's virtualization platform. It includes the Hyper-V hypervisor,
which can be installed on Windows Server. Hyper-V provides virtualization capabilities for running
multiple Windows and Linux virtual machines.
- **Description:** KVM is a Linux kernel module that turns the host operating system into a
hypervisor. It allows Linux to function as a Type 1 hypervisor. KVM is often used in conjunction with
tools like QEMU for virtualization.
4. **Xen:**
- **Description:** Citrix Hypervisor is based on the open-source Xen Project. It provides additional
features and tools for managing virtualized environments, making it suitable for both server and
desktop virtualization.
7. **Oracle VM VirtualBox:**
9. **Docker:**
- **Description:** While not a traditional virtualization platform, Docker is a popular
containerization platform. It allows the packaging and distribution of applications and their
dependencies in containers, providing lightweight and efficient deployment.
These platforms enable organizations to implement server virtualization, offering features such as
resource management, high availability, scalability, and ease of administration. The choice of a
virtualization platform depends on factors like the specific requirements of the organization,
compatibility with existing infrastructure, and the desired features and capabilities.
Certainly! Let's explore a business case for implementing server virtualization in a fictional company
called "TechSolutions Inc."
- **Description:** TechSolutions Inc. is facing challenges with their existing IT infrastructure. They
have a large number of physical servers that are underutilized, resulting in high hardware and energy
costs. Managing these servers has become complex, and there are concerns about the efficiency of
resource utilization.
**2. Objectives:**
- **Business Impact:**
- **Cost Reduction:** Reduce hardware, maintenance, and energy costs associated with the
current infrastructure.
**3. Solution:**
- **Business Impact:**
- **Business Impact:**
- **Hardware Cost Reduction:** Decrease the need for new hardware acquisitions.
- **Business Impact:**
- **Faster Deployment:** Accelerate the deployment of new virtual servers to meet business
demands.
- **Business Impact:**
- **Quick Recovery:** Ensure faster recovery times with virtual machine snapshots and backups.
- **Reduced Downtime:** Minimize downtime and data loss in case of system failures.
- **Business Impact:**
- **Automation:** Implement automation for routine tasks, saving time and reducing manual
errors.
- **Business Impact:**
**10. Future-Proofing:**
- **Business Impact:**
- **Technology Alignment:** Align IT capabilities with the evolving needs of the organization.
=------------------------------------------------------------------------------------------------------------------------------=
DESKTOP VIRTUALIZATION:
Desktop virtualization, also known as virtual desktop infrastructure (VDI), is a technology that
separates the desktop environment, including the operating system and applications, from the
physical device. The desktop environment is hosted on a remote server or data center and delivered
to the user's device over a network.
The working of desktop virtualization involves separating the user's desktop environment, including
the operating system and applications, from the physical device. Here's a simplified overview of how
desktop virtualization typically works:
1. **Hosted Infrastructure:**
- A centralized server or data center hosts virtual desktops. This server is equipped with
virtualization software, which could include a hypervisor.
- Virtual desktops are created as virtual machines (VMs) on the host server. Each VM represents an
individual user's desktop environment.
3. **User Access:**
- Users access their virtual desktops from endpoint devices such as thin clients, laptops, or desktop
computers. These devices act as "windows" into the virtualized desktop environment.
4. **Network Communication:**
- The user's device communicates with the host server over a network connection. This connection
can be local or remote, depending on the deployment.
5. **Desktop Delivery:**
- The virtualized desktop environment, including the operating system and applications, is delivered
to the user's device over the network. The user interacts with the desktop as if it were running locally
on their device.
- User input (keyboard, mouse actions) is sent to the virtual desktop, and the desktop's output
(display, audio) is transmitted back to the user's device.
7. **Centralized Management:**
- IT administrators centrally manage and maintain virtual desktop images on the host server.
Updates, patches, and software installations can be performed at the central server, affecting all
virtual desktops simultaneously.
- Each virtual desktop operates in isolation from others. This isolation enhances security and
ensures that user activities on one virtual desktop do not impact others.
9. **Resource Allocation:**
- Resources such as CPU, memory, and storage are allocated dynamically to virtual desktops based
on demand. This ensures optimal performance and efficient resource utilization.
- Users can access their virtual desktops from different devices and locations. This mobility is
facilitated by the centralized nature of desktop virtualization.
Desktop virtualization comes in various types, each catering to specific needs and use cases. Here are
some common types of desktop virtualization:
1. **Virtual Desktop Infrastructure (VDI):**
- **Use Case:** Suitable for businesses needing centralized management, security, and control
over desktop environments.
- **Description:** Also known as Terminal Services, RDS allows multiple users to share a single
operating system instance. Applications are hosted on a central server, and users access them
remotely.
- **Use Case:** Ideal for scenarios where multiple users need access to a shared set of applications
on a server.
3. **Application Virtualization:**
- **Description:** Instead of virtualizing the entire desktop, this type focuses on virtualizing
individual applications. Applications run in isolated containers and can be delivered to user devices
on-demand.
- **Use Case:** Useful for organizations aiming to simplify application management, enhance
security, and support diverse device environments.
- **Description:** Similar to VDI, but with a shared desktop experience. Multiple users share a
single virtualized desktop environment hosted on a server.
- **Use Case:** Appropriate for scenarios where users have similar desktop requirements and can
share a common environment.
- **Description:** Involves running a virtualization layer on a user's local device, allowing them to
run a virtual machine with its own operating system alongside the native operating system.
- **Use Case:** Useful for development, testing, or scenarios where users need to run multiple
operating systems on their personal devices.
- **Description:** Similar to VDI, but the virtual desktops run locally on the user's device rather
than being hosted on a centralized server.
- **Use Case:** Suitable for scenarios where users require a consistent environment but need
offline access to their desktops.
- **Description:** Users access a virtual desktop hosted on a central server, but they have the
ability to download and run the virtual desktop locally when offline.
- **Use Case:** Useful for situations where users need access to their desktops even without a
network connection.
- **Description:** Virtual desktops are hosted in the cloud by a third-party provider. Users access
their desktops over the internet, and the provider manages the infrastructure.
- **Use Case:** Offers flexibility, scalability, and reduced infrastructure management for businesses
without a dedicated IT team.
The choice of desktop virtualization type depends on factors such as the organization's requirements,
infrastructure, user needs, and the level of control and customization desired.
1. **Cost Savings:**
- **Reduced Hardware Costs:** Centralized virtual desktops mean less reliance on individual, high-
powered desktop computers.
- **Energy Efficiency:** Lower energy consumption as powerful servers in data centers are more
energy-efficient than numerous desktops.
2. **Centralized Management:**
- **Simplified Administration:** IT administrators can manage and update all virtual desktops from
a central location.
- **Uniform Deployment:** Applications, updates, and patches can be uniformly deployed across
the organization.
3. **Enhanced Security:**
- **Isolation:** Each virtual desktop operates independently, providing isolation and preventing
security breaches from spreading.
- **Centralized Security Measures:** Security measures and updates are centralized, ensuring
consistent protection across all virtual desktops.
- **Anytime, Anywhere Access:** Employees can access their virtual desktops from any device and
location, fostering flexibility and remote work capabilities.
- **User Mobility:** Virtual desktops can be accessed seamlessly, promoting user mobility within
and outside the organization.
5. **Resource Efficiency:**
- **Dynamic Resource Allocation:** Resources such as CPU, memory, and storage are allocated
dynamically based on demand, optimizing performance and resource utilization.
- **Reduced Downtime:** The central server's robust infrastructure enhances system reliability
and reduces downtime.
6. **Scalability:**
- **Easy Expansion:** As the organization grows, adding new virtual desktops is simpler and more
scalable compared to deploying physical desktops.
- **Adaptability:** Desktop virtualization adapts to changing business needs and the number of
users without significant infrastructure changes.
=---------------------------------------------------------------------------------------------------------------------------------=