Professional Documents
Culture Documents
Introduction
• Physical cluster is a collection of servers interconnected by a physical
network
• Virtual clusters are built with VMs installed at distributed servers from
one or more physical clusters
1
2/1/2023
Introduction
Properties of VM in Virtual Cluster
• Multiple VMs running with different OSes can be deployed on the same physical node
• The failure of any physical nodes may disable some VMs installed on the failing nodes
But the failure of VMs will not pull down the host system
• The purpose of using VMs is to consolidate multiple functionalities on the same
server.
• This will greatly enhance server utilization
Introduction
Properties of VM in Virtual Cluster
• Each VM can be installed on a remote server or replicated on multiple servers
belonging to the same or different physical clusters
• The boundary of a virtual cluster can change as VM nodes are added, removed, or
migrated dynamically over time
2
2/1/2023
3
2/1/2023
4
2/1/2023
System maintenance
• A physical system required to be upgraded and serviced
– So all VM’s of that physical server must be moved to an alternate server for
maintenance and services are available to users without interruption
Live VM Migration
Power Management
• Switching the idle mode server to either sleep mode or off mode based on
resource demands
– Leads to great energy saving because idle mode server consumes 70% of their peak power
• Consolidate the running VM’s to fewer active hosts leads to great energy saving
– So dynamic allocation of VM’s to few active servers as much as possible
• Therefore, VM live migration is a good technique for cloud power efficiency
5
2/1/2023
Live VM Migration
Components in live VM migration
• At the time of live VM migration, it is essential to know about what to
migrate or which content must be migrated
– Memory content
– Storage content
What is migrated?
• CPU context of VM, contents of main memory
• Narrow interface, easier than process migration
• Disk: assume NAS (network attached storage) that is accessible from both hosts, or local
disk is mirrored
• a network-accessible storage system, such as storage area network (SAN) or network
attached storage (NAS), is employed
• Only memory and CPU status needs to be transferred from the source node to the target
node. We do not consider migrating disk data
• Network: Assume both hosts on same LAN
• The migrated VM carries IP address, advertise new MAC address to IP mapping via ARP reply
• All protocol state, including any open sockets
• Migrate MAC address, let switches learn new MAC location
• Network packets redirected to new location (with transient losses)
6
2/1/2023
What is migrated?
• I/O devices are provisioned at target
• Virtual I/O devices easier to migrate, direct device assignment of physical devices to
VMs (device passthrough) makes migration harder
7
2/1/2023
Live VM Migration
Live VM Migration Steps
Start migration
• Makes preparations for the migration
– The migrating VM and the destination host
Transfer memory
• Send VM’s memory to the destination node
– All of the memory data is transferred in the first round
• The migration controller recopies the memory data which is changed in the last round
– These steps keep iterating until the dirty portion of the memory is small enough to handle
the final copy
8
2/1/2023
9
2/1/2023
Steps to Migrate a VM
• Broad steps in any migration technique: Suppose we are migrating a
VM from host A to host B
1. Setup target host B, reserve resources for the VM
2. Push phase: push some memory of VM from A to B
3. Stop-and-copy: stop the VM at A, copy CPU context, and some memory
4. Pull phase: Start VM at host B, pull any further memory required from A
5. Clean up state from host A, migration complete
• Total migration time: time for steps 2,3,4
• Service downtime: time for step 3
• Other metrics: impact on application performance, network bandwidth consumed,
total pages transferred
10
2/1/2023
11
2/1/2023
12
2/1/2023
13
2/1/2023
• During the migration, data can be tampered or sniffed easily as it is not encrypted
• Thus compromising confidentiality and integrity of migrating data
• These security threats in live VM migration discourages many sectors, such as financial,
medical, and government, from taking advantage of VM live migration
• Hence, security is the critical challenge that needs examination to provide secure live
VM migration
14