Difference between revisions of "Obsolete:NovaInstall/DevInstallScript"
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. | 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. | ||
Line 6: | Line 6: | ||
'''Step 1: Get a developer installation script ''' | '''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. | + | Included with the Nova source code is a script you can use to install (and then run) Nova on Ubuntu or Debian. The script also enables getting the latest releases of Glance, Dashboard, and Keystone to run with Nova. |
− | You can | + | You can download the script using this url: https://github.com/cloudbuilders/deploy.sh/blob/master/nova.sh: |
<pre><nowiki> | <pre><nowiki> | ||
curl -O https://raw.github.com/cloudbuilders/deploy.sh/master/nova.sh | curl -O https://raw.github.com/cloudbuilders/deploy.sh/master/nova.sh | ||
+ | chmod 755 nova.sh | ||
</nowiki></pre> | </nowiki></pre> | ||
− | + | ||
+ | The script is controlled by setting environment variables prior to invoking it, and assumes you are using an Ubuntu or Debian based Linux. For example: | ||
<pre><nowiki> | <pre><nowiki> | ||
− | + | export USE_GIT=1 | |
− | + | export ENABLE_VOLUMES=0 | |
+ | export ENABLE_DASH=1 | ||
+ | export ENABLE_GLANCE=1 | ||
+ | export ENABLE_KEYSTONE=1 | ||
+ | export ENABLE_APACHE=1 | ||
+ | export NET_MAN=FlatDHCPManager | ||
</nowiki></pre> | </nowiki></pre> | ||
− | Use the script to install and run the current trunk. You | + | |
+ | If you have more than one network adapter, you may need or want to set <code><nowiki>HOST_IP</nowiki></code>. The script looks through ifconfig and takes the first IP address for configuring the setup. | ||
+ | |||
+ | Use the script to install and then run the current trunk. You may specify a specific branch by putting lp:~username/nova/branchname after the branch command, for example ./nova.sh branch lp:nova/bexar, or ./nova.sh branch lp:~hudson-openstack/nova/milestone-proposed for the latest proposed milestone release. See [[BranchModel]] for a list of release branches. | ||
<pre><nowiki> | <pre><nowiki> | ||
− | ./nova.sh branch | + | ./nova.sh branch |
./nova.sh install | ./nova.sh install | ||
</nowiki></pre> | </nowiki></pre> | ||
+ | |||
You can watch a screencast of this script in action on Ubuntu 10.04. | You can watch a screencast of this script in action on Ubuntu 10.04. |
Revision as of 16:03, 28 June 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. The script also enables getting the latest releases of Glance, Dashboard, and Keystone to run with Nova.
You can download the script using this url: https://github.com/cloudbuilders/deploy.sh/blob/master/nova.sh:
curl -O https://raw.github.com/cloudbuilders/deploy.sh/master/nova.sh chmod 755 nova.sh
The script is controlled by setting environment variables prior to invoking it, and assumes you are using an Ubuntu or Debian based Linux. For example:
export USE_GIT=1 export ENABLE_VOLUMES=0 export ENABLE_DASH=1 export ENABLE_GLANCE=1 export ENABLE_KEYSTONE=1 export ENABLE_APACHE=1 export NET_MAN=FlatDHCPManager
If you have more than one network adapter, you may need or want to set HOST_IP
. The script looks through ifconfig and takes the first IP address for configuring the setup.
Use the script to install and then run the current trunk. You may specify a specific branch by putting lp:~username/nova/branchname after the branch command, for example ./nova.sh branch lp:nova/bexar, or ./nova.sh branch lp:~hudson-openstack/nova/milestone-proposed for the latest proposed milestone release. See BranchModel for a list of release branches.
./nova.sh branch ./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:
sudo ./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).
You'll need to create a volume group for nova-volume.
# This creates a 1GB file to create volumes out of dd if=/dev/zero of=MY_FILE_PATH bs=100M count=10 losetup --show -f MY_FILE_PATH # replace /dev/loop0 below with whatever losetup returns # nova-volumes is the default for the --volume_group flag vgcreate nova-volumes /dev/loop0