Scripts for managing KVM hypervisors used with DRBD and LVM.
Go to file
Eric Morino 81e3c00f3a
continuous-integration/drone/push Build is failing Details
Add virtinst dependency
2020-02-27 15:49:42 +01:00
debian Add virtinst dependency 2020-02-27 15:49:42 +01:00
docs Add doc for Debian packaging 2018-12-19 11:04:12 +01:00
.drone.yml Update .drone.yml for use evolix repository 2019-05-03 11:35:45 +02:00
.gitignore Add a gitignore for .swp files 2018-07-27 11:06:57 +02:00
LICENSE Add GPLv3 license 2018-12-12 18:29:56 +01:00
README.md Fixes to markdown links in README.md 2018-12-26 11:32:02 -05:00
add-vm A path to an ISO image can be configured to boot the VM on it. 2018-09-06 13:49:59 +02:00
kvmstats Fix line print 2018-12-27 10:37:55 +01:00
vm-migrate Auto change protocol to C and allow-two-primary for vm-migrate 2019-05-16 16:11:40 +02:00

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.