live migration of virtual machines presented by: edward armstrong university of guelph

27
Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Upload: anissa-alltop

Post on 29-Mar-2015

233 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Live Migration of Virtual Machines

Presented by:Edward ArmstrongUniversity of Guelph

Page 2: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

OverviewProblem DescriptionSolutionsStrengths and WeaknessesResults

Page 3: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Migrating an OS - Complexity

•Same machine.

•Hibernating a laptop.

Trivial

•Same Hardware, different Machine.

•Changing cluster nodes.

Moderate

•Different hardware.

Complex

Page 4: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Migrating an OS – Timescale

•Requires only long term storage to be migrated.

•Loses all process state information.

•Driver reloading solves hardware problems.

Reboot•Typically

performed on the same machine.

•Requires long term storage.

•Loses external connection information, ie. network status.

Hibernation

•Hibernation in short term storage (RAM).

•Typically used to maintain a low power state.

Suspend

•Processes are not implicitly frozen.

•Differences in hardware create problems.

•Solved by using virtual machines.

Live

Page 5: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

ConsiderationsBoth machines must be active at

the same time.Migration of active live services.Total migration time.Resource contention.

Page 6: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Migrating memory

Push

PausePull

Page 7: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Memory - Pure stop and copy.

Pros◦ Simplicity.◦ Consistency.

Cons◦ Downtime proportional to

memory.◦ Unacceptable for live services.

Push

PausePull

Source Machine Target Machine

Page 8: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Memory - On demand migration.

Pros◦ Shorter downtime.◦ Consistency.

Cons◦ Longer migration time.

Push

PausePull

Target MachineSource Machine

Page fault request

Send page

Page 9: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Memory - Pre copy migration.

Pros◦ Copy low fault pages quickly.◦ Works well for live processes.

Cons◦ Large number of faults for

busy memory.

Push

PausePull

Target MachineSource Machine

Live page fault

Iterative push

Page 10: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Network and disk resources.Unique to an OS instance.Ordering of resources are non-

determinsitic.Need to maintain open network

connections.

Page 11: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Resolving network connections with an ARP* response.

Source MachineNo Address

Target Machine192.168.0.102

LAN

*ARP: Address Resolution Protocol

Packets

Page 12: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Resolving network connections with an ARP* response.

Source MachineNo Address

Target Machine192.168.0.102

LAN

*ARP: Address Resolution Protocol

Unsolicited ARP reply

Packets

Page 13: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Resolving network connections with an ARP* response.

Source Machine192.168.0.102

Target MachineNo Address

LAN

*ARP: Address Resolution Protocol

Packets

Page 14: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

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.

Page 15: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Design Overview

Pre-Migration

Reservation Pre-Copy

Stop and CopyCommitActivate

Source Machine Target Machine

Select a new target machine

Page 16: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Design Overview

Pre-Migration

Reservation Pre-Copy

Stop and CopyCommitActivate

Source Machine Target Machine

Confirm available resources on target.Failure means VM continues to run on source.

Page 17: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Design Overview

Pre-Migration

Reservation Pre-Copy

Stop and CopyCommitActivate

Source Machine Target Machine

Transfer memory.Retransmit memory used during transfer.

Page 18: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Design Overview

Pre-Migration

Reservation Pre-Copy

Stop and CopyCommitActivate

Source Machine Target Machine

Halt source to redirect network trafficand transfer CPU state.

Page 19: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Design Overview

Pre-Migration

Reservation Pre-Copy

Stop and CopyCommitActivate

Source Machine Target Machine

Verify transfer complete.Disable source.

Page 20: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Design Overview

Pre-Migration

Reservation Pre-Copy

Stop and CopyCommitActivate

Source MachineTarget Machine

Activate target machine

Page 21: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Summary of DesignAt all times there is at least one

consistent image available.Minimized down time.Not a fast process overall.Requires tuning.Requires certain hardware.

Page 22: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Performance – Dirty Pages.

8 second granularity, used to decide which pages make for good pre-migration.

Page 23: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Performance

Page 24: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Performance

1- 4 pre-copy iterations

Page 25: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Performance

1- 4 pre-copy iterations

Page 26: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Performance

1- 4 pre-copy iterations

Page 27: Live Migration of Virtual Machines Presented by: Edward Armstrong University of Guelph

Thank You