Scripts for managing KVM hypervisors used with DRBD and LVM.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Victor Laborie d2bcb7c337 Auto change protocol to C and allow-two-primary for vm-migrate 3 days ago
docs Add doc for Debian packaging 5 months ago
.drone.yml Update .drone.yml for use evolix repository 2 weeks ago
.gitignore Add a gitignore for .swp files 9 months ago
LICENSE Add GPLv3 license 5 months ago
README.md Fixes to markdown links in README.md 4 months ago
add-vm A path to an ISO image can be configured to boot the VM on it. 8 months ago
kvmstats Fix line print 4 months ago
vm-migrate Auto change protocol to C and allow-two-primary for vm-migrate 3 days ago

README.md

KVM tools

This repository contains scripts for managing KVM hypervisors using DRBD and LVM.

It contains the following scripts.

  • add-vm: create DRBD volumes and virtual machines.
  • vm-migrate: migrate a DRBD based virtual machine
  • kvmstats: gives informations about defined virtual machines.

Installation

Copy the scripts to /usr/local/sbin:

install -m 0755 add-vm /usr/local/sbin/add-vm
install -m 0755 kvmstats /usr/local/sbin/kvmstats

Edit the configuration in /etc/evolinux/add-vm.cnf:

masterKVMIP=192.168.0.X
slaveKVMIP=192.168.0.Y

Script add-vm assumes you have two LVM Volume Groups named “ssd” and “hdd”.

You can override this by adding a bash(1) array in /etc/evolinux/add-vm.cnf, eg:

disks=("VG1" "VG2")

Dry-run mode

You can use the dry-run mode by setting the doDryRun variable in /etc/evolinux/add-vm.cnf::

doDryRun=true

This is specific to add-vm.

License

This is an Evolix project and is licensed under the GPLv3, see the LICENSE file for details.