From d42da64441d7207dacba9a9ba5c54eec113ceeb4 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 18 Jan 2013 15:07:53 +0100 Subject: [PATCH] seems able to build ubuntu VMs --- scripts/create-vm-debian.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/create-vm-debian.sh b/scripts/create-vm-debian.sh index a05bb09..e947405 100755 --- a/scripts/create-vm-debian.sh +++ b/scripts/create-vm-debian.sh @@ -61,7 +61,14 @@ case $PERSO in linux64) arch=amd64;; esac -command="$PERSO vserver ${HOSTNAME} build -m debootstrap --interface eth0:${ip}/21 --hostname ${fqdn} -- -d ${DISTRO} -m http://ftp2.fr.debian.org/debian/ -- --verbose --arch=${arch} " +case $DISTRO in + squeeze|wheezy) DEBMIRROR=http://ftp2.fr.debian.org/debian/ ;; +# from the vserver man page DEBMIRROR=http://us.archive.ubuntu.com/ubuntu/ ;; + oneiric|precise|quantal) DEBMIRROR=http://mir1.ovh.net/ubuntu/ubuntu/ ;; + *) echo unknown DISTRO; exit 1;; +esac + +command="$PERSO vserver ${HOSTNAME} build -m debootstrap --interface eth0:${ip}/21 --hostname ${fqdn} -- -d ${DISTRO} -m ${DEBMIRROR} -- --verbose --arch=${arch} " if [ -n "$INTERACTIVE" ] ; then echo -n "Run $command OK ? " -- 2.47.0