Commit Graph

40 Commits

Author SHA1 Message Date
Victor LABORIE d2bcb7c337 Auto change protocol to C and allow-two-primary for vm-migrate
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2019-05-16 16:11:40 +02:00
Victor LABORIE 128f8dc9a6 Update .drone.yml for use evolix repository
continuous-integration/drone/push Build is passing Details
2019-05-03 11:35:45 +02:00
Victor LABORIE c669653b18 Use DroneCI for auto build deb package
continuous-integration/drone/push Build is passing Details
2019-03-01 14:12:59 +01:00
Alexis Ben Miloud--Josselin 20cecaa77a Fix line print
On the last awk command, line containing "yes"
were printed two times.
2018-12-27 10:37:55 +01:00
Alexis Ben Miloud--Josselin e12c362f7b Fix unit -u option
Also clean the code
2018-12-27 10:37:55 +01:00
Victor Laborie 8e657a28b4 Merge branch 'license-readme-conformity' of evolix/kvm-tools into master 2018-12-26 17:45:42 +01:00
Patrick Marchand 057079a6b1 Fixes to markdown links in README.md 2018-12-26 11:32:02 -05:00
Patrick Marchand 66e1b08b16 A few improvements in the language of the wiki. 2018-12-24 16:11:16 -05:00
Victor LABORIE 7ea7b52dc0 Add doc for Debian packaging 2018-12-19 11:04:12 +01:00
Victor LABORIE d2198d8432 Add GPLv3 license 2018-12-12 18:29:56 +01:00
Alexis Ben Miloud--Josselin 2e516bb734 Do not use tempfile
It is not needed anymore.
2018-11-02 17:32:19 +01:00
Alexis Ben Miloud--Josselin d8c77c59d3 Use virsh instead of hxselect
Also remove lvs. The code is much simpler now!
2018-10-11 14:48:44 +02:00
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