Scripts for managing KVM hypervisors used with DRBD and LVM.
Go to file
Victor LABORIE d2198d8432 Add GPLv3 license 2018-12-12 18:29:56 +01: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 Add GPLv3 license 2018-12-12 18:29:56 +01: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 Do not use tempfile 2018-11-02 17:32:19 +01:00
vm-migrate Add vm-migrate script 2018-09-12 15:29:11 +02:00

README.md

KVM tools

This repository contain scripts for managing KVM hypervisors used with DRBD and LVM.

It contains the following scripts.

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

Install

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 configuration in /etc/evolinux/add-vm.cnf:

masterKVMIP=192.168.0.X
slaveKVMIP=192.168.0.Y

Script add-vm assume you have two LVM Volume Group named "ssd" and "hdd".

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

disks=("VG1" "VG2")

Dry-run mode

You can use the dry-run mode by setting doDryRun var in config file:

doDryRun=true

This is specific to add-vm.

License

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