Skip to content
Snippets Groups Projects
Commit aa185eca authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Add new XEN_BRIDGE variable.

This can be used to configure the bridge on which the helper's VM
nic will be attached when using XEN.
parent 24f704d1
No related branches found
No related tags found
No related merge requests found
...@@ -396,6 +396,7 @@ fi ...@@ -396,6 +396,7 @@ fi
: ${PITHOS_DATA:="@localstatedir@/lib/pithos/data/"} : ${PITHOS_DATA:="@localstatedir@/lib/pithos/data/"}
: ${PROGRESS_MONITOR:="@PROGRESS_MONITOR@"} : ${PROGRESS_MONITOR:="@PROGRESS_MONITOR@"}
: ${UNATTEND:="@UNATTEND@"} : ${UNATTEND:="@UNATTEND@"}
: ${XEN_BRIDGE:="xenbr"}
case $HYPERVISOR in case $HYPERVISOR in
xen-hvm|xen-pvm) . xen-common.sh ;; xen-hvm|xen-pvm) . xen-common.sh ;;
......
...@@ -79,6 +79,9 @@ ...@@ -79,6 +79,9 @@
# this empty. # this empty.
# UNATTEND="" # 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 # Paths for needed programs. Uncommend and change the variables below if you
# don't want to use the default one. # don't want to use the default one.
# LOSETUP="losetup" # LOSETUP="losetup"
......
...@@ -17,7 +17,7 @@ launch_helper() { ...@@ -17,7 +17,7 @@ launch_helper() {
disk="file:$snapshot,xvda,w" \ disk="file:$snapshot,xvda,w" \
disk="phy:$blockdev,xvdb,w" \ disk="phy:$blockdev,xvdb,w" \
disk="file:$floppy,xvdc1,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 \ memory="256" root="/dev/xvda1 quiet ro boot=local" boot="c" vcpus=1 \
name="$helper_name" name="$helper_name"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment