Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 3 | # |
| 4 | # XenServer specific defaults for the /tools/xen/ scripts |
| 5 | # Similar to stackrc, you can override these in your localrc |
| 6 | # |
| 7 | |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 8 | # Name of this guest |
Renuka Apte | 0af143b | 2012-04-02 15:46:53 -0700 | [diff] [blame] | 9 | GUEST_NAME=${GUEST_NAME:-DevStackOSDomU} |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 10 | |
Mate Lakat | 0b3804b | 2013-05-07 16:58:17 +0100 | [diff] [blame] | 11 | # Template cleanup |
| 12 | CLEAN_TEMPLATES=${CLEAN_TEMPLATES:-false} |
| 13 | |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 14 | # Size of image |
Renuka Apte | 0af143b | 2012-04-02 15:46:53 -0700 | [diff] [blame] | 15 | VDI_MB=${VDI_MB:-5000} |
Bob Ball | 57bf097 | 2013-12-03 17:35:02 +0000 | [diff] [blame] | 16 | |
| 17 | # Devstack now contains many components. 3GB ram is not enough to prevent |
| 18 | # swapping and memory fragmentation - the latter of which can cause failures |
| 19 | # such as blkfront failing to plug a VBD and lead to random test fails. |
| 20 | # |
| 21 | # Set to 4GB so an 8GB XenServer VM can have a 1GB Dom0 and leave 3GB for VMs |
| 22 | OSDOMU_MEM_MB=4096 |
Stef T | f993b23 | 2012-11-08 10:46:48 -0500 | [diff] [blame] | 23 | OSDOMU_VDI_GB=8 |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 24 | |
Mate Lakat | 9e32677 | 2013-05-08 16:42:22 +0100 | [diff] [blame] | 25 | # Network mapping. Specify bridge names or network names. Network names may |
| 26 | # differ across localised versions of XenServer. If a given bridge/network |
| 27 | # was not found, a new network will be created with the specified name. |
| 28 | |
Bob Ball | 78ef1f3 | 2013-09-29 11:36:28 +0100 | [diff] [blame] | 29 | # Get the management network from the XS installation |
Mate Lakat | 9e32677 | 2013-05-08 16:42:22 +0100 | [diff] [blame] | 30 | VM_BRIDGE_OR_NET_NAME="OpenStack VM Network" |
| 31 | PUB_BRIDGE_OR_NET_NAME="OpenStack Public Network" |
Mate Lakat | f652e0f | 2013-05-21 18:12:48 +0100 | [diff] [blame] | 32 | XEN_INT_BRIDGE_OR_NET_NAME="OpenStack VM Integration Network" |
Mate Lakat | 9e32677 | 2013-05-08 16:42:22 +0100 | [diff] [blame] | 33 | |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 34 | # VM Password |
| 35 | GUEST_PASSWORD=${GUEST_PASSWORD:-secrete} |
| 36 | |
Mate Lakat | 5a56cd6 | 2013-06-17 13:54:43 +0100 | [diff] [blame] | 37 | # Extracted variables for OpenStack VM network device numbers. |
Shane Wang | 5ed43bf | 2014-02-07 11:01:43 +0800 | [diff] [blame] | 38 | # Make sure they form a continuous sequence starting from 0 |
Mate Lakat | 5a56cd6 | 2013-06-17 13:54:43 +0100 | [diff] [blame] | 39 | MGT_DEV_NR=0 |
| 40 | VM_DEV_NR=1 |
| 41 | PUB_DEV_NR=2 |
Mate Lakat | 5a56cd6 | 2013-06-17 13:54:43 +0100 | [diff] [blame] | 42 | |
John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 43 | # Host Interface, i.e. the interface on the nova vm you want to expose the |
Mate Lakat | 5a56cd6 | 2013-06-17 13:54:43 +0100 | [diff] [blame] | 44 | # services on. Usually the device connected to the management network or the |
| 45 | # one connected to the public network is used. |
| 46 | HOST_IP_IFACE=${HOST_IP_IFACE:-"eth${MGT_DEV_NR}"} |
root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 47 | |
John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 48 | # |
root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 49 | # Our nova host's network info |
John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 50 | # |
| 51 | |
Mate Lakat | 9e32677 | 2013-05-08 16:42:22 +0100 | [diff] [blame] | 52 | # Management network |
Mate Lakat | 5a56cd6 | 2013-06-17 13:54:43 +0100 | [diff] [blame] | 53 | MGT_IP=${MGT_IP:-dhcp} |
| 54 | MGT_NETMASK=${MGT_NETMASK:-ignored} |
Mate Lakat | 9e32677 | 2013-05-08 16:42:22 +0100 | [diff] [blame] | 55 | |
| 56 | # VM Network |
| 57 | VM_IP=${VM_IP:-10.255.255.255} |
| 58 | VM_NETMASK=${VM_NETMASK:-255.255.255.0} |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 59 | |
| 60 | # Public network |
Mate Lakat | 5a56cd6 | 2013-06-17 13:54:43 +0100 | [diff] [blame] | 61 | # Aligned with stack.sh - see FLOATING_RANGE |
| 62 | PUB_IP=${PUB_IP:-172.24.4.10} |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 63 | PUB_NETMASK=${PUB_NETMASK:-255.255.255.0} |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 64 | |
John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 65 | # Ubuntu install settings |
Bob Ball | 3cd1771 | 2014-09-29 12:53:02 +0100 | [diff] [blame^] | 66 | UBUNTU_INST_RELEASE="trusty" |
| 67 | UBUNTU_INST_TEMPLATE_NAME="Ubuntu 14.04 (64-bit) for DevStack" |
John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 68 | # For 12.04 use "precise" and update template name |
| 69 | # However, for 12.04, you should be using |
| 70 | # XenServer 6.1 and later or XCP 1.6 or later |
| 71 | # 11.10 is only really supported with XenServer 6.0.2 and later |
| 72 | UBUNTU_INST_ARCH="amd64" |
Bob Ball | 3cd1771 | 2014-09-29 12:53:02 +0100 | [diff] [blame^] | 73 | UBUNTU_INST_HTTP_HOSTNAME="mirror.anl.gov" |
| 74 | UBUNTU_INST_HTTP_DIRECTORY="/pub/ubuntu" |
Mate Lakat | d3740f7 | 2013-05-09 15:02:21 +0100 | [diff] [blame] | 75 | UBUNTU_INST_HTTP_PROXY="" |
John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 76 | UBUNTU_INST_LOCALE="en_US" |
| 77 | UBUNTU_INST_KEYBOARD="us" |
Mate Lakat | 2f524bd | 2013-06-19 12:32:23 +0100 | [diff] [blame] | 78 | # network configuration for ubuntu netinstall |
John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 79 | UBUNTU_INST_IP="dhcp" |
| 80 | UBUNTU_INST_NAMESERVERS="" |
| 81 | UBUNTU_INST_NETMASK="" |
| 82 | UBUNTU_INST_GATEWAY="" |
| 83 | |
Mate Lakat | 68ac03c | 2013-06-06 16:22:34 +0100 | [diff] [blame] | 84 | # Create a separate xvdb. Tis could be used as a backing device for cinder |
| 85 | # volumes. Specify |
| 86 | # XEN_XVDB_SIZE_GB=10 |
| 87 | # VOLUME_BACKING_DEVICE=/dev/xvdb |
| 88 | # in your localrc to avoid kernel lockups: |
| 89 | # https://bugs.launchpad.net/cinder/+bug/1023755 |
| 90 | # |
| 91 | # Set the size to 0 to avoid creation of additional disk. |
| 92 | XEN_XVDB_SIZE_GB=0 |
| 93 | |
Bob Ball | c643ebb | 2014-02-02 09:16:20 +0000 | [diff] [blame] | 94 | restore_nounset=`set +o | grep nounset` |
| 95 | set +u |
Mate Lakat | 0b3804b | 2013-05-07 16:58:17 +0100 | [diff] [blame] | 96 | source ../../stackrc |
Bob Ball | c643ebb | 2014-02-02 09:16:20 +0000 | [diff] [blame] | 97 | $restore_nounset |