From fd48e4001be8f0094abeda644dad900fd93127fc Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 12 Mar 2014 15:09:01 +0100 Subject: vm setup: misc changes Signed-off-by: Florian Pritz --- create-new-vm.sh | 14 +++++--------- setup-arch-vm | 57 ++++++++++++++++++++++++++++++-------------------------- 2 files changed, 36 insertions(+), 35 deletions(-) diff --git a/create-new-vm.sh b/create-new-vm.sh index dd4a4ed..8e51a15 100755 --- a/create-new-vm.sh +++ b/create-new-vm.sh @@ -9,6 +9,11 @@ TMPDIR="`mktemp -d "/tmp/fb-client-up.XXXXXX"`" trap "rm -rf '${TMPDIR}'" EXIT TERM cd "$TMPDIR" +if [[ ! -f /srv/http/vms/network/$name ]]; then + echo "Missing vm network definition /srv/http/vms/network/$name" >&2 + exit 1 +fi + cat <vm.xml $name @@ -36,25 +41,19 @@ cat <vm.xml -
-
-
-
-
-
@@ -65,14 +64,11 @@ cat <vm.xml -