-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathopenstack_base_2.sh
More file actions
executable file
·37 lines (25 loc) · 968 Bytes
/
openstack_base_2.sh
File metadata and controls
executable file
·37 lines (25 loc) · 968 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
30
31
32
33
34
35
36
37
#!/bin/bash
# Make sure only root can run our script
if [ "$(id -u)" != "0" ]; then
echo "You need to be 'root' dude." 1>&2
exit 1
fi
# bridge stuff
apt-get install bridge-utils
# rabbit food
apt-get install rabbitmq-server memcached python-memcache
# kvm
apt-get install kvm libvirt-bin
echo "#################################################################################################
You'll need a LVM for 'nova-volumes'. This assumes you have an empty disk spinning at /dev/sdb:
fdisk /dev/sdb
Create a new partition by hitting 'n' then 'p'. Use the defaults. Type 't' then '8e' to set the
partition to the LVM type. Hit 'w' to write and exit.
Next, do a:
pvcreate -ff /dev/sdb1
vgcreate nova-volumes /dev/sdb1
NOTE: You should use whatever device handle your system has. Be careful!
When you are done, run './openstack_mysql.sh'
#################################################################################################
"
exit