From 97621a1d1f39a944a24371fc9f2bf9b86faec248 Mon Sep 17 00:00:00 2001 From: Mate Lakat Date: Fri, 30 Aug 2013 13:12:17 +0100 Subject: [PATCH] xenapi: add username to vncviewer command Devstack prints out an instruction, how to look at the virtual machine's console. The command did not include the username, so if the user had a config file to use a different username for that network, the command failed. Change-Id: I5dd49169c45e26e8d2bb3d5920a1b7fa584be50f --- tools/xen/install_os_domU.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xen/install_os_domU.sh b/tools/xen/install_os_domU.sh index 997644d018..a012a08561 100755 --- a/tools/xen/install_os_domU.sh +++ b/tools/xen/install_os_domU.sh @@ -181,7 +181,7 @@ function wait_for_VM_to_halt() { mgmt_ip=$(echo $XENAPI_CONNECTION_URL | tr -d -c '1234567890.') domid=$(xe vm-list name-label="$GUEST_NAME" params=dom-id minimal=true) port=$(xenstore-read /local/domain/$domid/console/vnc-port) - echo "vncviewer -via $mgmt_ip localhost:${port:2}" + echo "vncviewer -via root@$mgmt_ip localhost:${port:2}" while true do state=$(xe_min vm-list name-label="$GUEST_NAME" power-state=halted)