blob: 2bd7be7e37738ca56866ffc10ecc9bbbcfd2ba55 [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}
John Garbuttdaadf742012-04-27 18:28:28 +010016OSDOMU_MEM_MB=1024
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
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.
25MGT_BRIDGE_OR_NET_NAME="xenbr0"
26VM_BRIDGE_OR_NET_NAME="OpenStack VM Network"
27PUB_BRIDGE_OR_NET_NAME="OpenStack Public Network"
Mate Lakatf652e0f2013-05-21 18:12:48 +010028XEN_INT_BRIDGE_OR_NET_NAME="OpenStack VM Integration Network"
Mate Lakat9e326772013-05-08 16:42:22 +010029
Anthony Young11889042012-01-12 17:11:56 -080030# VM Password
31GUEST_PASSWORD=${GUEST_PASSWORD:-secrete}
32
Mate Lakat5a56cd62013-06-17 13:54:43 +010033# Extracted variables for OpenStack VM network device numbers.
34# Make sure, they form a continous sequence starting from 0
35MGT_DEV_NR=0
36VM_DEV_NR=1
37PUB_DEV_NR=2
38XEN_INT_DEV_NR=3
39
John Garbuttd8f1a872012-06-26 11:16:38 +010040# Host Interface, i.e. the interface on the nova vm you want to expose the
Mate Lakat5a56cd62013-06-17 13:54:43 +010041# services on. Usually the device connected to the management network or the
42# one connected to the public network is used.
43HOST_IP_IFACE=${HOST_IP_IFACE:-"eth${MGT_DEV_NR}"}
rootb1153412012-01-19 13:28:21 -080044
John Garbuttd8f1a872012-06-26 11:16:38 +010045#
rootb1153412012-01-19 13:28:21 -080046# Our nova host's network info
John Garbuttd8f1a872012-06-26 11:16:38 +010047#
48
Mate Lakat9e326772013-05-08 16:42:22 +010049# Management network
Mate Lakat5a56cd62013-06-17 13:54:43 +010050MGT_IP=${MGT_IP:-dhcp}
51MGT_NETMASK=${MGT_NETMASK:-ignored}
Mate Lakat9e326772013-05-08 16:42:22 +010052
53# VM Network
54VM_IP=${VM_IP:-10.255.255.255}
55VM_NETMASK=${VM_NETMASK:-255.255.255.0}
Anthony Young11889042012-01-12 17:11:56 -080056
57# Public network
Mate Lakat5a56cd62013-06-17 13:54:43 +010058# Aligned with stack.sh - see FLOATING_RANGE
59PUB_IP=${PUB_IP:-172.24.4.10}
Anthony Young11889042012-01-12 17:11:56 -080060PUB_NETMASK=${PUB_NETMASK:-255.255.255.0}
Anthony Young11889042012-01-12 17:11:56 -080061
John Garbuttd8f1a872012-06-26 11:16:38 +010062# Ubuntu install settings
63UBUNTU_INST_RELEASE="oneiric"
64UBUNTU_INST_TEMPLATE_NAME="Ubuntu 11.10 (64-bit) for DevStack"
65# For 12.04 use "precise" and update template name
66# However, for 12.04, you should be using
67# XenServer 6.1 and later or XCP 1.6 or later
68# 11.10 is only really supported with XenServer 6.0.2 and later
69UBUNTU_INST_ARCH="amd64"
Mate Lakatd3740f72013-05-09 15:02:21 +010070UBUNTU_INST_HTTP_HOSTNAME="archive.ubuntu.net"
71UBUNTU_INST_HTTP_DIRECTORY="/ubuntu"
72UBUNTU_INST_HTTP_PROXY=""
John Garbuttd8f1a872012-06-26 11:16:38 +010073UBUNTU_INST_LOCALE="en_US"
74UBUNTU_INST_KEYBOARD="us"
Mate Lakat5a56cd62013-06-17 13:54:43 +010075# network configuration for ubuntu netinstall.
76# TODO(matelakat): get rid of legacy network interfaces
77# specify "eth2" to use the management network
78# specify "eth3" to use the public network
79UBUNTU_INST_IFACE="eth2"
John Garbuttd8f1a872012-06-26 11:16:38 +010080UBUNTU_INST_IP="dhcp"
81UBUNTU_INST_NAMESERVERS=""
82UBUNTU_INST_NETMASK=""
83UBUNTU_INST_GATEWAY=""
84
Mate Lakat0b3804b2013-05-07 16:58:17 +010085source ../../stackrc