diff options
-rwxr-xr-x | kvmx | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |