| 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 |  | 
|  | 11 | # Size of image | 
| Renuka Apte | 0af143b | 2012-04-02 15:46:53 -0700 | [diff] [blame] | 12 | VDI_MB=${VDI_MB:-5000} | 
| John Garbutt | daadf74 | 2012-04-27 18:28:28 +0100 | [diff] [blame] | 13 | OSDOMU_MEM_MB=1024 | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 14 |  | 
|  | 15 | # VM Password | 
|  | 16 | GUEST_PASSWORD=${GUEST_PASSWORD:-secrete} | 
|  | 17 |  | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 18 | # Host Interface, i.e. the interface on the nova vm you want to expose the | 
|  | 19 | # services on. Usually eth2 (management network) or eth3 (public network) and | 
| John Garbutt | daadf74 | 2012-04-27 18:28:28 +0100 | [diff] [blame] | 20 | # not eth0 (private network with XenServer host) or eth1 (VM traffic network) | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 21 | # This is also used as the interface for the Ubuntu install | 
| John Garbutt | daadf74 | 2012-04-27 18:28:28 +0100 | [diff] [blame] | 22 | HOST_IP_IFACE=${HOST_IP_IFACE:-eth3} | 
| root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 23 |  | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 24 | # | 
| root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 25 | # Our nova host's network info | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 26 | # | 
|  | 27 |  | 
|  | 28 | # A host-only ip that let's the interface come up, otherwise unused | 
|  | 29 | VM_IP=${VM_IP:-10.255.255.255} | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 30 | MGT_IP=${MGT_IP:-172.16.100.55} | 
|  | 31 | PUB_IP=${PUB_IP:-192.168.1.55} | 
|  | 32 |  | 
|  | 33 | # Public network | 
| root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 34 | PUB_BR=${PUB_BR:-"xenbr0"} | 
|  | 35 | PUB_DEV=${PUB_DEV:-eth0} | 
|  | 36 | PUB_VLAN=${PUB_VLAN:--1} | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 37 | PUB_NETMASK=${PUB_NETMASK:-255.255.255.0} | 
|  | 38 |  | 
|  | 39 | # VM network params | 
|  | 40 | VM_NETMASK=${VM_NETMASK:-255.255.255.0} | 
| root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 41 | VM_BR=${VM_BR:-""} | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 42 | VM_VLAN=${VM_VLAN:-100} | 
| root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 43 | VM_DEV=${VM_DEV:-eth0} | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 44 |  | 
|  | 45 | # MGMT network params | 
|  | 46 | MGT_NETMASK=${MGT_NETMASK:-255.255.255.0} | 
| root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 47 | MGT_BR=${MGT_BR:-""} | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 48 | MGT_VLAN=${MGT_VLAN:-101} | 
| root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 49 | MGT_DEV=${MGT_DEV:-eth0} | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 50 |  | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 51 | # Decide if you should enable eth0, | 
|  | 52 | # the guest installer network | 
|  | 53 | # You need to disable this on xcp-xapi on Ubuntu 12.04 | 
| John Garbutt | 030fb23 | 2012-04-27 18:28:28 +0100 | [diff] [blame] | 54 | ENABLE_GI=true | 
|  | 55 |  | 
| John Garbutt | d8f1a87 | 2012-06-26 11:16:38 +0100 | [diff] [blame] | 56 | # Ubuntu install settings | 
|  | 57 | UBUNTU_INST_RELEASE="oneiric" | 
|  | 58 | UBUNTU_INST_TEMPLATE_NAME="Ubuntu 11.10 (64-bit) for DevStack" | 
|  | 59 | # For 12.04 use "precise" and update template name | 
|  | 60 | # However, for 12.04, you should be using | 
|  | 61 | # XenServer 6.1 and later or XCP 1.6 or later | 
|  | 62 | # 11.10 is only really supported with XenServer 6.0.2 and later | 
|  | 63 | UBUNTU_INST_ARCH="amd64" | 
|  | 64 | UBUNTU_INST_REPOSITORY="http://archive.ubuntu.net/ubuntu" | 
|  | 65 | UBUNTU_INST_LOCALE="en_US" | 
|  | 66 | UBUNTU_INST_KEYBOARD="us" | 
|  | 67 | # network configuration for HOST_IP_IFACE during install | 
|  | 68 | UBUNTU_INST_IP="dhcp" | 
|  | 69 | UBUNTU_INST_NAMESERVERS="" | 
|  | 70 | UBUNTU_INST_NETMASK="" | 
|  | 71 | UBUNTU_INST_GATEWAY="" | 
|  | 72 |  | 
|  | 73 | # Load stackrc defaults | 
|  | 74 | # then override with settings from localrc | 
| Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 75 | cd ../.. && source ./stackrc && cd $TOP_DIR |