diff options
-rwxr-xr-x | kvmx | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -315,6 +315,10 @@ function kvmx_up { kvmx_spice fi + if [ "$run_xpra" == "1" ]; then + $DIRNAME/$BASENAME xpra $VM + fi + if [ "$ssh_support" == "y" ]; then let ssh_attempts="0" echo -n "Waiting for machine to boot..." @@ -497,6 +501,10 @@ function kvmx_poweroff { exit 1 fi + if [ "$run_xpra" == "1" ]; then + $DIRNAME/$BASENAME xpra $VM stop + fi + echo /usr/bin/sudo poweroff | kvmx_ssh &> /dev/null sleep 3 kvmx_status |