-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevstack_prereq.sh
More file actions
executable file
·29 lines (28 loc) · 928 Bytes
/
devstack_prereq.sh
File metadata and controls
executable file
·29 lines (28 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#run this as root
if [ `whoami` != root ]; then
echo Please run this script as root or using sudo
exit
fi
#update apt repo
apt-get update
#install could keyring for grizzly
apt-get install ubuntu-cloud-keyring python-software-properties software-properties-common python-keyring
echo deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/grizzly main >> /etc/apt/sources.list.d/grizzly.list
#upgrade system
apt-get update
apt-get upgrade
#setup network interfaces
echo "#For Exposing OpenStack API over the internet
auto eth0
iface eth0 inet dhcp
#Not internet connected(used for OpenStack management)
auto eth1
iface eth1 inet manual
up ip link set $IFACE up
down ip link set $IFACE down" >> /etc/network/interfaces
service networking restart
#install devstack stuff
apt-get install openvswitch-switch openvswitch-datapath-dkms
#setup ovs bridge
ovs-vsctl add-br br-eth1
ovs-vsctl add-port br-eth1 eth1