[Fusionforge-commits] r10948 - trunk/tests/scripts

Christian Bayle cbayle at libremir.placard.fr.eu.org
Tue Oct 12 00:38:05 CEST 2010


Author: cbayle
Date: 2010-10-12 00:38:05 +0200 (Tue, 12 Oct 2010)
New Revision: 10948

Modified:
   trunk/tests/scripts/start_vz.sh
Log:
Start a vm based on env variables


Modified: trunk/tests/scripts/start_vz.sh
===================================================================
--- trunk/tests/scripts/start_vz.sh	2010-10-11 22:37:59 UTC (rev 10947)
+++ trunk/tests/scripts/start_vz.sh	2010-10-11 22:38:05 UTC (rev 10948)
@@ -5,19 +5,13 @@
 then
 	echo "VM Started"
 else
-	pwd
-	. ../openvz/config.default
-	if [ -f ../openvz/config.`hostname` ]
-	then
-		. ../openvz/config.`hostname`
-	fi
-	ARCH=`dpkg-architecture -qDEB_BUILD_ARCH`
-	sudo /usr/sbin/vzctl create $VEIDCEN --private $VZPRIVATEDIR/$VEIDCEN --ostemplate centos-$CENTVERS-$ARCH-minimal
-	sudo /usr/sbin/vzctl start $VEIDCEN
-	VZHOST=$IPCENTOSBASE.$VEIDCEN
+#	sudo /usr/sbin/vzctl create $VEIDCEN --private $VZPRIVATEDIR/$VEIDCEN --ostemplate centos-$CENTVERS-$ARCH-minimal
+	sudo /usr/sbin/vzctl create $VEID --private $VZPRIVATEDIR/$VEID --ostemplate $VZTEMPLATE
+	sudo /usr/sbin/vzctl start $VEID
+	VZHOST=$IPBASE.$VEID
 	export VZHOST
-	sudo /usr/sbin/vzctl set $VEIDCEN --ipadd $IPCENTOSBASE.$VEIDCEN --save
-        sudo /usr/sbin/vzctl set $VEIDCEN --nameserver $IPCENTOSDNS --save
+	sudo /usr/sbin/vzctl set $VEID --ipadd $IPBASE.$VEID --save
+        sudo /usr/sbin/vzctl set $VEID --nameserver $IPDNS --save
 fi
 
 ssh -o 'StrictHostKeyChecking=no' "root@$VZHOST" uname -a




More information about the Fusionforge-commits mailing list