Browse code

XenAPI: Recommend using xl console rather than vncviewer

Some vncviewers do not support the -via option, so default to suggesting
xl console. XenCenter continues to be an option for those running
Windows.

Change-Id: I1e53fd33d309e30a60031965e589167dcbacfbbe

Bob Ball authored on 2015/02/18 00:05:34
Showing 1 changed files
... ...
@@ -149,12 +149,10 @@ SNAME_FIRST_BOOT="before_first_boot"
149 149
 
150 150
 function wait_for_VM_to_halt {
151 151
     set +x
152
-    echo "Waiting for the VM to halt.  Progress in-VM can be checked with vncviewer:"
152
+    echo "Waiting for the VM to halt.  Progress in-VM can be checked with XenCenter or xl console:"
153 153
     mgmt_ip=$(echo $XENAPI_CONNECTION_URL | tr -d -c '1234567890.')
154 154
     domid=$(get_domid "$GUEST_NAME")
155
-    sleep 20 # Wait for the vnc-port to be written
156
-    port=$(xenstore-read /local/domain/$domid/console/vnc-port)
157
-    echo "vncviewer -via root@$mgmt_ip localhost:${port:2}"
155
+    echo "ssh root@$mgmt_ip \"xl console $domid\""
158 156
     while true; do
159 157
         state=$(xe_min vm-list name-label="$GUEST_NAME" power-state=halted)
160 158
         if [ -n "$state" ]; then