|
...
|
...
|
@@ -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
|