From f179eb7c4798d5058ebbfd1c7b851070f86fd5ac Mon Sep 17 00:00:00 2001 From: Huan Xie Date: Thu, 2 Jun 2016 01:24:22 -0700 Subject: [PATCH] Support installing OpenStack on XenServer 7.0 XenServer 7.0 has changed some iso files' name, this made devstack script install_os_domU.sh failed to install VM before installing OpenStack. This patch is to fix the problem, make install_os_domU.sh support 7.0 and other prior versions of XenServer Change-Id: I49459bfff2b101fc6927eb4578c5eb47cc8c3ad6 --- tools/xen/install_os_domU.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/xen/install_os_domU.sh b/tools/xen/install_os_domU.sh index 8b97265e21..3a61215b5b 100755 --- a/tools/xen/install_os_domU.sh +++ b/tools/xen/install_os_domU.sh @@ -183,10 +183,8 @@ if [ -z "$templateuuid" ]; then # Copy the tools DEB to the XS web server XS_TOOLS_URL="https://github.com/downloads/citrix-openstack/warehouse/xe-guest-utilities_5.6.100-651_amd64.deb" ISO_DIR="/opt/xensource/packages/iso" - XS_TOOLS_FILE_NAME="xs-tools.deb" - XS_TOOLS_PATH="/root/$XS_TOOLS_FILE_NAME" if [ -e "$ISO_DIR" ]; then - TOOLS_ISO=$(ls -1 $ISO_DIR/xs-tools-*.iso | head -1) + TOOLS_ISO=$(ls -1 $ISO_DIR/*-tools-*.iso | head -1) TMP_DIR=/tmp/temp.$RANDOM mkdir -p $TMP_DIR mount -o loop $TOOLS_ISO $TMP_DIR