blob: 82aa29821c507aedb36e52c9cf1c515466fd0890 [file] [log] [blame]
Anthony Young11889042012-01-12 17:11:56 -08001#!/bin/bash
2
John Garbuttd8f1a872012-06-26 11:16:38 +01003#
4# XenServer specific defaults for the /tools/xen/ scripts
5# Similar to stackrc, you can override these in your localrc
6#
7
Anthony Young11889042012-01-12 17:11:56 -08008# Name of this guest
Renuka Apte0af143b2012-04-02 15:46:53 -07009GUEST_NAME=${GUEST_NAME:-DevStackOSDomU}
Anthony Young11889042012-01-12 17:11:56 -080010
Mate Lakat0b3804b2013-05-07 16:58:17 +010011# Template cleanup
12CLEAN_TEMPLATES=${CLEAN_TEMPLATES:-false}
13
Anthony Young11889042012-01-12 17:11:56 -080014# Size of image
Renuka Apte0af143b2012-04-02 15:46:53 -070015VDI_MB=${VDI_MB:-5000}
Mate Lakat47280012013-08-31 12:12:46 +010016OSDOMU_MEM_MB=2048
Stef Tf993b232012-11-08 10:46:48 -050017OSDOMU_VDI_GB=8
Anthony Young11889042012-01-12 17:11:56 -080018
Mate Lakat9e326772013-05-08 16:42:22 +010019# 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
Bob Ball78ef1f32013-09-29 11:36:28 +010023# Get the management network from the XS installation
Mate Lakat9e326772013-05-08 16:42:22 +010024VM_BRIDGE_OR_NET_NAME="OpenStack VM Network"
25PUB_BRIDGE_OR_NET_NAME="OpenStack Public Network"
Mate Lakatf652e0f2013-05-21 18:12:48 +010026XEN_INT_BRIDGE_OR_NET_NAME="OpenStack VM Integration Network"
Mate Lakat9e326772013-05-08 16:42:22 +010027
Anthony Young11889042012-01-12 17:11:56 -080028# VM Password
29GUEST_PASSWORD=${GUEST_PASSWORD:-secrete}
30
Mate Lakat5a56cd62013-06-17 13:54:43 +010031# Extracted variables for OpenStack VM network device numbers.
32# Make sure, they form a continous sequence starting from 0
33MGT_DEV_NR=0
34VM_DEV_NR=1
35PUB_DEV_NR=2
Mate Lakat5a56cd62013-06-17 13:54:43 +010036
John Garbuttd8f1a872012-06-26 11:16:38 +010037# Host Interface, i.e. the interface on the nova vm you want to expose the
Mate Lakat5a56cd62013-06-17 13:54:43 +010038# services on. Usually the device connected to the management network or the
39# one connected to the public network is used.
40HOST_IP_IFACE=${HOST_IP_IFACE:-"eth${MGT_DEV_NR}"}
rootb1153412012-01-19 13:28:21 -080041
John Garbuttd8f1a872012-06-26 11:16:38 +010042#
rootb1153412012-01-19 13:28:21 -080043# Our nova host's network info
John Garbuttd8f1a872012-06-26 11:16:38 +010044#
45
Mate Lakat9e326772013-05-08 16:42:22 +010046# Management network
Mate Lakat5a56cd62013-06-17 13:54:43 +010047MGT_IP=${MGT_IP:-dhcp}
48MGT_NETMASK=${MGT_NETMASK:-ignored}
Mate Lakat9e326772013-05-08 16:42:22 +010049
50# VM Network
51VM_IP=${VM_IP:-10.255.255.255}
52VM_NETMASK=${VM_NETMASK:-255.255.255.0}
Anthony Young11889042012-01-12 17:11:56 -080053
54# Public network
Mate Lakat5a56cd62013-06-17 13:54:43 +010055# Aligned with stack.sh - see FLOATING_RANGE
56PUB_IP=${PUB_IP:-172.24.4.10}
Anthony Young11889042012-01-12 17:11:56 -080057PUB_NETMASK=${PUB_NETMASK:-255.255.255.0}
Anthony Young11889042012-01-12 17:11:56 -080058
John Garbuttd8f1a872012-06-26 11:16:38 +010059# Ubuntu install settings
Mate Lakat2f524bd2013-06-19 12:32:23 +010060UBUNTU_INST_RELEASE="precise"
61UBUNTU_INST_TEMPLATE_NAME="Ubuntu 12.04 (64-bit) for DevStack"
John Garbuttd8f1a872012-06-26 11:16:38 +010062# 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
66UBUNTU_INST_ARCH="amd64"
Mate Lakatd3740f72013-05-09 15:02:21 +010067UBUNTU_INST_HTTP_HOSTNAME="archive.ubuntu.net"
68UBUNTU_INST_HTTP_DIRECTORY="/ubuntu"
69UBUNTU_INST_HTTP_PROXY=""
John Garbuttd8f1a872012-06-26 11:16:38 +010070UBUNTU_INST_LOCALE="en_US"
71UBUNTU_INST_KEYBOARD="us"
Mate Lakat2f524bd2013-06-19 12:32:23 +010072# network configuration for ubuntu netinstall
John Garbuttd8f1a872012-06-26 11:16:38 +010073UBUNTU_INST_IP="dhcp"
74UBUNTU_INST_NAMESERVERS=""
75UBUNTU_INST_NETMASK=""
76UBUNTU_INST_GATEWAY=""
77
Mate Lakat68ac03c2013-06-06 16:22:34 +010078# Create a separate xvdb. Tis could be used as a backing device for cinder
79# volumes. Specify
80# XEN_XVDB_SIZE_GB=10
81# VOLUME_BACKING_DEVICE=/dev/xvdb
82# in your localrc to avoid kernel lockups:
83# https://bugs.launchpad.net/cinder/+bug/1023755
84#
85# Set the size to 0 to avoid creation of additional disk.
86XEN_XVDB_SIZE_GB=0
87
Mate Lakat0b3804b2013-05-07 16:58:17 +010088source ../../stackrc