diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-06 20:20:16 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-06 20:20:16 -0300 |
commit | 3cef0284b124696938645e11eae9a8ae2def9e60 (patch) | |
tree | 298f1c0f12c6e5a3c293385e06563b4082885223 | |
parent | 789bd411ba3aaf4a48d461f60d6f2bca8c2dc687 (diff) | |
download | kvmx-3cef0284b124696938645e11eae9a8ae2def9e60.tar.gz kvmx-3cef0284b124696938645e11eae9a8ae2def9e60.tar.bz2 |
Check if VM is running at kvmx_install
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | kvmx | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -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 <guest> + kvmx up <project-name> ## Further development @@ -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 |