Add new XEN_BRIDGE variable.
authorNikos Skalkotos <skalkoto@grnet.gr>
Mon, 4 Feb 2013 10:56:18 +0000 (12:56 +0200)
committerNikos Skalkotos <skalkoto@grnet.gr>
Wed, 6 Feb 2013 15:30:38 +0000 (17:30 +0200)
This can be used to configure the bridge on which the helper's VM
nic will be attached when using XEN.

snf-image-host/common.sh.in
snf-image-host/defaults
snf-image-host/xen-common.sh

index 4022e0a..2f4dfb4 100644 (file)
@@ -396,6 +396,7 @@ fi
 : ${PITHOS_DATA:="@localstatedir@/lib/pithos/data/"}
 : ${PROGRESS_MONITOR:="@PROGRESS_MONITOR@"}
 : ${UNATTEND:="@UNATTEND@"}
+: ${XEN_BRIDGE:="xenbr"}
 
 case $HYPERVISOR in
     xen-hvm|xen-pvm) . xen-common.sh ;;
index fa2dd0e..6417fac 100644 (file)
@@ -79,6 +79,9 @@
 # this empty.
 # UNATTEND=""
 
+# XEN_BRIDGE: Bridge to connect the helper VM on
+# XEN_BRIDGE=xenbr
+
 # Paths for needed programs. Uncommend and change the variables below if you
 # don't want to use the default one.
 # LOSETUP="losetup"
index ec3d4d7..f9a3cc1 100644 (file)
@@ -17,7 +17,7 @@ launch_helper() {
       disk="file:$snapshot,xvda,w" \
       disk="phy:$blockdev,xvdb,w" \
       disk="file:$floppy,xvdc1,w" \
-      vif="mac=aa:00:00:00:00:11,bridge=xenbr" \
+      vif="mac=aa:00:00:00:00:11,bridge=$XEN_BRIDGE" \
       memory="256" root="/dev/xvda1 quiet ro boot=local" boot="c" vcpus=1 \
       name="$helper_name"