From: Silvio Rhatto Date: Fri, 6 Oct 2017 23:20:16 +0000 (-0300) Subject: Check if VM is running at kvmx_install X-Git-Tag: 0.1.0~374 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3cef0284b124696938645e11eae9a8ae2def9e60;p=kvmx.git Check if VM is running at kvmx_install --- diff --git a/README.md b/README.md index 0ae49a4..358f5e6 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ You can test your new system with Then, if everything is fine, stop the guest and turn it on again, this time with - kvmx up + kvmx up ## Further development diff --git a/kvmx b/kvmx index 0b8dc14..64746a3 100755 --- a/kvmx +++ b/kvmx @@ -1298,6 +1298,11 @@ function kvmx_mv { # Install system function kvmx_install { + if kvmx_running; then + echo "$BASENAME: guest $VM is running" + exit 1 + fi + local media="$3" if [ -z "$media" ]; then