02 Introduction To Compute Virtualization
02 Introduction To Compute Virtualization
2. Introduction to KVM
3. Introduction to FusionCompute
How is a virtual
machine
created?
2007 2014
HP launched HP-UX Rocket was launched.
Guest Machine
Virtualization software layer, or
Physical machine
App App
VM VM VM App VMM
VMM Host OS
Hardware Hardware
Host OS
Partitioned Isolated
Encapsulated Independent
VM VM
Application Application
Ring 3 Ring 3
Ring 2 Ring 2
Paravirtualized
Guest OS
Guest OS
Ring 1 Ring 1
Hypervisor Hypervisor
Ring 0 Ring 0
Hardware Hardware
VM memory
Host memory
Paravirtualization: Access to hardware drivers is transferred from the I/O frontend to the
I/O backend. This mode is usually only used for hard disks and NICs, and delivers high
performance.
IO-through: Hardware devices capable of I/O passthrough, such as hard disks and NICs,
are directly allocated to VMs. In Xen, Dom0 allocates hardware devices but does not take
part in the access of the hardware. Hardware support is required.
Cloud Computing
Compute Virtualization
CPU virtualization, memory virtualization,
I/O virtualization
KVM Hyper-V
Huawei
FusionSphere
PV
Backends
HW PV PV PV QEMU QEMU
Drivers Frontends Frontends Frontends
KVM
Xen Lunix
HW Drivers
Hardware Hardware
2. Introduction to KVM
3. Introduction to FusionCompute
VM VM
Application program A Application program B
Binaries/Libraries Binaries/Libraries
User
Guest OS Guest OS
Space User
ProcessesSpace QEMU QEMU
Processes
User space
Kernel space
KVM
Linux kernel
module
Physical
hardware
Management Tools
Libvirt
Linux Kernel
(KVM module)
QEMU QEMU
Guest Guest
OS OS
VM VM VM VM
(Guest OS) (Guest OS) (Guest OS) (Guest OS)
Manage-
ment
Hypervisor Hypervisor Tools Hypervisor
Libvirt
Linux host Linux host
Node Node
Guest OS
4
I/O Shared Page 1 10
QEMU I/O 7
Emulation Code Device Driver
3 8
Notification 2 9
Physical Hardware
Guest OS
QEMU
1 8
3 2
Virtio Backend Virtio Frontend
Driver vring Driver
6 7
Notification
I/O Trap Code
4
KVM Module
Linux Kernel
Device Driver
Physical Hardware
2. Introduction to KVM
3. Introduction to FusionCompute
VRM
Virtual Resource Pools
Cluster
Physical Physical
resource resource
Physical
resource
Virtual
resource
VRM VRM
A. Guest OS
B. VMM
C. Hypervisor
D. Host OS
2. All open-source virtualization technologies are type 1 virtualization, while all closed-
source ones are type 2 virtualization.
A. TRUE
B. FALSE