/etc/xen/xend.config

A sample xend.config file with live relocation and bridging on multiple interfaces activated.

#(logfile /var/log/xen/xend.log)
#(loglevel DEBUG)
(xend-http-server yes)
(xend-unix-server yes)
#(xend-tcp-xmlrpc-server no)
#(xend-unix-xmlrpc-server yes)
#(xend-relocation-server no)
(xend-unix-path /var/lib/xend/xend-socket)
(xend-port            8000)

# Options for enabling live-relocations (warn, no access limits defined)
(xend-relocation-port 8002)
(xend-address '')
#(xend-address localhost)
(xend-relocation-address '')
(xend-relocation-hosts-allow '')
#(xend-relocation-hosts-allow '^localhost$^localhost\\.localdomain$')

#(console-limit 1024)
# (network-script network-bridge)
# (network-script 'network-bridge netdev=eth1')
# (network-script 'network-bridge bridge=<name>')

# Options for enabling bridging on multiple physical interfaces
(network-script network-bridge-custom)
(vif-script vif-bridge)
#(network-script network-route)
#(vif-script     vif-route)
#(network-script network-nat)
#(vif-script     vif-nat)
(dom0-min-mem 256)
(dom0-cpus 0)
#(enable-dump no)
#(external-migration-tool '')
#(vnc-listen '127.0.0.1')
(vncpasswd '')



The custom script /etc/xen/scripts/network-bridge-custom for bridging on multiple interfaces can be edited according to need, can be something like:

#!/bin/bash
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0
"$dir/network-bridge" "$@" vifnum=1
"$dir/network-bridge" "$@" vifnum=2

Privacy Policy