|
|
(12 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
− | __NOTOC__
| |
− | Here are RPM repos for Bexar release for [[OpenStack]] Nova: http://yum.griddynamics.net
| |
| | | |
− | To install Nova on RHEL v.6 you need only two repositories cited on above website and RHEL DVD image connected as repo.
| + | openstack-nova from stable diablo, supporting RHEL 6.2, |
| + | is available from the [http://fedoraproject.org/wiki/EPEL Extra Packages for Enterprise Linux] repository.<<BR>> |
| + | Note '''openstack-nova-db-setup''' can be used to initialise the MySQL database before first use. |
| | | |
− | Here are instructions:
| + | An alternative RHEL6 port of [[OpenStack]] is maintained by [http://www.griddynamics.com/openstack/ Grid Dynamics].<<BR>> |
− | # Install RHEL 6.0. I usually prefer minimal set of packages.
| + | You can find more information on the http://www.griddynamics.com/openstack/ site. |
− | # Connect RHEL 6.0 x86_64 DVD as repository in YUM:
| |
− | | |
− | <pre><nowiki>
| |
− | $ sudo mount /dev/cdrom /mnt/cdrom
| |
− | $ cat /etc/yum.repos.d/rhel.repo
| |
− | [rhel] | |
− | name=RHEL 6.0
| |
− | baseurl=file:///mnt/cdrom/Server
| |
− | enabled=1
| |
− | gpgcheck=0
| |
− | </nowiki></pre>
| |
− | | |
− | 1.#3 Download and install repo config and key
| |
− | | |
− | <pre><nowiki>
| |
− | $ wget http://yum.griddynamics.net/openstack-repo-2011.1-2.noarch.rpm
| |
− | $ sudo rpm -i openstack-repo-2011.1-2.noarch.rpm
| |
− | </nowiki></pre>
| |
− | | |
− | 1.#4 Install manually <code><nowiki>libvirt</nowiki></code> package since we tested our build only on KVM. You could also try Xen without any guarantees :-)
| |
− | | |
− | <pre><nowiki>
| |
− | $ sudo yum install libvirt
| |
− | $ sudo chkconfig libvirtd on
| |
− | $ sudo service libvirtd start
| |
− | </nowiki></pre>
| |
− | | |
− | 1.#5 Repeat that setup to all hosts of your cloud
| |
− | # Installation on Cloud Controller node
| |
− | | |
− | <pre><nowiki>
| |
− | $ sudo yum install openstack-nova-{api,compute,network,objectstore,scheduler,volume} openstack-nova-cc-config openstack-glance
| |
− | </nowiki></pre>
| |
− |
| |
− | 1.#7 Installation on compute nodes
| |
− | | |
− | <pre><nowiki>
| |
− | $ sudo yum install openstack-nova-compute openstack-nova-compute-config
| |
− | </nowiki></pre>
| |
− |
| |
− | 1.#8 Create MySQL db on Cloud Controller node
| |
− | | |
− | <pre><nowiki>
| |
− | $ sudo service mysqld start
| |
− | $ sudo chkconfig mysqld on
| |
− | $ mysqladmin -uroot password nova
| |
− | </nowiki></pre>
| |
− | | |
− | | |
− | <pre><nowiki>
| |
− | | |
− | #!highlight bash
| |
− | #!/usr/bin/bash
| |
− | | |
− | DB_NAME=nova
| |
− | DB_USER=nova
| |
− | DB_PASS=nova
| |
− | PWD=nova
| |
− | | |
− | CC_HOST="A.B.C.D" # IPv4 address
| |
− | HOSTS='node1 node2 node3' # compute nodes list
| |
− | | |
− | mysqladmin -uroot -p$PWD -f drop nova
| |
− | mysqladmin -uroot -p$PWD create nova
| |
− | | |
− | for h in $HOSTS localhost; do
| |
− | echo "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'$h' IDENTIFIED BY '$DB_PASS';" | mysql -uroot -p$DB_PASS mysql
| |
− | done
| |
− | echo "GRANT ALL PRIVILEGES ON $DB_NAME.* TO $DB_USER IDENTIFIED BY '$DB_PASS';" | mysql -uroot -p$DB_PASS mysql
| |
− | echo "GRANT ALL PRIVILEGES ON $DB_NAME.* TO root IDENTIFIED BY '$DB_PASS';" | mysql -uroot -p$DB_PASS mysql
| |
− | | |
− | nova-manage db sync
| |
− | </nowiki></pre>
| |
− | | |
− | 1.#9 Fix your configuration in <code><nowiki>/etc/nova/nova.conf</nowiki></code> on all nodes based on [[NovaInstall/MultipleServer]]
| |
− | # Start your Nova services and enjoy
| |
− | | |
− | <pre><nowiki>
| |
− | $ for n in api compute network objectstore scheduler volume; do sudo service openstack-nova-$n start; done
| |
− | $ sudo service openstack-glance start
| |
− | $ for n in node1 node2 node3; do ssh $n sudo service openstack-nova-compute start; done
| |
− | </nowiki></pre>
| |
− | | |
− | | |
− | Limitations:
| |
− | * iSCSI LUN do not supported due tgtadm vs ietadm differences
| |
− | * Only KVM hypervisor support tested
| |
− | | |
− | Please route your feedback about that build to abrindeyev@griddynamics.com or to BK_man on IRC.
| |