Git Product home page Git Product logo

os-livemigration's Introduction

Enable live-migration on OpenStack

Description

These scripts will configure shared UID & GID's and permissions across all cluster nodes for the services libvirt, nova, kvm, libvirt-qemu & libvirt-dnsmasq to allow for the usage of instances off of a shared NFS server back-end, and ultimately, enable full live-migration of said instances.

These scripts assume:

  • A vanilla OpenStack installation with nodes assumming either a controller or compute role.
    • I'm currently using OpenStack Essex 2012.1.3-dev on Ubuntu 12.04
  • That all nodes, controllers & computes, have DNS or /etc/hosts configured to know of the rest of the nodes in the cluster via hostname since live-migration requires it.

Alternations performed:

- Controller:
    - Installs libvirt-bin & kvm
    - Alters the proper linux UID & GID's
    - Sets up an NFS Server
- Compute:
    - Alters the proper linux UID & GID's
    - Updates the libvirt configurations
    - Sets up an NFS client to the NFS server on the controller node

Installation/Modifications

- Controller: - `./setup_controller.sh` - `reboot` - Compute - `./setup_compute.sh ` - i.e. `./setup_compute.sh 10.1.1.1` - `reboot`

Using Live-Migration

1. Boot up a VM in nova from the controller: - `nova boot --flavor= --image=

` 2. Show VM details: - `nova show ` - This VM should be on one of the compute node hosts 3. Verify that the hosts are using & can see the instance on the shared NFS server - `ls -alh /var/lib/nova/instances/` 4. Once the VM is up, perform the live-migration from the controller - `nova live-migration ` - Remember, all nodes should have DNS & /etc/hosts configured to know of the rest of the nodes via hostname for this to work 5. View migration status from controller: - `nova list` 6. Once the migration is done & the VM is active, verify VM is in fact no longer running on original compute node & instead it is on the new node by viewing the qemu process details on both compute nodes: - `ps aux | grep qemu` - The qemu process should only be on the new compute node

os-livemigration's People

Contributors

metral avatar

Stargazers

Dale Bracey avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.