Merge "Use br-int when XenServer is hypervisor"
This commit is contained in:
commit
9b6080d859
@ -26,10 +26,6 @@ set +o xtrace
|
|||||||
|
|
||||||
# Allow ``build_domU.sh`` to specify the flat network bridge via kernel args
|
# 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)
|
FLAT_NETWORK_BRIDGE_DEFAULT=$(sed -e 's/.* flat_network_bridge=\([[:alnum:]]*\).*$/\1/g' /proc/cmdline)
|
||||||
if is_service_enabled neutron; then
|
|
||||||
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}
|
VNCSERVER_PROXYCLIENT_ADDRESS=${VNCSERVER_PROXYCLIENT_ADDRESS=169.254.0.1}
|
||||||
|
|
||||||
|
@ -171,8 +171,3 @@ VM as `TEMPLATE_FILENAME`:
|
|||||||
umount "$mountdir"
|
umount "$mountdir"
|
||||||
rm -rf "$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
|
|
||||||
|
@ -66,10 +66,6 @@ setup_network "$VM_BRIDGE_OR_NET_NAME"
|
|||||||
setup_network "$MGT_BRIDGE_OR_NET_NAME"
|
setup_network "$MGT_BRIDGE_OR_NET_NAME"
|
||||||
setup_network "$PUB_BRIDGE_OR_NET_NAME"
|
setup_network "$PUB_BRIDGE_OR_NET_NAME"
|
||||||
|
|
||||||
# With neutron, one more network is required, which is internal to the
|
|
||||||
# hypervisor, and used by the VMs
|
|
||||||
setup_network "$XEN_INT_BRIDGE_OR_NET_NAME"
|
|
||||||
|
|
||||||
if parameter_is_specified "FLAT_NETWORK_BRIDGE"; then
|
if parameter_is_specified "FLAT_NETWORK_BRIDGE"; then
|
||||||
if [ "$(bridge_for "$VM_BRIDGE_OR_NET_NAME")" != "$(bridge_for "$FLAT_NETWORK_BRIDGE")" ]; then
|
if [ "$(bridge_for "$VM_BRIDGE_OR_NET_NAME")" != "$(bridge_for "$FLAT_NETWORK_BRIDGE")" ]; then
|
||||||
cat >&2 << EOF
|
cat >&2 << EOF
|
||||||
@ -292,15 +288,9 @@ add_interface "$GUEST_NAME" "$PUB_BRIDGE_OR_NET_NAME" "$PUB_DEV_NR"
|
|||||||
#
|
#
|
||||||
$THIS_DIR/build_xva.sh "$GUEST_NAME"
|
$THIS_DIR/build_xva.sh "$GUEST_NAME"
|
||||||
|
|
||||||
# Attach a network interface for the integration network (so that the bridge
|
|
||||||
# is created by XenServer). This is required for Neutron. Also pass that as a
|
|
||||||
# kernel parameter for DomU
|
|
||||||
attach_network "$XEN_INT_BRIDGE_OR_NET_NAME"
|
|
||||||
|
|
||||||
XEN_INTEGRATION_BRIDGE_DEFAULT=$(bridge_for "$XEN_INT_BRIDGE_OR_NET_NAME")
|
XEN_INTEGRATION_BRIDGE_DEFAULT=$(bridge_for "$XEN_INT_BRIDGE_OR_NET_NAME")
|
||||||
append_kernel_cmdline \
|
append_kernel_cmdline \
|
||||||
"$GUEST_NAME" \
|
"$GUEST_NAME"
|
||||||
"xen_integration_bridge=${XEN_INTEGRATION_BRIDGE_DEFAULT}"
|
|
||||||
|
|
||||||
FLAT_NETWORK_BRIDGE="${FLAT_NETWORK_BRIDGE:-$(bridge_for "$VM_BRIDGE_OR_NET_NAME")}"
|
FLAT_NETWORK_BRIDGE="${FLAT_NETWORK_BRIDGE:-$(bridge_for "$VM_BRIDGE_OR_NET_NAME")}"
|
||||||
append_kernel_cmdline "$GUEST_NAME" "flat_network_bridge=${FLAT_NETWORK_BRIDGE}"
|
append_kernel_cmdline "$GUEST_NAME" "flat_network_bridge=${FLAT_NETWORK_BRIDGE}"
|
||||||
|
@ -29,7 +29,6 @@ OSDOMU_VDI_GB=8
|
|||||||
# Get the management network from the XS installation
|
# Get the management network from the XS installation
|
||||||
VM_BRIDGE_OR_NET_NAME="OpenStack VM Network"
|
VM_BRIDGE_OR_NET_NAME="OpenStack VM Network"
|
||||||
PUB_BRIDGE_OR_NET_NAME="OpenStack Public Network"
|
PUB_BRIDGE_OR_NET_NAME="OpenStack Public Network"
|
||||||
XEN_INT_BRIDGE_OR_NET_NAME="OpenStack VM Integration Network"
|
|
||||||
|
|
||||||
# VM Password
|
# VM Password
|
||||||
GUEST_PASSWORD=${GUEST_PASSWORD:-secret}
|
GUEST_PASSWORD=${GUEST_PASSWORD:-secret}
|
||||||
|
Loading…
Reference in New Issue
Block a user