blob: 1a5a2a93003a5bd3bba4b17feb5b80e91b0ccf10 [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
11# Size of image
Renuka Apte0af143b2012-04-02 15:46:53 -070012VDI_MB=${VDI_MB:-5000}
John Garbuttdaadf742012-04-27 18:28:28 +010013OSDOMU_MEM_MB=1024
Stef Tf993b232012-11-08 10:46:48 -050014OSDOMU_VDI_GB=8
Anthony Young11889042012-01-12 17:11:56 -080015
16# VM Password
17GUEST_PASSWORD=${GUEST_PASSWORD:-secrete}
18
John Garbuttd8f1a872012-06-26 11:16:38 +010019# Host Interface, i.e. the interface on the nova vm you want to expose the
20# services on. Usually eth2 (management network) or eth3 (public network) and
John Garbuttdaadf742012-04-27 18:28:28 +010021# not eth0 (private network with XenServer host) or eth1 (VM traffic network)
John Garbuttd8f1a872012-06-26 11:16:38 +010022# This is also used as the interface for the Ubuntu install
John Garbuttdaadf742012-04-27 18:28:28 +010023HOST_IP_IFACE=${HOST_IP_IFACE:-eth3}
rootb1153412012-01-19 13:28:21 -080024
John Garbuttd8f1a872012-06-26 11:16:38 +010025#
rootb1153412012-01-19 13:28:21 -080026# Our nova host's network info
John Garbuttd8f1a872012-06-26 11:16:38 +010027#
28
29# A host-only ip that let's the interface come up, otherwise unused
30VM_IP=${VM_IP:-10.255.255.255}
Anthony Young11889042012-01-12 17:11:56 -080031MGT_IP=${MGT_IP:-172.16.100.55}
32PUB_IP=${PUB_IP:-192.168.1.55}
33
34# Public network
rootb1153412012-01-19 13:28:21 -080035PUB_BR=${PUB_BR:-"xenbr0"}
36PUB_DEV=${PUB_DEV:-eth0}
37PUB_VLAN=${PUB_VLAN:--1}
Anthony Young11889042012-01-12 17:11:56 -080038PUB_NETMASK=${PUB_NETMASK:-255.255.255.0}
39
40# VM network params
41VM_NETMASK=${VM_NETMASK:-255.255.255.0}
rootb1153412012-01-19 13:28:21 -080042VM_BR=${VM_BR:-""}
Anthony Young11889042012-01-12 17:11:56 -080043VM_VLAN=${VM_VLAN:-100}
rootb1153412012-01-19 13:28:21 -080044VM_DEV=${VM_DEV:-eth0}
Anthony Young11889042012-01-12 17:11:56 -080045
46# MGMT network params
47MGT_NETMASK=${MGT_NETMASK:-255.255.255.0}
rootb1153412012-01-19 13:28:21 -080048MGT_BR=${MGT_BR:-""}
Anthony Young11889042012-01-12 17:11:56 -080049MGT_VLAN=${MGT_VLAN:-101}
rootb1153412012-01-19 13:28:21 -080050MGT_DEV=${MGT_DEV:-eth0}
Anthony Young11889042012-01-12 17:11:56 -080051
John Garbuttd8f1a872012-06-26 11:16:38 +010052# Decide if you should enable eth0,
53# the guest installer network
54# You need to disable this on xcp-xapi on Ubuntu 12.04
John Garbutt030fb232012-04-27 18:28:28 +010055ENABLE_GI=true
56
John Garbuttd8f1a872012-06-26 11:16:38 +010057# Ubuntu install settings
58UBUNTU_INST_RELEASE="oneiric"
59UBUNTU_INST_TEMPLATE_NAME="Ubuntu 11.10 (64-bit) for DevStack"
60# For 12.04 use "precise" and update template name
61# However, for 12.04, you should be using
62# XenServer 6.1 and later or XCP 1.6 or later
63# 11.10 is only really supported with XenServer 6.0.2 and later
64UBUNTU_INST_ARCH="amd64"
65UBUNTU_INST_REPOSITORY="http://archive.ubuntu.net/ubuntu"
66UBUNTU_INST_LOCALE="en_US"
67UBUNTU_INST_KEYBOARD="us"
68# network configuration for HOST_IP_IFACE during install
69UBUNTU_INST_IP="dhcp"
70UBUNTU_INST_NAMESERVERS=""
71UBUNTU_INST_NETMASK=""
72UBUNTU_INST_GATEWAY=""
73
74# Load stackrc defaults
75# then override with settings from localrc
Anthony Young11889042012-01-12 17:11:56 -080076cd ../.. && source ./stackrc && cd $TOP_DIR