Environment:
macbook pro osx 10.10.2
brew
boot2docker
Steps:
- Get boot2docker
- brew install boo2docker
- Configure and run boot2docker (Allocate at least 3GB ram)
- boot2docker init -m 4096
- boot2docker up
- boot2docker ssh
- Get an ubuntu trust image
- docker pull debian:jessie
- Run it with the proper specs
- docker run -it -p 8000:80 -p 8443:443 --privileged --publish-all=true --name devstack debian:jessie /bin/bash
- Get the prerequisites for devstack
- apt-get update && apt-get -y install python net-tools bsdmainutils git build-essential libssl-dev libffi-dev python-dev sudo vim apt-utils
- yum update && yum install python git sudo iproute hostname
- Edit the policy-rc.d file or else we'll have issues with rabbitmq
- perl -pi -w -e 's/101/0/g;' /usr/sbin/policy-rc.d
- Make a folder to put your devstack clone in and close it
- mkdir github
- cd github
- git clone https://git.openstack.org/openstack-dev/devstack
- Run devstack
- devstack/tools/create-stack-user.sh
- chown -R stack:stack /github/*
- su stack
- /devstack/stack.sh
- As a temporary fix until nova can be fixed as of 03/10/2015
- It will fail the first time, this is ok. It will complain about sslv3 because pyopenssl does not support sslv3 while nova still does
- cd /opt/stack/nova
- wget http://anonscm.debian.org/cgit/openstack/nova.git/plain/debian/patches/removed-reference-to-sslv3-removed-from-debian.patch?id=04d5dcd9e70c6caf0df7b10396285549a0e56e99
- git apply removed-reference-to-sslv3-removed-from-debian.patch\?id\=04d5dcd9e70c6caf0df7b10396285549a0e56e99
- cd /github/devstack
- ./clean.sh
- ./stack.sh
If you happen to encounter an error and need to restart, do the following:
- ./unstack.sh
- ./clean.sh
Then restart the process again with ./stack.sh
Issues:
Issues:
- cgroups is broken in ubuntu trusty.
- tgt init script is broken in debian wheezy
No comments:
Post a Comment