| 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} | 
| Mate Lakat | 4728001 | 2013-08-31 12:12:46 +0100 | [diff] [blame] | 16 | OSDOMU_MEM_MB=2048 | 
| Stef T | f993b23 | 2012-11-08 10:46:48 -0500 | [diff] [blame] | 17 | OSDOMU_VDI_GB=8 | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 18 |  | 
| Mate Lakat | 9e32677 | 2013-05-08 16:42:22 +0100 | [diff] [blame] | 19 | # Network mapping. Specify bridge names or network names. Network names may | 
 | 20 | # differ across localised versions of XenServer. If a given bridge/network | 
 | 21 | # was not found, a new network will be created with the specified name. | 
 | 22 |  | 
 | 23 | # The management network is specified by the bridge name. xenbr0 is usually | 
 | 24 | # the name of the bridge of the network associated with the hypervisor's eth0. | 
 | 25 | MGT_BRIDGE_OR_NET_NAME="xenbr0" | 
 | 26 | VM_BRIDGE_OR_NET_NAME="OpenStack VM Network" | 
 | 27 | PUB_BRIDGE_OR_NET_NAME="OpenStack Public Network" | 
| Mate Lakat | f652e0f | 2013-05-21 18:12:48 +0100 | [diff] [blame] | 28 | XEN_INT_BRIDGE_OR_NET_NAME="OpenStack VM Integration Network" | 
| Mate Lakat | 9e32677 | 2013-05-08 16:42:22 +0100 | [diff] [blame] | 29 |  | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 30 | # VM Password | 
 | 31 | GUEST_PASSWORD=${GUEST_PASSWORD:-secrete} | 
 | 32 |  | 
| Mate Lakat | 5a56cd6 | 2013-06-17 13:54:43 +0100 | [diff] [blame] | 33 | # Extracted variables for OpenStack VM network device numbers. | 
 | 34 | # Make sure, they form a continous sequence starting from 0 | 
 | 35 | MGT_DEV_NR=0 | 
 | 36 | VM_DEV_NR=1 | 
 | 37 | PUB_DEV_NR=2 | 
| Mate Lakat | 5a56cd6 | 2013-06-17 13:54:43 +0100 | [diff] [blame] | 38 |  | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 39 | # 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] | 40 | # services on. Usually the device connected to the management network or the | 
 | 41 | # one connected to the public network is used. | 
 | 42 | HOST_IP_IFACE=${HOST_IP_IFACE:-"eth${MGT_DEV_NR}"} | 
| root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 43 |  | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 44 | # | 
| root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 45 | # Our nova host's network info | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 46 | # | 
 | 47 |  | 
| Mate Lakat | 9e32677 | 2013-05-08 16:42:22 +0100 | [diff] [blame] | 48 | # Management network | 
| Mate Lakat | 5a56cd6 | 2013-06-17 13:54:43 +0100 | [diff] [blame] | 49 | MGT_IP=${MGT_IP:-dhcp} | 
 | 50 | MGT_NETMASK=${MGT_NETMASK:-ignored} | 
| Mate Lakat | 9e32677 | 2013-05-08 16:42:22 +0100 | [diff] [blame] | 51 |  | 
 | 52 | # VM Network | 
 | 53 | VM_IP=${VM_IP:-10.255.255.255} | 
 | 54 | VM_NETMASK=${VM_NETMASK:-255.255.255.0} | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 55 |  | 
 | 56 | # Public network | 
| Mate Lakat | 5a56cd6 | 2013-06-17 13:54:43 +0100 | [diff] [blame] | 57 | # Aligned with stack.sh - see FLOATING_RANGE | 
 | 58 | PUB_IP=${PUB_IP:-172.24.4.10} | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 59 | PUB_NETMASK=${PUB_NETMASK:-255.255.255.0} | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 60 |  | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 61 | # Ubuntu install settings | 
| Mate Lakat | 2f524bd | 2013-06-19 12:32:23 +0100 | [diff] [blame] | 62 | UBUNTU_INST_RELEASE="precise" | 
 | 63 | UBUNTU_INST_TEMPLATE_NAME="Ubuntu 12.04 (64-bit) for DevStack" | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 64 | # For 12.04 use "precise" and update template name | 
 | 65 | # However, for 12.04, you should be using | 
 | 66 | # XenServer 6.1 and later or XCP 1.6 or later | 
 | 67 | # 11.10 is only really supported with XenServer 6.0.2 and later | 
 | 68 | UBUNTU_INST_ARCH="amd64" | 
| Mate Lakat | d3740f7 | 2013-05-09 15:02:21 +0100 | [diff] [blame] | 69 | UBUNTU_INST_HTTP_HOSTNAME="archive.ubuntu.net" | 
 | 70 | UBUNTU_INST_HTTP_DIRECTORY="/ubuntu" | 
 | 71 | UBUNTU_INST_HTTP_PROXY="" | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 72 | UBUNTU_INST_LOCALE="en_US" | 
 | 73 | UBUNTU_INST_KEYBOARD="us" | 
| Mate Lakat | 2f524bd | 2013-06-19 12:32:23 +0100 | [diff] [blame] | 74 | # network configuration for ubuntu netinstall | 
 | 75 | UBUNTU_INST_BRIDGE_OR_NET_NAME=${UBUNTU_INST_BRIDGE_OR_NET_NAME:-"$MGT_BRIDGE_OR_NET_NAME"} | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 76 | UBUNTU_INST_IP="dhcp" | 
 | 77 | UBUNTU_INST_NAMESERVERS="" | 
 | 78 | UBUNTU_INST_NETMASK="" | 
 | 79 | UBUNTU_INST_GATEWAY="" | 
 | 80 |  | 
| Mate Lakat | 68ac03c | 2013-06-06 16:22:34 +0100 | [diff] [blame] | 81 | # Create a separate xvdb. Tis could be used as a backing device for cinder | 
 | 82 | # volumes. Specify | 
 | 83 | #   XEN_XVDB_SIZE_GB=10 | 
 | 84 | #   VOLUME_BACKING_DEVICE=/dev/xvdb | 
 | 85 | # in your localrc to avoid kernel lockups: | 
 | 86 | #   https://bugs.launchpad.net/cinder/+bug/1023755 | 
 | 87 | # | 
 | 88 | # Set the size to 0 to avoid creation of additional disk. | 
 | 89 | XEN_XVDB_SIZE_GB=0 | 
 | 90 |  | 
| Mate Lakat | 0b3804b | 2013-05-07 16:58:17 +0100 | [diff] [blame] | 91 | source ../../stackrc |