blob: 0365a25ee9f73ff312943b196a525e7a226ba83b [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
Anthony Young11889042012-01-12 17:11:56 -080014
15# VM Password
16GUEST_PASSWORD=${GUEST_PASSWORD:-secrete}
17
John Garbuttd8f1a872012-06-26 11:16:38 +010018# 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 Garbuttdaadf742012-04-27 18:28:28 +010020# not eth0 (private network with XenServer host) or eth1 (VM traffic network)
John Garbuttd8f1a872012-06-26 11:16:38 +010021# This is also used as the interface for the Ubuntu install
John Garbuttdaadf742012-04-27 18:28:28 +010022HOST_IP_IFACE=${HOST_IP_IFACE:-eth3}
rootb1153412012-01-19 13:28:21 -080023
John Garbuttd8f1a872012-06-26 11:16:38 +010024#
rootb1153412012-01-19 13:28:21 -080025# Our nova host's network info
John Garbuttd8f1a872012-06-26 11:16:38 +010026#
27
28# A host-only ip that let's the interface come up, otherwise unused
29VM_IP=${VM_IP:-10.255.255.255}
Anthony Young11889042012-01-12 17:11:56 -080030MGT_IP=${MGT_IP:-172.16.100.55}
31PUB_IP=${PUB_IP:-192.168.1.55}
32
33# Public network
rootb1153412012-01-19 13:28:21 -080034PUB_BR=${PUB_BR:-"xenbr0"}
35PUB_DEV=${PUB_DEV:-eth0}
36PUB_VLAN=${PUB_VLAN:--1}
Anthony Young11889042012-01-12 17:11:56 -080037PUB_NETMASK=${PUB_NETMASK:-255.255.255.0}
38
39# VM network params
40VM_NETMASK=${VM_NETMASK:-255.255.255.0}
rootb1153412012-01-19 13:28:21 -080041VM_BR=${VM_BR:-""}
Anthony Young11889042012-01-12 17:11:56 -080042VM_VLAN=${VM_VLAN:-100}
rootb1153412012-01-19 13:28:21 -080043VM_DEV=${VM_DEV:-eth0}
Anthony Young11889042012-01-12 17:11:56 -080044
45# MGMT network params
46MGT_NETMASK=${MGT_NETMASK:-255.255.255.0}
rootb1153412012-01-19 13:28:21 -080047MGT_BR=${MGT_BR:-""}
Anthony Young11889042012-01-12 17:11:56 -080048MGT_VLAN=${MGT_VLAN:-101}
rootb1153412012-01-19 13:28:21 -080049MGT_DEV=${MGT_DEV:-eth0}
Anthony Young11889042012-01-12 17:11:56 -080050
John Garbuttd8f1a872012-06-26 11:16:38 +010051# 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 Garbutt030fb232012-04-27 18:28:28 +010054ENABLE_GI=true
55
John Garbuttd8f1a872012-06-26 11:16:38 +010056# Ubuntu install settings
57UBUNTU_INST_RELEASE="oneiric"
58UBUNTU_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
63UBUNTU_INST_ARCH="amd64"
64UBUNTU_INST_REPOSITORY="http://archive.ubuntu.net/ubuntu"
65UBUNTU_INST_LOCALE="en_US"
66UBUNTU_INST_KEYBOARD="us"
67# network configuration for HOST_IP_IFACE during install
68UBUNTU_INST_IP="dhcp"
69UBUNTU_INST_NAMESERVERS=""
70UBUNTU_INST_NETMASK=""
71UBUNTU_INST_GATEWAY=""
72
73# Load stackrc defaults
74# then override with settings from localrc
Anthony Young11889042012-01-12 17:11:56 -080075cd ../.. && source ./stackrc && cd $TOP_DIR