/cluvirt

Virtual machines supervisor for openais cluster and libvirt.

Primary LanguageCGNU General Public License v2.0GPL-2.0

General Instructions
********************

Copyright (C) 2009 Federico Simoncelli <federico.simoncelli@nethesis.it>

This file is free documentation; you have unlimited permission to copy,
distribute and modify it.

Build Requirements
==================
The build has been tested on CentOS 5.5 with:

  openais-devel-0.80.6
  cman-devel-2.0.115
  libvirt-devel-0.6.3
  libxml2-devel-2.6.26

The sources should compile with previous libvirt versions down to 0.3.x.

Build Instructions
==================

Building from the repository checkout (requires autoreconf):

  $ ./autogen.sh
  $ ./configure
  $ make

Automated tests:

  $ make check
  $ make check-valgrind

Building the tarball:

  $ make dist-gzip

Building the rpms:

  $ make rpmbuild

Install Instructions
====================

  # make install

Basic Usage
===========

The cluvirtd daemon requires openais/corosync and libvirtd up and running.
It has been tested on CentOS 5.5 with openais-0.80.6-16, libvirt-0.6.3-33
and qemu-kvm virtual machines.

Run cluvirtd on each cluster node:

  # cluvirtd

Fetch the current status using cluvirtadm:

  # cluvirtadm
    ID  Member Name              Status  
    --  -----------              ------  
     1  nvc1                     online, local, cluvirtd
     2  nvc2                     online, cluvirtd
  
    ID  VM Name              Host                     St   VNC#    Mem   CPU%
    --  -------              ----                     --   ----    ---   ----
     2  demo1                nvc1                      R   5901    256    1.9
     3  nvoice2              nvc1                      R   5900    512    0.1
    63  nserv1               nvc1                      R   5902    256    0.0
    80  efw                  nvc2                      R   5903    256    0.5
    84  nserv2               nvc2                      P   5902    256    0.0
    90  rh5buildsys1         nvc2                      R   5900    512    2.1