Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Name of this guest |
| 4 | GUEST_NAME=${GUEST_NAME:-ALLINONE} |
| 5 | |
| 6 | # Size of image |
| 7 | VDI_MB=${VDI_MB:-2500} |
| 8 | |
| 9 | # VM Password |
| 10 | GUEST_PASSWORD=${GUEST_PASSWORD:-secrete} |
| 11 | |
root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 12 | # Host Interface, i.e. the public facing interface on the nova vm |
| 13 | HOST_IP_IFACE=${HOST_IP_IFACE:-eth0} |
| 14 | |
| 15 | # Our nova host's network info |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 16 | VM_IP=${VM_IP:-10.255.255.255} # A host-only ip that let's the interface come up, otherwise unused |
| 17 | MGT_IP=${MGT_IP:-172.16.100.55} |
| 18 | PUB_IP=${PUB_IP:-192.168.1.55} |
| 19 | |
| 20 | # Public network |
root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 21 | PUB_BR=${PUB_BR:-"xenbr0"} |
| 22 | PUB_DEV=${PUB_DEV:-eth0} |
| 23 | PUB_VLAN=${PUB_VLAN:--1} |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 24 | PUB_NETMASK=${PUB_NETMASK:-255.255.255.0} |
| 25 | |
| 26 | # VM network params |
| 27 | VM_NETMASK=${VM_NETMASK:-255.255.255.0} |
root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 28 | VM_BR=${VM_BR:-""} |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 29 | VM_VLAN=${VM_VLAN:-100} |
root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 30 | VM_DEV=${VM_DEV:-eth0} |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 31 | |
| 32 | # MGMT network params |
| 33 | MGT_NETMASK=${MGT_NETMASK:-255.255.255.0} |
root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 34 | MGT_BR=${MGT_BR:-""} |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 35 | MGT_VLAN=${MGT_VLAN:-101} |
root | b115341 | 2012-01-19 13:28:21 -0800 | [diff] [blame] | 36 | MGT_DEV=${MGT_DEV:-eth0} |
Anthony Young | 1188904 | 2012-01-12 17:11:56 -0800 | [diff] [blame] | 37 | |
| 38 | # XVA Directory |
| 39 | XVA_DIR=${XVA_DIR:-xvas} |
| 40 | |
| 41 | # Path to xva file |
| 42 | XVA=${XVA:-$XVA_DIR/$GUEST_NAME.xva } |
| 43 | |
| 44 | # Source params |
| 45 | cd ../.. && source ./stackrc && cd $TOP_DIR |