Virtualization Cloud Computing Notes
Virtualization Cloud Computing Notes
1. INTRODUCTION TO VIRTUALIZATION
Definition of Virtualization
• Virtualization is a technology that allows multiple operating systems and applications to
run on a single physical hardware platform by abstracting the underlying hardware
resources.
• It creates a software-based or virtual representation of computing resources, network,
storage, and servers.
• The physical hardware is abstracted by a virtualization layer (hypervisor) that manages
resource allocation to virtual instances.
• Key Benefits: Improved resource utilization, cost reduction, easier management,
enhanced flexibility, and disaster recovery.
Adopting Virtualization
Planning Phase:
• Assessment of existing infrastructure and workloads
• Identification of suitable candidates for virtualization
• ROI analysis and cost-benefit evaluation
Implementation Strategy:
• Pilot projects to test feasibility
• Phased migration approach to minimize disruption
• Infrastructure upgrade and licensing considerations
Challenges:
• Compatibility issues with legacy systems
• License compliance and costs
• Skill gap in operations and management
Types of Virtualization
1. Server Virtualization:
• Partitioning a single physical server into multiple virtual servers
◦ Each VM runs its own OS and applications independently
◦ Hypervisors: KVM, VMware vSphere, Hyper-V
2. Desktop Virtualization (VDI):
• Hosting desktop environments on centralized servers
◦ Users access their desktop via thin clients or any device
3. Network Virtualization:
• Creation of virtual networks independent of physical topology
◦ VLANs, SD-WAN, network slicing
4. Storage Virtualization:
• Abstracting physical storage devices into logical storage pools
◦ Enables flexible allocation and management of storage resources
5. Application Virtualization:
• Running applications in isolated containers or sandboxes
6. Hardware Virtualization:
• Simulating complete hardware platforms on software
Virtualization Architecture
Key Components:
• Hypervisor: Software layer that manages VM resource allocation
◦ Type 1 (Bare-metal): Runs directly on hardware (VMware ESXi, Hyper-V)
◦ Type 2 (Hosted): Runs on an OS (VMware Workstation, VirtualBox)
• Virtual Machines: Guest OS and applications running on abstracted hardware
• Management Software: Tools to monitor, provision, and manage VMs
• Physical Resources: CPU, memory, storage, and network
Virtualization Software
Popular Hypervisors:
• VMware vSphere: Enterprise solution with advanced features
• Microsoft Hyper-V: Windows-based virtualization platform
• KVM: Open-source, Linux-based hypervisor
• Citrix XenServer: Enterprise virtualization solution
Virtual Clustering
• A cluster of virtual machines managed as a single unit
• Provides high availability and load balancing across VMs
• Automatic failover and resource redistribution during failures
• Enhanced scalability and performance through distributed processing
Virtualization Applications
• Data Center Consolidation: Reduce physical servers and costs
• Business Continuity: Rapid VM migration and disaster recovery
• Development & Testing: Easy creation of test environments
• Workload Isolation: Security and stability through isolation
• Green Computing: Reduce power consumption and environmental impact
Pitfalls of Virtualization
• Performance Overhead: Hypervisor management introduces latency
• Resource Over-Commitment: Over-allocation leading to performance degradation
• Licensing Complexity: Managing licenses across multiple VMs
• Security Risks: VM escape vulnerabilities and hypervisor attacks
• Backup Challenges: Managing backups across numerous VMs
• Skill Requirements: Need for specialized training and expertise
2. GRID, CLOUD, AND VIRTUALIZATION
Virtualization in Grid Computing
• Grid Computing: Distributed computing using geographically dispersed resources
• Virtualization Benefits in Grid:
◦ Resource Aggregation: Combine heterogeneous resources into virtual pools
◦ Workload Flexibility: Dynamic allocation of workloads to virtual resources
◦ Fault Isolation: Failures contained within VM without affecting others
◦ Simplified Management: Unified management across distributed sites
Virtual Infrastructures
Definition:
• Complete abstraction of physical infrastructure components
• Users interact with virtualized resources without awareness of physical details
Components of Virtual Infrastructure:
• Virtual Machines: Abstract processing units
• Virtual Storage: Abstracted disk space and block storage
• Virtual Networks: Software-defined network segments
• Virtual Memory: Logical memory allocation across physical RAM and swap
Advantages:
• Flexibility: Easy resource modification without physical changes
• Scalability: Rapid addition of resources as needed
• Cost Efficiency: Better hardware utilization
• Portability: VMs can migrate between physical servers
CPU Virtualization
Concepts:
• Allows multiple virtual processors to share a single physical CPU
• Hypervisor manages CPU scheduling and context switching
CPU Virtualization Techniques:
• Binary Translation: Trapping privileged instructions and translating them
◦ Suitable for CPUs without virtualization support
• Hardware-Assisted Virtualization: Using CPU extensions (Intel VT-x, AMD-V)
◦ More efficient, reduced overhead
◦ Provides privileged modes for hypervisor and guest OS
• Paravirtualization: Guest OS modified to use hypercalls instead of privileged instructions
◦ Lower overhead, but requires OS modification
vCPU Allocation:
• Virtual CPUs (vCPUs) allocated to VMs
• Hypervisor maps vCPUs to physical CPU cores using scheduling algorithms
• Over-subscription: More vCPUs can be allocated than physical cores available
Network Virtualization
Concepts:
• Creation of virtual networks independent of physical network topology
• Allows network customization for different applications and tenants
Key Technologies:
• Virtual LANs (VLANs): Logical network segmentation within physical switches
◦ Isolates traffic and enhances security
• Software-Defined Networking (SDN): Separation of control and data planes
◦ Centralized network management and programmability
◦ Controllers manage network behavior via APIs
• Virtual Network Functions (VNF): Network services as software
◦ Firewalls, routers, load balancers as VMs or containers
• Overlay Networks: Virtual networks on top of physical networks
◦ VxLAN, GENEVE for tunnel-based connectivity
Virtual Network Features:
• Virtual Switches: Software bridges connecting VMs and physical networks
• Virtual Routers: Software routing between network segments
• Network QoS: Quality of Service policies for virtual networks
• Network Security Groups: Virtual firewalls controlling traffic
Storage Virtualization
Concepts:
• Abstraction of physical storage into logical storage pools
• Decouples storage infrastructure from applications
Storage Virtualization Approaches:
• Block-level Virtualization:
◦ Aggregates multiple disks into single storage volume
◦ RAID, Logical Volume Management (LVM)
• File-level Virtualization:
◦ Virtual file systems exposing multiple file systems as one
◦ Network File Systems (NFS), unified storage
• Object Storage:
◦ Stores data as objects with metadata
◦ S3-compatible storage, scale-out architecture
Benefits of Storage Virtualization:
• Flexibility: Easy allocation and reallocation of storage
• Scalability: Add storage without downtime
• Data Mobility: Live migration of data between storage systems
• Cost Reduction: Better space utilization and lower redundancy costs
• High Availability: Replication and snapshots for data protection
Storage Virtualization Challenges:
• Performance: Virtualization layer introduces overhead
• Complexity: Managing abstract storage pools requires expertise
• Data Integrity: Ensuring consistency across virtualized storage
4. QUICK REFERENCE: VIRTUALIZATION TYPES
Type Description Examples
Server Multiple OS on single server VMware, Hyper-V
Desktop Desktop environment on server Citrix, VMware Horizon
Network Logical networks on physical VLAN, SDN, VxLAN
Storage Abstraction of physical storage RAID, LVM, S3
Application Isolated application execution Containers, Sandboxes