forked from ceph/ceph-openstack-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·36 lines (30 loc) · 1.05 KB
/
install.sh
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
#!/bin/bash
set -e
DIR=`dirname $0`
if [ ! -f $DIR/previous_packages.txt ]; then
sudo dpkg --get-selections > $DIR/previous_packages.txt
fi
if [ ! -f /etc/apt/sources.list.d/ceph.list ]; then
(cat <<EOF
deb http://ceph.newdream.net/debian-snapshot-amd64/master/ natty main
deb-src http://ceph.newdream.net/debian-snapshot-amd64/master/ natty main
EOF
) | sudo tee /etc/apt/sources.list.d/ceph.list
fi
sudo apt-get update
sudo apt-get install -y ceph librbd-dev libglib2.0-dev xvnc4viewer
# For running nova tests:
sudo apt-get install -y libxml2-dev libxslt1-dev swig
sudo cp $DIR/ceph.conf /etc/ceph/ceph.conf
mkdir -p ~/ceph_logs/dev/osd0 ~/ceph_logs/dev/mon.a ~/ceph_logs/dev/mon.b ~/ceph_logs/dev/mon.c ~/ceph_logs/out
sudo mkcephfs -a -c /etc/ceph/ceph.conf
sudo service ceph start
mkdir ~/openstack
$DIR/nova.sh install
git clone git://github.com/NewDreamNetwork/qemu-kvm.git $DIR/qemu-kvm
cd $DIR/qemu-kvm
./configure --enable-rbd --enable-system --enable-kvm --prefix=/usr --sysconfdir=/etc --enable-io-thread
make -j4
sudo make install
cd ..
$DIR/nova.sh branch