Merge "Set default value and configurable value for integration bridge"
This commit is contained in:
commit
5899d20bc3
@ -29,7 +29,8 @@ GUEST_INTERFACE_DEFAULT=eth1
|
||||
# Allow ``build_domU.sh`` to specify the flat network bridge via kernel args
|
||||
FLAT_NETWORK_BRIDGE_DEFAULT=$(sed -e 's/.* flat_network_bridge=\([[:alnum:]]*\).*$/\1/g' /proc/cmdline)
|
||||
if is_service_enabled neutron; then
|
||||
XEN_INTEGRATION_BRIDGE=$(sed -e 's/.* xen_integration_bridge=\([[:alnum:]]*\).*$/\1/g' /proc/cmdline)
|
||||
XEN_INTEGRATION_BRIDGE_DEFAULT=$(sed -e 's/.* xen_integration_bridge=\([[:alnum:]]*\).*$/\1/g' /proc/cmdline)
|
||||
XEN_INTEGRATION_BRIDGE=${XEN_INTEGRATION_BRIDGE:-$XEN_INTEGRATION_BRIDGE_DEFAULT}
|
||||
fi
|
||||
|
||||
VNCSERVER_PROXYCLIENT_ADDRESS=${VNCSERVER_PROXYCLIENT_ADDRESS=169.254.0.1}
|
||||
|
@ -170,3 +170,9 @@ VM as `TEMPLATE_FILENAME`:
|
||||
xe vm-import filename="$mountdir/$TEMPLATE_FILENAME"
|
||||
umount "$mountdir"
|
||||
rm -rf "$mountdir"
|
||||
|
||||
### Migrate OpenStack DomU to another host
|
||||
|
||||
Given you need to migrate your DomU with OpenStack installed to another host,
|
||||
you need to set `XEN_INTEGRATION_BRIDGE` in localrc if neutron network is used.
|
||||
It is the bridge for `XEN_INT_BRIDGE_OR_NET_NAME` network created in Dom0
|
||||
|
@ -299,10 +299,10 @@ $THIS_DIR/build_xva.sh "$GUEST_NAME"
|
||||
# kernel parameter for DomU
|
||||
attach_network "$XEN_INT_BRIDGE_OR_NET_NAME"
|
||||
|
||||
XEN_INTEGRATION_BRIDGE=$(bridge_for "$XEN_INT_BRIDGE_OR_NET_NAME")
|
||||
XEN_INTEGRATION_BRIDGE_DEFAULT=$(bridge_for "$XEN_INT_BRIDGE_OR_NET_NAME")
|
||||
append_kernel_cmdline \
|
||||
"$GUEST_NAME" \
|
||||
"xen_integration_bridge=${XEN_INTEGRATION_BRIDGE}"
|
||||
"xen_integration_bridge=${XEN_INTEGRATION_BRIDGE_DEFAULT}"
|
||||
|
||||
FLAT_NETWORK_BRIDGE="${FLAT_NETWORK_BRIDGE:-$(bridge_for "$VM_BRIDGE_OR_NET_NAME")}"
|
||||
append_kernel_cmdline "$GUEST_NAME" "flat_network_bridge=${FLAT_NETWORK_BRIDGE}"
|
||||
|
Loading…
Reference in New Issue
Block a user