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