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 bf385b9749 Rename script without extension and make them executable 1 year ago
.gitignore Add a gitignore for .swp files 1 year ago
README.md Rename script without extension and make them executable 1 year ago
add-vm Rename script without extension and make them executable 1 year ago
kvmstats Rename script without extension and make them executable 1 year ago

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.
  • 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.