PageRenderTime 24ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 0ms

/doc/source/adminguide/distros/others.rst

https://github.com/anotherjesse/nova
ReStructuredText | 88 lines | 60 code | 28 blank | 0 comment | 0 complexity | a6e5917685e602ea66f07578e772b012 MD5 | raw file
  1. Installation on other distros (like Debian, Fedora or CentOS )
  2. ==============================================================
  3. Feel free to add additional notes for additional distributions.
  4. Nova installation on CentOS 5.5
  5. -------------------------------
  6. These are notes for installing OpenStack Compute on CentOS 5.5 and will be updated but are NOT final. Please test for accuracy and edit as you see fit.
  7. The principle botleneck for running nova on centos in python 2.6. Nova is written in python 2.6 and CentOS 5.5. comes with python 2.4. We can not update python system wide as some core utilities (like yum) is dependent on python 2.4. Also very few python 2.6 modules are available in centos/epel repos.
  8. Pre-reqs
  9. --------
  10. Add euca2ools and EPEL repo first.::
  11. cat >/etc/yum.repos.d/euca2ools.repo << EUCA_REPO_CONF_EOF
  12. [eucalyptus]
  13. name=euca2ools
  14. baseurl=http://www.eucalyptussoftware.com/downloads/repo/euca2ools/1.3.1/yum/centos/
  15. enabled=1
  16. gpgcheck=0
  17. EUCA_REPO_CONF_EOF
  18. ::
  19. rpm -Uvh 'http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm'
  20. Now install python2.6, kvm and few other libraries through yum::
  21. yum -y install dnsmasq vblade kpartx kvm gawk iptables ebtables bzr screen euca2ools curl rabbitmq-server gcc gcc-c++ autoconf automake swig openldap openldap-servers nginx python26 python26-devel python26-distribute git openssl-devel python26-tools mysql-server qemu kmod-kvm libxml2 libxslt libxslt-devel mysql-devel
  22. Then download the latest aoetools and then build(and install) it, check for the latest version on sourceforge, exact url will change if theres a new release::
  23. wget -c http://sourceforge.net/projects/aoetools/files/aoetools/32/aoetools-32.tar.gz/download
  24. tar -zxvf aoetools-32.tar.gz
  25. cd aoetools-32
  26. make
  27. make install
  28. Add the udev rules for aoetools::
  29. cat > /etc/udev/rules.d/60-aoe.rules << AOE_RULES_EOF
  30. SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k", GROUP="disk", MODE="0220"
  31. SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k", GROUP="disk", MODE="0440"
  32. SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k", GROUP="disk", MODE="0220"
  33. SUBSYSTEM=="aoe", KERNEL=="revalidate", NAME="etherd/%k", GROUP="disk", MODE="0220"
  34. # aoe block devices
  35. KERNEL=="etherd*", NAME="%k", GROUP="disk"
  36. AOE_RULES_EOF
  37. Load the kernel modules::
  38. modprobe aoe
  39. ::
  40. modprobe kvm
  41. Now, install the python modules using easy_install-2.6, this ensures the installation are done against python 2.6
  42. easy_install-2.6 twisted sqlalchemy mox greenlet carrot daemon eventlet tornado IPy routes lxml MySQL-python
  43. python-gflags need to be downloaded and installed manually, use these commands (check the exact url for newer releases ):
  44. ::
  45. wget -c "http://python-gflags.googlecode.com/files/python-gflags-1.4.tar.gz"
  46. tar -zxvf python-gflags-1.4.tar.gz
  47. cd python-gflags-1.4
  48. python2.6 setup.py install
  49. cd ..
  50. Same for python2.6-libxml2 module, notice the --with-python and --prefix flags. --with-python ensures we are building it against python2.6 (otherwise it will build against python2.4, which is default)::
  51. wget -c "ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz"
  52. tar -zxvf libxml2-2.7.3.tar.gz
  53. cd libxml2-2.7.3
  54. ./configure --with-python=/usr/bin/python26 --prefix=/usr
  55. make all
  56. make install
  57. cd python
  58. python2.6 setup.py install
  59. cd ..
  60. Once you've done this, continue at Step 3 here: :doc:`../single.node.install`