summaryrefslogtreecommitdiffstats
path: root/kvm-wrapper.sh
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2016-01-27 18:41:41 +0100
committerDominique Martinet <dominique.martinet@cea.fr>2016-02-02 15:44:06 +0100
commit9729b396db5110222fe7c32f309fa03f4fc89141 (patch)
tree8daf2d00ebf86e6e04289ffad29194a2909c9a66 /kvm-wrapper.sh
parentc695a86e35376e3397d2a39888ad4aeb34697254 (diff)
indent fix, add command diag
Diffstat (limited to 'kvm-wrapper.sh')
-rwxr-xr-xkvm-wrapper.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/kvm-wrapper.sh b/kvm-wrapper.sh
index 31a0aeb..125593f 100755
--- a/kvm-wrapper.sh
+++ b/kvm-wrapper.sh
@@ -168,7 +168,7 @@ function kvm_init_env ()
function random_mac ()
{
- BASE_MAC=${BASE_MAC:-"52:54:00:ff"}
+ BASE_MAC=${BASE_MAC:-"52:54:00:ff"}
local MACADDR=`printf "$BASE_MAC:%02x:%02x" $((RANDOM % 256)) $((RANDOM % 256))`
# check if it's not already used..
grep -qre "KVM_MACADDR.*=\"$MACADDR\"" $VM_DIR \
@@ -1529,6 +1529,9 @@ case "$1" in
kvm_stop_vm "$2"
else print_help; fi
;;
+ diag)
+ monitor_send_cmd "nmi"
+ ;;
bootstrap)
if [[ $# -ge 2 ]]; then
kvm_bootstrap_vm "$2" "$3"