Virtual Machine Live Migration

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the primary goal of VM live migration?

  • To shut down VMs quickly for maintenance.
  • To make services aware of the migration process.
  • To move VM instances across distinct physical hosts with minimal downtime. (correct)
  • To increase the physical distance between the user and the server.

Which of the following is a key characteristic of VM live migration?

  • The VM is treated as a black box. (correct)
  • Network connections of the guest OS are disrupted.
  • Downtime is maximized for better resource allocation.
  • Services are made fully aware of the migration.

What is a primary reason for performing online VM migration?

  • To disrupt network connections of the guest OS.
  • To make services aware of the migration.
  • To increase downtime for running services.
  • To vacate a VM Host system. (correct)

What characterizes offline VM migration compared to online migration?

<p>Fewer resources are used on the source and target VM Hosts. (A)</p> Signup and view all the answers

In the context of Amazon AWS, what does VM migration involve?

<p>Migrating VMs from one EC2 instance to another or to a Virtual Private Cloud (VPC). (C)</p> Signup and view all the answers

What capability does VMware vMotion provide?

<p>Moving VMs from one physical server to another. (C)</p> Signup and view all the answers

What is the purpose of RackSpace migration services?

<p>To facilitate migration from a cloud service provider to an in-house server. (A)</p> Signup and view all the answers

Which virtualization solution is offered by Microsoft for Windows Server?

<p>Hyper-V (A)</p> Signup and view all the answers

What benefit does OpenStack provide in the context of VM migration?

<p>Support for live and non-live migrations for cloud administrators. (B)</p> Signup and view all the answers

Why might OS-level migration be preferred over process-level migration?

<p>To avoid residual dependencies and allow for easier power-off/sleep of the original host. (B)</p> Signup and view all the answers

Which of the following is a design challenge in VM migration?

<p>Minimizing service downtime. (A)</p> Signup and view all the answers

What is the purpose of eliminating hot-spots during VM migration?

<p>To free up resources. (A)</p> Signup and view all the answers

What is the initial step in the pre-copy migration process?

<p>Establishing layer-2 connectivity between data centers. (B)</p> Signup and view all the answers

During disk state migration, how is the initial copy made?

<p>Asynchronously (C)</p> Signup and view all the answers

What is the key parameter that influences the time to transfer a VM's memory in the "Pre-copy" mechanism?

<p>The VM's RAM allocation, working set size, write rate and available bandwidth. (D)</p> Signup and view all the answers

According to the traditional Xen migration algorithm, under what condition is the VM paused?

<p>Very few pages remain to be sent, it has already sent more than 3 times the VM's total memory or the limit of 30 iterations is reached (B)</p> Signup and view all the answers

What is a primary characteristic of the 'Smart Stop and Copy' approach?

<p>Intelligently picking when to stop iterating based on a heuristic. (D)</p> Signup and view all the answers

What is the goal of using page Deltas in VM migration?

<p>To reduce the consumed bandwidth during migration. (B)</p> Signup and view all the answers

In the context of traffic contention during VM migration, what is one approach to setting a limit?

<p>Setting a limit on the VM's total migration time or data amount in pre-copy. (D)</p> Signup and view all the answers

What is one of the aims of applying traffic-sensitive migration?

<p>Fully using the relatively vacant network traffic. (C)</p> Signup and view all the answers

Flashcards

VM Live Migration

Moving VM instances across physical hosts with minimal downtime.

Online Migration

Moving a VM while it's running.

Offline Migration

Moving a VM when it is stopped.

Microsoft Hyper-V

Microsoft's solution for virtualization in Windows Server.

Signup and view all the flashcards

OpenStack Migration Support

OpenStack supports live and non-live migrations for cloud administrators.

Signup and view all the flashcards

OS-Level Migration

Transferring in-memory state in a consistent and efficient way, avoiding residual dependencies in OS-level migration.

Signup and view all the flashcards

Design Challenges of VM migration

Minimize service downtime and migration duration without disrupting service.

Signup and view all the flashcards

Purposes of VM Live Migration

Aims to eliminate hotspots, defragment data centers, or obtain resources.

Signup and view all the flashcards

Pre-copy Live Migration

Copying memory while the VM is running and briefly pausing it for the final transfer.

Signup and view all the flashcards

Post-copy Live Migration

Pausing the VM, transferring the state, and then resuming on the destination.

Signup and view all the flashcards

Steps in Pre-Copy Migration

Establishing connectivity, transferring disk state, and then memory state.

Signup and view all the flashcards

Disk State Migration

First copy is asynchronous. Synchronous replication happens when the remote disk is stable. Disk updates are continuously propagated .

Signup and view all the flashcards

Transferring Memory State

Iteratively copying memory contents, pausing the VM for the final memory state transfer.

Signup and view all the flashcards

Traditional Memory Transfer

The default Xen migration algorithm iterates until a small number of pages remain or a limit is reached.

Signup and view all the flashcards

Smart Stop and Copy

A heuristic that tracks the number of pages remaining. Uses the local minimum.

Signup and view all the flashcards

Challenges and Impacts of VM Migration

Minimize service downtime and migration duration.

Signup and view all the flashcards

Traffic Contention

Competition for bandwidth among migration traffic and other network traffic.

Signup and view all the flashcards

Approaches for Traffic Contention

Setting limits on migration time or data amount.

Signup and view all the flashcards

Basic Concept-Traffic Sensitive Migration

Combination pre-copy and post-copy, selecting the appropriate migration mode. Traffic is measure by recorded rate of network traffic for each VM which tells the traffic contention

Signup and view all the flashcards

Study Notes

  • Virtual Machine (VM) live migration involves moving VM instances between physical hosts with minimal downtime, without disrupting services.
  • Services remain unaware of the migration process, maintaining network connections of the guest OS.
  • The VM is treated as a black box during migration.

Why VM Migration?

  • Online migration can vacate a VM Host system, target a specific VM Host, balance host workloads, and optimize physical resource utilization.
  • Offline migration uses fewer resources than online migration on the source and target VM Hosts.
  • Offline migration is necessary if there are different processor types preventing online migration, if the source VM may not support online migration, or if the VM has stopped and configuration information needs to be moved offline.

Examples of VM Migration

  • Amazon-AWS provides VM migration from one EC2 to another, or from EC2 to Virtual Private Cloud (VPC).
  • VMWare-vMotion allows moving a VM from one physical server to another.
  • RackSpace-Migration services facilitates migration from cloud service provider to in-house server, or from one cloud service provider to another.
  • Microsoft Hyper-V virtualizes Windows Server and can migrate a VM running on "Virtual Server 2005 R2 SP1" to Hyper-V.
  • OpenStack supports both live and non-live migrations for cloud administrators.
  • Red Hat enables live migration of VMs for maintenance, load balancing, or power saving.

OS-Level Migration

  • OS-level migration avoids 'residual dependencies.'
  • The original host can be powered off/put to sleep once migration is complete.
  • In-memory state can be transferred consistently and efficiently, eliminating reconnection needs for applications like media streaming.
  • OS-level migration allows a separation of concerns between users and operators, where users control software/services within their VM, while operators remain agnostic.

Design Challenges

  • Minimize service downtime.
  • Minimize migration duration.
  • Avoid disrupting the running service.

Virtual Machine Live Migration

  • Purposes:
    • Eliminate hot-spots to free up resources.
    • Defragment a data center or obtain resources.
  • Techniques:
    • Pre-copy live migration.
    • Post-copy live migration.
    • Hybrid live migration.

Pre-copy Migration

  • Step 1: Establish layer-2 connectivity between data centers if needed.
  • Step 2: Transfer the application's disk state if storage is not shared.
  • Step 3: Transfer the memory state of the application to a server in Data Center B while it continues running without interruption.
  • Step 4: Pause the application briefly for the final memory and processor state transition to Data Center B once the disk and memory states have been transferred.

Disk State Migration

  • The initial copy is made asynchronously.
  • Synchronous replication occurs once the remote disk is stable.
  • Disk updates are continuously propagated to the remote disk.

Transferring Memory State

  • A "Pre-copy" mechanism is used to iteratively copy the memory contents.
  • The VM is paused at the end to copy the final memory state.
  • The time required for memory transfer depends on RAM allocation, working set size, write rate, and available bandwidth.

Traditional vs. Smart Memory Transfer

  • The default Xen migration algorithm iterates until only a few pages remain, more than 3 times the VM's memory is sent, or a limit of 30 iterations is reached, then the VM is paused and all remaining pages are sent.
  • Smart Stop and Copy mitigates issues of long iterations by limiting transferred data.
  • Migration algorithms can intelligently determine when to stop iterating.
  • A heuristic that tracks the number of pages remaining to be sent.
  • Looks for local minima in the current history window
  • Greedy approach works best for window size 5

Page Deltas

  • After the first iteration, most pages are transferred.
  • Reduces bandwidth consumed during migration by sending only the changes that happened in the pages.

Design Example

  • Stage 0: Pre-Migration: Active VM on Host A, alternate host pre-selected, block devices mirrored, resources maintained.
  • Stage 1: Reservation: Initialize a container on the target host.
  • Stage 2: Iterative Pre-copy: Shadow paging enabled, dirty pages copied in rounds.
  • Stage 3: Stop and copy: VM suspended on Host A, ARP generated to redirect traffic, remaining state synchronized to Host B.
  • Stage 4: Commitment: VM state is released on Host A.
  • Stage 5: Activation: VM starts on Host B, connects to local devices, and resumes operation.

Post-copy Migration

  • Involves stopping the VM, moving non-memory states to the destination, and beginning execution on the new machine.
  • During page faults, the required page is copied from the source machine, with background copying ensuring all pages are copied.
  • Is useful when avoiding latency.

Disadvantages of Pre-Copy and Post-Copy

  • Pre-copy issues include long migration times, large data transfer, and degrading application performance.
  • Post-copy can cause network-bound page faults, potential failures, and performance degradation.

Challenges and Impacts of VM Migration

  • Minimizing service downtime and migration duration, and avoiding disruption to running services.
  • Energy consumption is a consideration.

Traffic Contention

  • Migration traffic competes for bandwidth, especially when transmitting in the same direction.

Traffic Contention Examples

  • Outgoing traffic contends with pre-copy migration in source hosts.
  • Incoming traffic contends with post-copy migration in destination hosts.

Traffic Contention Solutions

  • Setting a limit on total migration time, data amount, or transfer rate.
  • Trade-off: reducing overhead of pre-copy may increase downtime, while offering more bandwidth to the VM may increase total migration time.

Traffic-Sensitive Migration

  • Select migration options to minimize affect on application.
  • Fully utilize available network bandwidth.
  • Avoid traffic contention, increases throughput.

Basic Concept

  • Traffic Profile requires recording the rate of network traffic which is used to calculate traffic contention.
  • A combination of pre-copy and post-copy is often used.

Prospect

  • Extending traffic-sensitive migration by moving VMs to differing hosts.
  • Calculate traffic contention, in destination hosts.
  • Select destination host and minimizing network contention.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

FortiGate VM for Public Cloud
20 questions
VM Security Policy Implementation Quiz
3 questions
Use Quizgecko on...
Browser
Browser