Difference between revisions of "Obsolete:NovaInstall/DevInstallScript"
(Adding links to manual install of Nova code for dev) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
== Single Machine Installation, Development Environment (Ubuntu 10.04 or Debian) == | == Single Machine Installation, Development Environment (Ubuntu 10.04 or Debian) == | ||
+ | |||
+ | If you prefer to do the installation manually from the source code on Ubuntu 10.10, see [[InstallFromSource]]. You can also see [[HackingNovaMacOSX]] for Mac OS X notes. | ||
+ | |||
'''Step 1: Get a developer installation script ''' | '''Step 1: Get a developer installation script ''' | ||
Revision as of 03:45, 9 February 2011
Single Machine Installation, Development Environment (Ubuntu 10.04 or Debian)
If you prefer to do the installation manually from the source code on Ubuntu 10.10, see InstallFromSource. You can also see HackingNovaMacOSX for Mac OS X notes.
Step 1: Get a developer installation script
Included with the Nova source code is a script you can use to install (and then run) Nova on Ubuntu or Debian. When using Debian, edit nova.sh to have USE_PPA=0.
You can also download the script using:
wget --no-check-certificate https://github.com/vishvananda/novascript/raw/master/nova.sh
You may need to set your HOST_IP variable in the script before running nova.sh, it just takes the first IP address in the ifconfig print list.
chmod 755 nova.sh chmod 755 .
Use the script to install and run the current trunk. You can also specify a specific branch by putting lp:~username/nova/branchname after the branch command.
./nova.sh branch (optional: lp:~username/nova/branchname) ./nova.sh install
You can watch a screencast of this script in action on Ubuntu 10.04.
<<YouTube(id=JD3kdlCcMwA)>>
Here is a tiny busybox/centos image that you can use to test Nova. Any image that you use needs to be a single partition image and and needs a separate kernel and ramdisk.
Download from wiki: attachment:images.tgz
Download from Rackspace's CDN (faster): images.tgz
Step 2: Starting modules
With the nova.sh script you can start and run all the required dependencies in different screen windows.
It might help you to configure screen to display last line with status and list of windows. Edit file /etc/screenrc to contain line:
hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %= %H"
Step 3: Starting Nova Now you can run Nova:
./nova.sh run
Next, it launches these Nova components.
- nova-api
- nova-compute
- nova-objectstore
- nova-volume
- nova-network
- nova-scheduler
With the script, you can press <Ctrl+ A "> to switch between windows. Here's what it looks like:
Num Name Flags 0 nova $ 1 api $ 2 objectstore $ 3 compute $ 4 network $ 5 scheduler $ 6 volume $ 7 test $
Once it is running, you can use eucatools to run commands against the cloud. See Running OpenStack Compute (Nova).