Scripts for managing KVM hypervisors used with DRBD and LVM.
Go to file
Alexis Ben Miloud--Josselin 555b8eb7b6 Fix crash when vm is not running
Due to the `set -e`, the script exited when $VM
was no in "running" state.
2018-07-19 11:37:29 +02:00
add-vm.sh Disks and dryn-run mode can be defined in config file 2018-05-15 14:04:50 +02:00
kvmstats.sh Fix crash when vm is not running 2018-07-19 11:37:29 +02:00
README.md Add kvmstats to README 2018-06-21 10:27:56 +02:00

KVM tools

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

It contains the following scripts.

  • add-vm.sh: create DBRD volumes and virtual machines.
  • kvmstats.sh: gives informations about defined virtual machines.

Install

Copy the scripts to /usr/local/sbin:

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

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

masterKVMIP=192.168.0.X
slaveKVMIP=192.168.0.Y

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.