aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx12
1 files changed, 12 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 8bbb55b..632a2a0 100755
--- a/kvmx
+++ b/kvmx
@@ -155,6 +155,18 @@ function kvmx_poweroff {
kvmx_status
}
+# Reboot the guest
+function kvmx_reboot {
+ if ! kvmx_running; then
+ echo "$BASENAME: guest $VM is not running"
+ exit 1
+ fi
+
+ echo /usr/bin/sudo reboot | kvmx_ssh &> /dev/null
+ sleep 3
+ kvmx_status
+}
+
# Rsync files to the guest
function kvmx_rsync {
if ! kvmx_running; then