Jump to: navigation, search

Difference between revisions of "Obsolete:InstallationNova20100729"

(talk)
Line 72: Line 72:
 
</nowiki></pre>
 
</nowiki></pre>
 
   
 
   
 +
 +
* Activate the virtual environment (type deactivate to leave it later)
 +
 +
<pre><nowiki>
 +
. .nova-venv/bin/activate
 +
</nowiki></pre>
 +
 +
 +
* Install eucatools
 +
 +
<pre><nowiki>
 +
# ubuntu
 +
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>
 +
cd bin
 +
./nova-manage user admin admin
 +
./nova-manage project admin admin admin
 +
./nova-manage project create admin admin admin
 +
./nova-manage project zip admin admin
 +
unzip nova.zip
 +
. novarc
 +
</nowiki></pre>
 +
 +
 +
* Start services in their own windows (don't forget to activate venv in each)
 +
 +
<pre><nowiki>
 +
./nova-api --verbose
 +
./nova-objectstore --verbose --nodaemon
 +
./nova-compute --verbose --nodaemon --connection_type=fake
 +
# ./nova-volume --verbose --nodaemon # ignore this for now, requires extra setup
 +
</nowiki></pre>
 +
 +
 +
* PROFIT???
  
 
=== Just to run on Debian or Ubuntu ===
 
=== Just to run on Debian or Ubuntu ===
  
 
Get packages from http://nova.openstack.org/pkgs
 
Get packages from http://nova.openstack.org/pkgs

Revision as of 22:53, 29 July 2010

Installation notes

PYTHON 2.6 REQUIRED!!!

For developers

  • Get Redis
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 and start Redis server
make
./redis-server


  • Get BZR
http://wiki.bazaar.canonical.com/Download


SUDO MAY NOT BE NECESSARY

  • Get virtualenv
sudo easy_install virtualenv


  • Get PIP
sudo easy_install pip


  • 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


  • Set up python path for using nova
# example python path dir OSX: /Library/Python/2.6/site-packages/
# example python path dir Ubuntu: /usr/lib/pymodulues/python2.6/dist-packages
echo "/path/to/bzr/branch" > cat /path/to/dir/in/python/path/nova.pth


  • Activate the virtual environment (type deactivate to leave it later)
. .nova-venv/bin/activate


  • Install eucatools
# ubuntu
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
cd bin
./nova-manage user admin admin
./nova-manage project admin admin admin
./nova-manage project create admin admin admin
./nova-manage project zip admin admin
unzip nova.zip 
. novarc


  • Start services in their own windows (don't forget to activate venv in each)
./nova-api --verbose
./nova-objectstore --verbose --nodaemon
./nova-compute --verbose --nodaemon --connection_type=fake
# ./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