Introduction To Virtualization
Introduction To Virtualization
Introduction To Virtualization
Introduction to Virtualization
SHARE Boston, Session 13591
Introduction to Virtualization
– Concept
– Server Virtualization Approaches
– Hypervisor Implementation Methods
– Why Virtualization Matters
Virtualization on System z
– Logical Partitions
– Virtual Machines
Virtual Resources
Proxies for real resources: same interfaces/functions, different attributes
May be part of a physical resource or multiple physical resources
Virtualization
Creates virtual resources and "maps" them to real resources
Primarily accomplished with software or firmware
Resources
Components with architecturally-defined interfaces/functions
May be centralized or distributed - usually physical
Examples: memory, disk drives, networks, servers
Adjustable
partitions Hypervisor
Hypervisor
Partition
Controller Host OS
Server is subdivided into fractions Hypervisor provides fine-grained Hypervisor uses OS services to
each of which can run an OS timesharing of all resources do timesharing of all resources
Characteristics:
• Bare-metal hypervisors offer high efficiency and availability
• Hosted hypervisors are useful for clients where host OS integration is important
• Hardware partitioning is less flexible than hypervisor-based solutions
Hardware Load
Load, Store, Add, ...
Store
Problem state
Instructions Instruction Add
Execution
Controls Hardware
or
Firmware
High-Frequency Start Subchannel, SSCH
Control
Instructions that Test Subchannel, ... TSCH
require
virtualization Instruction
SIE Interception Interpretation
to hypervisor
Low-Frequency LPAR Handling
Control
Instructions that hypervisor LPAR Virtualization
E.g., Modify SIE CPU
require hypervisor Assists
virtualization Subchannel STATE
Descriptor
Physical CPU
Instruction Execution Unit
8 System z Virtualization Technology © 2013 IBM Corporation
LPAR Logical Processor Dispatching
z/VM Logical
z/OS Logical Partition z/VM Logical Partition Partition
General General zAAP zIIP General General General zAAP zIIP IFL IFL
Purpose Purpose Logical Purpose Purpose Purpose Logical
Logical Logical Logical Logical Logical Logical Logical Logical Logical
Processor Processor Processor Processor Processor Processor Processor Processor Processor Processor Processor
Shared Shared Shared Shared Shared Shared Shared Shared Shared Shared
General General General General zAAP zAAP zIIP zIIP IFL IFL
Purpose Purpose Purpose Purpose Physical Physical Physical Physical Physical Physical
Physical Physical Physical Physical
Processor Processor Processor Processor Processor Processor Processor Processor Processor Processor
A
collection
of up to LPAR 1 LPAR 2 LPAR N
231- or A
64
2 -bytes collection
virtual of up to
address
spaces 264-bytes
z/VM Virtual Machine z/OS or Linux High- virtual
Each Performance Logical address
virtual Physical Memory Space spaces
machine Partition Physical Memory
may have Spaces z/OS and
its own Linux
virtual exploit
address multiple
spaces such
mapped virtual
to this address
common z/VM Hypervisor spaces
logical
partition Logical Partition Hypervisor
address
space
= the real partition memory pages associated with a virtual address space; that is, the sets of
dynamically-allocated physical memory pages necessary to run a z/OS task or a Linux
process
= the real partition memory pages associated with a virtual machine; that is, the sets of
dynamically-allocated physical memory pages necessary to run a guest operating system in
a virtual machine
P P P P P P P P P P P
A A A A A A A A A A A
R R R R R R R R R R R
T T T T T T T T T T T
I I I I I I I I I I I
T T T T T T T T T T T
I I I I I I I I I I I
O O O O O O O O O O O
N N N N N N N N N N N
CPU
The I/O infrastructure (adapters/channels, their transmission links, and attached I/O resources are shared by
LPARs at native speeds (without hypervisor involvement)
I/O requests, their associated data transfers , and I/O interruptions flow between each OS instance and the
shared I/O components, just as if the I/O components were physically dedicated to a single OS instance
12 System z Virtualization Technology © 2013 IBM Corporation
z/VM Virtual CPU Dispatching and Execution Control
Hardware Load
Load, Store, Add, ...
Store
Problem state
Instructions Instruction Add
Execution
Controls Hardware
or
Firmware
High-Frequency Set Storage Key, SSKE
Control
Instructions that Signal Processor, ... SIGP
require
virtualization Instruction
SIE Interception Interpretation
to hypervisor
Control z/VM Handling
Instructions that
require hypervisor hypervisor z/VM Virtualization
E.g., Start SIE
virtualization CPU Assists
Subchannel STATE
Descriptor
Shared Shared Shared Shared Shared Shared Shared Shared Shared Shared
General General General General zAAP zAAP zIIP zIIP IFL IFL
Purpose Purpose Purpose Purpose Physical Logical Logical Logical Logical Logical
Physical Logical Logical Logical
Processor Processor Processor Processor Processor Processor Processor Processor Processor Processor
LPAR 1
Virtual Machine 1 Virtual Virtual Machine N
Machine 2
z/VM Hypervisor
z/VM Hypervisor
Logical Partition Hypervisor
= the guest real memory pages associated with a virtual address space; that is, the sets of
dynamically-allocated host virtual memory pages necessary to run a z/OS task or a Linux
process
= the guest real memory pages associated with a virtual machine; that is, the sets of
dynamically-allocated host virtual memory pages necessary to run a guest operating system
in a virtual machine
Minidisk Cache
(High-speed, Virtual Disk Virtual Disk
in-memory disk in Memory in Memory
R/W cache)
T1 R/W R/W
z/VM
3. Issue hypervisor
commands on behalf
of Linux servers
Hypervisor CP
CP Operations Monitor