CIS Module 3 VDC Compute
CIS Module 3 VDC Compute
VIRTUALIZED DATA
CENTER – COMPUTE
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved.
Module 3: Virtualized Data Center – Compute
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 2
Virtualized Data Center
Transforming a Classic Data Center Virtualized Data Center (VDC)
(CDC) into a Virtualized Data Center
(VDC) requires virtualizing the core
elements of the data center. Virtualize Network
Virtualize Storage
Virtualize Compute
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 3
Module 3: Virtualized Data Center – Compute
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 4
Compute Virtualization
Compute Virtualization
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 5
Need for Compute Virtualization
Hypervisor
x86 Architecture
x86 Architecture
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 6
Hypervisor
Hypervisor
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 7
Types of Hypervisor
APP
Hypervisor
Hypervisor
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 8
Benefits of Compute Virtualization
• Server consolidation
• Isolation
• Encapsulation
• Hardware independence
• Reduced cost
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 9
Module 3: Virtualized Data Center – Compute
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 10
Virtual Machine
• From a user’s perspective, a
logical compute system
Runs an operating system (OS) and
application like a physical machine
Contains virtual components such
as CPU, RAM, disk, and NIC
• From a hypervisor’s perspective Hypervisor
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 11
Virtual Machine Files
File name Description
Virtual BIOS File • Stores the state of the virtual machine’s (VM’s) BIOS
• Is a VM’s paging file which backs up the VM RAM contents
Virtual Swap File
• The file exists only when VM is running
• Stores the contents of the VM’s disk drive
Virtual Disk File • Appears like a physical disk drive to VM
• VM can have multiple disk drives
• Keeps a log of VM activity
Log File
• Is useful for troubleshooting
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 12
File System to Manage VM Files
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 13
Virtual Machine Hardware
Parallel Serial/Com USB controller
port ports and USB devices
RAM Keyboard
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 14
VM Hardware Components
Virtual Hardware Description
• Virtual machine (VM) can be configured with one or more virtual
vCPU CPUs
• Number of CPUs allocated to a VM can be changed
• Amount of memory presented to the guest operating system (OS)
vRAM
• Memory size can be changed based on requirement
• Stores VM's OS and application data
Virtual Disk
• A VM should have at least one virtual disk
vNIC • Enables a VM to connect to other physical and virtual machines
Virtual DVD/CD-ROM • It maps a VM’s DVD/CD-ROM drive to either a physical drive or an
Drive .iso file
Virtual Floppy Drive • It maps a VM’s floppy drive to either a physical drive or an .flp file
Virtual SCSI Controller • VM uses virtual SCSI controller to access virtual disk
Virtual USB Controller • Maps VM’s USB controller to the physical USB controller
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 15
Virtual Machine Console
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 16
Module 3: Virtualized Data Center – Compute
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 17
Resource Management
Resource management
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 18
Resource Pool
Resource pool
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 19
Resource Pool Example
Standalone Physical Machine – Machine 1
Parent Pool
CPU = 3000 MHz
Memory = 6GB
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 20
Share, Limit, and Reservation
• Parameters that control the resources consumed by a child
resource pool or a virtual machine (VM) are as follows:
Share
Amount of CPU or memory resources a VM or a child resource pool can have
with respect to its parent’s total resources
Limit
Maximum amount of CPU and memory a VM or a child resource pool can
consume
Reservation
Amount of CPU and memory reserved for a VM or a child resource pool
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 21
Optimizing CPU Resources
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 22
Multi-core Processors
VM with VM with VM with
one CPU two CPUs four CPUs
Virtual CPU
Virtual
Physical
Core
Socket
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 23
Hyper-threading
VM with VM with VM with
• Makes a physical CPU appear as one CPU two CPUs one CPU
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 24
CPU Load Balancing
VM with VM with VM with
one CPU one CPU one CPU
LCP LCP
U U
LCP LCP
U U
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 25
Optimizing Memory Resource
• Hypervisor manages a machine’s physical memory
Part of this memory is used by the hypervisor
Rest is available for virtual machines (VMs)
• VMs can be configured with more memory than physically
available, called ‘memory overcommitment’
Memory optimization is done to allow overcommitment
• Memory management techniques are Transparent page sharing,
memory ballooning, and memory swapping
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 26
Transparent Page Sharing
• Hypervisor detects identical memory pages of virtual machines (VMs) and
maps them to same physical page
Read-only when shared
• For writes, hypervisor treats the shared pages as copy-on-write
• Attempts to write on shared page
Generates minor page fault
Creates private copy after write and remaps the memory
Private copy
Physical Memory
Memory Page
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 27
Memory Ballooning
No memory shortage, balloon remains
uninflated
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 28
Memory Swapping
• Each powered-on virtual machine (VM) needs its own swap file
Created when the VM is powered-on
Deleted when the VM is powered-off
• Swap file size is equal to the difference between the memory
limit and the VM memory reservation
• Hypervisor swaps out the VM’s memory content if memory is
scarce
• Swapping is the last option because it causes notable
performance impact
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 29
Resource Management Tool
• Provides ability to manage physical Management
Server
machines running hypervisor
• Enables centralized management of
resources from a management server Manage Physical and
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 30
Module 3: Virtualized Data Center – Compute
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 31
Physical to Virtual Machine (P2V) Conversion
P2V Conversion
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 32
Benefits of P2V Converter
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 33
Components of P2V Converter
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 34
Conversion Options
• Hot conversion
Occurs while physical machine is running
Performs synchronization
Copies blocks that were changed during the initial cloning period
Performs power off at source and power on at target virtual
machine (VM)
Changes IP address and machine name of the selected machine, if
both machines must co-exist on the same network
• Cold conversion
Occurs while physical machine is not running OS and application
Boots the physical machine using converter boot CD
Creates consistent copy of the physical machine
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 35
Hot Conversion Process
Converter server
running converter
software
Agent
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 36
Hot Conversion Process (contd.)
Converter server
running converter
software
Reconfiguration
Agent
Powered-on
Source Physical Source
Snapshot
Machine Volume
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 37
Cold Conversion Process
Powered-on
Source Physical Source
Volume
Machine
Destination Physical
Machine (Running
Hypervisor)
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 38
Cold Conversion Process (contd.)
Converter boot CD
Reconfiguration
Powered-on
Source Physical Source Step 3: Clones source
Machine Volume disk to VM disk
Destination Physical
Machine (Running
Hypervisor)
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 39
P2V Conversion: Considerations
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 40
Module 3: Virtualized Data Center – Compute
Concept in Practice
• VMware vSphere
• VMware vCenter Converter
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 41
Concept in Practice: VMware vSphere VMware vSphere
• An infrastructure virtualization vSphere Client
suite that provides: Consolidated
DRS HA Plug-in
Virtualization Backup
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 42 4
Concept in Practice: VMware vCenter Converter
• Converts physical machines to Source VMware Products
VMware ESX
VMware
Converter
Center
VMware ESXi
Hypervisor
x86 Architecture
Third-party
Virtual Machine
NIC Hard
CPU Card Memory Disk
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 43
Module 3: Summary
Key points covered in this module:
• Drivers of compute virtualization
• Challenges of virtualizing x86 hardware
• Techniques to virtualize x86 hardware
• Components of a virtual machine (VM)
• Resource optimization techniques
• Conversion of physical machine to VM
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 44
Check Your Knowledge
1. Explain two types of hypervisor.
2. What are the challenges of x86 hardware virtualization?
3. Explain the function of each virtual machine (VM) file.
4. Explain the three memory optimization techniques.
5. What are the two options to convert physical to VM?
EMC Proven Professional. Copyright © 2012 EMC Corporation. All Rights Reserved. Virtualized Data Center – Compute 45