290 likes | 454 Views
Live Migration of Virtual Machines. Presented by: Edward Armstrong University of Guelph. Overview. Problem Description Solutions Strengths and Weaknesses Results. Migrating an OS - Complexity. Migrating an OS – Timescale. Considerations. Both machines must be active at the same time.
E N D
Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph
Overview • Problem Description • Solutions • Strengths and Weaknesses • Results
Considerations • Both machines must be active at the same time. • Migration of active live services. • Total migration time. • Resource contention.
Memory - Pure stop and copy. • Pros • Simplicity. • Consistency. • Cons • Downtime proportional to memory. • Unacceptable for live services. Source Machine Target Machine
Memory - On demand migration. • Pros • Shorter downtime. • Consistency. • Cons • Longer migration time. Page fault request Send page Source Machine Target Machine
Memory - Pre copy migration. • Pros • Copy low fault pages quickly. • Works well for live processes. • Cons • Large number of faults for busy memory. Iterative push Live page fault Source Machine Target Machine
Network and disk resources. • Unique to an OS instance. • Ordering of resources are non-determinsitic. • Need to maintain open network connections.
Resolving network connections with an ARP* response. Source Machine No Address LAN Packets Target Machine 192.168.0.102 *ARP: Address Resolution Protocol
Resolving network connections with an ARP* response. Unsolicited ARP reply Source Machine No Address LAN Packets Target Machine 192.168.0.102 *ARP: Address Resolution Protocol
Resolving network connections with an ARP* response. Packets Source Machine 192.168.0.102 LAN Target Machine No Address *ARP: Address Resolution Protocol
Network resources. • Pros • Handled by external devices. • Similar scheme can be used to migrate disk services (not covered in paper). • Cons • Small amount of packet loss. • Requires a LAN with unsolicited ARP responses enabled.
Design Overview Select a new target machine Source Machine Target Machine
Design Overview Confirm available resources on target. Failure means VM continues to run on source. Source Machine Target Machine
Design Overview Transfer memory. Retransmit memory used during transfer. Source Machine Target Machine
Design Overview Halt source to redirect network traffic and transfer CPU state. Source Machine Target Machine
Design Overview Verify transfer complete. Disable source. Source Machine Target Machine
Design Overview Activate target machine Target Machine Source Machine
Summary of Design • At all times there is at least one consistent image available. • Minimized down time. • Not a fast process overall. • Requires tuning. • Requires certain hardware.
Performance – Dirty Pages. 8 second granularity, used to decide which pages make for good pre-migration.
Performance 1- 4 pre-copy iterations
Performance 1- 4 pre-copy iterations
Performance 1- 4 pre-copy iterations