Difference between revisions of "Obsolete:InstallationNova20100729"
(talk) |
m (Fifieldt moved page InstallationNova20100729 to Obsolete:InstallationNova20100729: DeprecatedPage) |
||
(34 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | + | ||
+ | {{:[[DeprecatedPage]]}} | ||
+ | |||
== Installation notes == | == Installation notes == | ||
+ | |||
+ | PYTHON 2.6 REQUIRED!!! | ||
+ | |||
+ | === For developers === | ||
+ | |||
+ | * Download and start redis (use another window) | ||
+ | |||
+ | <pre><nowiki> | ||
+ | curl http://redis.googlecode.com/files/redis-2.0.0-rc4.tar.gz -o redis-2.0.0-rc4.tar.gz | ||
+ | tar xvfz redis-2.0.0-rc4.tar.gz | ||
+ | cd redis-2.0.0-rc4 | ||
+ | make | ||
+ | ./redis-server | ||
+ | </nowiki></pre> | ||
+ | |||
* Get BZR | * Get BZR | ||
− | |||
− | |||
− | * Get | + | <pre><nowiki> |
− | + | # ubuntu | |
+ | apt-get install bzr | ||
+ | |||
+ | # OS X | ||
+ | brew install bzr | ||
+ | |||
+ | # others | ||
+ | http://wiki.bazaar.canonical.com/Download | ||
+ | </nowiki></pre> | ||
+ | |||
+ | |||
+ | * Get virtualenv | ||
+ | |||
+ | <pre><nowiki> | ||
+ | sudo easy_install virtualenv | ||
+ | </nowiki></pre> | ||
+ | |||
+ | |||
+ | * UBUNTU ONLY!!! | ||
+ | |||
+ | <pre><nowiki> | ||
+ | sudo apt-get build-dep python-m2crypto | ||
+ | </nowiki></pre> | ||
+ | |||
+ | |||
+ | * Get Nova and run tests | ||
+ | |||
+ | <pre><nowiki> | ||
+ | bzr init | ||
+ | bzr branch lp:nova | ||
+ | cd nova | ||
+ | python tools/install_venv.py | ||
+ | ./run_tests.sh | ||
+ | </nowiki></pre> | ||
+ | |||
+ | |||
+ | * Install eucatools | ||
+ | |||
+ | <pre><nowiki> | ||
+ | # ubuntu | ||
+ | sudo apt-get install euca2ools | ||
+ | # OSX | ||
+ | wget http://open.eucalyptus.com/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://eucalyptussoftware.com/downloads/releases/euca2ools-1.2.tar.gz&nid=1346 | ||
+ | tar zxf euca2ools-1.2.tar.gz | ||
+ | cd euca2ools-1.2 | ||
+ | sed -i="" "s/-g root/-g wheel/g" Makefile | ||
+ | sudo make install | ||
+ | </nowiki></pre> | ||
+ | |||
+ | |||
+ | * Set up user/project credentials | ||
+ | |||
+ | <pre><nowiki> | ||
+ | tools/with_venv.sh bin/nova-manage user admin admin # create an admin user called 'admin' | ||
+ | tools/with_venv.sh bin/nova-manage project create admin admin # create a project called 'admin' with project manager of 'admin' | ||
+ | tools/with_venv.sh bin/nova-manage project environment admin admin # export environment variables for project 'admin' and user 'admin' | ||
+ | . novarc | ||
+ | </nowiki></pre> | ||
+ | |||
+ | |||
+ | * Install rabbit-mq | ||
+ | |||
+ | <pre><nowiki> | ||
+ | # ubuntu | ||
+ | sudo apt-get install rabbitmq-server | ||
+ | # OSX | ||
+ | brew install rabbitmq | ||
+ | </nowiki></pre> | ||
+ | |||
+ | |||
+ | * Start services in their own windows (with_venv automatically activates venv in each) | ||
+ | |||
+ | <pre><nowiki> | ||
+ | tools/with_venv.sh bin/nova-api --verbose | ||
+ | tools/with_venv.sh bin/nova-objectstore --verbose --nodaemon | ||
+ | tools/with_venv.sh bin/nova-compute --verbose --nodaemon --connection_type=fake | ||
+ | # tools/with_venv.sh bin/nova-volume --verbose --nodaemon # ignore this for now, requires extra setup | ||
+ | </nowiki></pre> | ||
+ | |||
+ | |||
+ | * PROFIT??? | ||
+ | |||
+ | === Just to run on Debian or Ubuntu === | ||
+ | |||
+ | Get packages from http://nova.openstack.org/pkgs | ||
+ | ---- | ||
+ | [[Category:HowTo]] |
Latest revision as of 18:50, 25 July 2013
{{:DeprecatedPage}}
Installation notes
PYTHON 2.6 REQUIRED!!!
For developers
- Download and start redis (use another window)
curl http://redis.googlecode.com/files/redis-2.0.0-rc4.tar.gz -o redis-2.0.0-rc4.tar.gz tar xvfz redis-2.0.0-rc4.tar.gz cd redis-2.0.0-rc4 make ./redis-server
- Get BZR
# ubuntu apt-get install bzr # OS X brew install bzr # others http://wiki.bazaar.canonical.com/Download
- Get virtualenv
sudo easy_install virtualenv
- UBUNTU ONLY!!!
sudo apt-get build-dep python-m2crypto
- Get Nova and run tests
bzr init bzr branch lp:nova cd nova python tools/install_venv.py ./run_tests.sh
- Install eucatools
# ubuntu sudo apt-get install euca2ools # OSX wget http://open.eucalyptus.com/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://eucalyptussoftware.com/downloads/releases/euca2ools-1.2.tar.gz&nid=1346 tar zxf euca2ools-1.2.tar.gz cd euca2ools-1.2 sed -i="" "s/-g root/-g wheel/g" Makefile sudo make install
- Set up user/project credentials
tools/with_venv.sh bin/nova-manage user admin admin # create an admin user called 'admin' tools/with_venv.sh bin/nova-manage project create admin admin # create a project called 'admin' with project manager of 'admin' tools/with_venv.sh bin/nova-manage project environment admin admin # export environment variables for project 'admin' and user 'admin' . novarc
- Install rabbit-mq
# ubuntu sudo apt-get install rabbitmq-server # OSX brew install rabbitmq
- Start services in their own windows (with_venv automatically activates venv in each)
tools/with_venv.sh bin/nova-api --verbose tools/with_venv.sh bin/nova-objectstore --verbose --nodaemon tools/with_venv.sh bin/nova-compute --verbose --nodaemon --connection_type=fake # tools/with_venv.sh bin/nova-volume --verbose --nodaemon # ignore this for now, requires extra setup
- PROFIT???
Just to run on Debian or Ubuntu
Get packages from http://nova.openstack.org/pkgs