Commit Graph

28 Commits

Author SHA1 Message Date
Victor LABORIE 33c452464f Add vm-migrate script 2018-09-12 15:29:11 +02:00
Jérémy Lecour 4dc0b423b2 A path to an ISO image can be configured to boot the VM on it. 2018-09-06 13:49:59 +02:00
Jérémy Lecour 9b2e9889cc bridge name is configurable 2018-09-06 13:47:23 +02:00
Alexis Ben Miloud--Josselin 93fc44aa06 Move depencies checking before args parsing
This commit also adds bc(1) to the dependencies
list and fixed some comments.
2018-08-02 18:04:28 +02:00
Alexis Ben Miloud--Josselin cfa1cf2261 Only count running VM in total
This commit also fixes the way kvmstats counts
running VM.
2018-08-02 17:39:16 +02:00
Alexis Ben Miloud--Josselin 4b5c68ca57 Add a way to show available ressources
This can be done using the -a option.
2018-08-02 17:28:58 +02:00
Victor LABORIE bf385b9749 Rename script without extension and make them executable 2018-07-27 11:50:28 +02:00
Victor LABORIE 0fcf624576 Add a gitignore for .swp files 2018-07-27 11:06:57 +02:00
Victor LABORIE 72953ee6a5 Add doc for disks config in add-vm 2018-07-27 11:06:31 +02:00
Victor LABORIE f830db53e3 Fix default disks value 2018-07-27 10:57:35 +02:00
Alexis Ben Miloud--Josselin 6b62401abf Use more revelant names for temp files 2018-07-19 11:41:35 +02:00
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
Alexis Ben Miloud--Josselin 5106b550d3 Make the code warning-free
Using `shellcheck -s sh kvmstats.sh`.
2018-07-16 16:56:25 +02:00
Alexis Ben Miloud--Josselin c9905f5c4c Exit on error 2018-06-28 17:52:35 +02:00
Alexis Ben Miloud--Josselin d6c0f12e83 Add kvmstats to README 2018-06-21 10:27:56 +02:00
Alexis Ben Miloud--Josselin 383e800ec9 Add header about html-xml-utils package 2018-06-21 10:24:22 +02:00
Alexis Ben Miloud--Josselin 85cb26be13 Add "running" column 2018-06-08 14:55:29 +02:00
Alexis Ben Miloud--Josselin a4f4f41a7b Avoid to compute disk many times 2018-06-08 14:16:57 +02:00
Alexis Ben Miloud--Josselin 34e0f1cf6d Use 4 spaces instead of tabs
RIP 8-width *real* tab :(
2018-06-08 13:32:40 +02:00
Alexis Ben Miloud--Josselin ee4750cefa Use GiB as default unit for memory
As a result, K arg has been added to -u option to
see memory in KiB.
2018-06-08 13:32:07 +02:00
Alexis Ben Miloud--Josselin 80ba982841 Run lvs only one time
Also make the case esac readable
2018-06-08 11:25:42 +02:00
Alexis Ben Miloud--Josselin 1dc0c0299e Add -u option
This option controls the unit factor of the RAM.
2018-06-08 11:09:52 +02:00
Alexis Ben Miloud--Josselin 42226c7817 Add dependency check 2018-06-08 10:36:54 +02:00
Alexis Ben Miloud--Josselin 2f86db5cb7 Add kvmstats.sh script 2018-06-01 18:31:10 +02:00
Victor LABORIE 663d38d808 Add a README.md file 2018-05-15 14:12:30 +02:00
Victor LABORIE 592f00c047 Disks and dryn-run mode can be defined in config file 2018-05-15 14:04:50 +02:00
Victor LABORIE f3b8cccbae Better dry-run mode
* Use drbdadm --dry-run instead of echoing command
* Do not check if drbd volume is existant
* Do not run evomaintenance
2018-05-15 12:37:48 +02:00
Victor LABORIE ea4884c1b4 Initial commit 2017-10-26 17:14:07 +02:00