tools/xen/xenrc
1188904e
 #!/bin/bash
 
d8f1a87a
 #
 # XenServer specific defaults for the /tools/xen/ scripts
 # Similar to stackrc, you can override these in your localrc
 #
 
1188904e
 # Name of this guest
0af143b3
 GUEST_NAME=${GUEST_NAME:-DevStackOSDomU}
1188904e
 
0b3804bf
 # Template cleanup
 CLEAN_TEMPLATES=${CLEAN_TEMPLATES:-false}
 
1188904e
 # Size of image
0af143b3
 VDI_MB=${VDI_MB:-5000}
57bf097e
 
 # Devstack now contains many components.  3GB ram is not enough to prevent
 # swapping and memory fragmentation - the latter of which can cause failures
 # such as blkfront failing to plug a VBD and lead to random test fails.
 #
 # Set to 4GB so an 8GB XenServer VM can have a 1GB Dom0 and leave 3GB for VMs
 OSDOMU_MEM_MB=4096
f993b235
 OSDOMU_VDI_GB=8
1188904e
 
9e326779
 # Network mapping. Specify bridge names or network names. Network names may
 # differ across localised versions of XenServer. If a given bridge/network
 # was not found, a new network will be created with the specified name.
 
78ef1f3b
 # Get the management network from the XS installation
9e326779
 VM_BRIDGE_OR_NET_NAME="OpenStack VM Network"
 PUB_BRIDGE_OR_NET_NAME="OpenStack Public Network"
f652e0fb
 XEN_INT_BRIDGE_OR_NET_NAME="OpenStack VM Integration Network"
9e326779
 
1188904e
 # VM Password
 GUEST_PASSWORD=${GUEST_PASSWORD:-secrete}
 
5a56cd62
 # Extracted variables for OpenStack VM network device numbers.
5ed43bf8
 # Make sure they form a continuous sequence starting from 0
5a56cd62
 MGT_DEV_NR=0
 VM_DEV_NR=1
 PUB_DEV_NR=2
 
d8f1a87a
 # Host Interface, i.e. the interface on the nova vm you want to expose the
5a56cd62
 # services on. Usually the device connected to the management network or the
 # one connected to the public network is used.
 HOST_IP_IFACE=${HOST_IP_IFACE:-"eth${MGT_DEV_NR}"}
b1153412
 
d8f1a87a
 #
b1153412
 # Our nova host's network info
d8f1a87a
 #
 
9e326779
 # Management network
5a56cd62
 MGT_IP=${MGT_IP:-dhcp}
 MGT_NETMASK=${MGT_NETMASK:-ignored}
1188904e
 
9e326779
 # VM Network
 VM_IP=${VM_IP:-10.255.255.255}
1188904e
 VM_NETMASK=${VM_NETMASK:-255.255.255.0}
 
9e326779
 # Public network
5a56cd62
 # Aligned with stack.sh - see FLOATING_RANGE
 PUB_IP=${PUB_IP:-172.24.4.10}
9e326779
 PUB_NETMASK=${PUB_NETMASK:-255.255.255.0}
1188904e
 
d8f1a87a
 # Ubuntu install settings
3cd17714
 UBUNTU_INST_RELEASE="trusty"
 UBUNTU_INST_TEMPLATE_NAME="Ubuntu 14.04 (64-bit) for DevStack"
d8f1a87a
 # For 12.04 use "precise" and update template name
 # However, for 12.04, you should be using
 # XenServer 6.1 and later or XCP 1.6 or later
 # 11.10 is only really supported with XenServer 6.0.2 and later
 UBUNTU_INST_ARCH="amd64"
3cd17714
 UBUNTU_INST_HTTP_HOSTNAME="mirror.anl.gov"
 UBUNTU_INST_HTTP_DIRECTORY="/pub/ubuntu"
d3740f70
 UBUNTU_INST_HTTP_PROXY=""
d8f1a87a
 UBUNTU_INST_LOCALE="en_US"
 UBUNTU_INST_KEYBOARD="us"
2f524bd9
 # network configuration for ubuntu netinstall
d8f1a87a
 UBUNTU_INST_IP="dhcp"
 UBUNTU_INST_NAMESERVERS=""
 UBUNTU_INST_NETMASK=""
 UBUNTU_INST_GATEWAY=""
 
68ac03c7
 # Create a separate xvdb. Tis could be used as a backing device for cinder
 # volumes. Specify
 #   XEN_XVDB_SIZE_GB=10
 #   VOLUME_BACKING_DEVICE=/dev/xvdb
 # in your localrc to avoid kernel lockups:
 #   https://bugs.launchpad.net/cinder/+bug/1023755
 #
 # Set the size to 0 to avoid creation of additional disk.
 XEN_XVDB_SIZE_GB=0
 
518fb760
 STACK_USER=stack
 DOMZERO_USER=domzero
 
 RC_DIR="../.."
 
 restore_nounset=$(set +o | grep nounset)
c643ebb2
 set +u
518fb760
 
 ## Note that the lines below are coming from stackrc to support
 ## new-style config files
 
 # allow local overrides of env variables, including repo config
 if [[ -f $RC_DIR/localrc ]]; then
     # Old-style user-supplied config
     source $RC_DIR/localrc
 elif [[ -f $RC_DIR/.localrc.auto ]]; then
     # New-style user-supplied config extracted from local.conf
     source $RC_DIR/.localrc.auto
 fi
 
c643ebb2
 $restore_nounset