Difference between revisions of "NovaInstall/RHEL6Notes"
(added euca2ools installation on Cloud Controller node) |
(Added rabbitmq startup, fixed path to bash) |
||
Line 51: | Line 51: | ||
$ sudo service mysqld start | $ sudo service mysqld start | ||
$ sudo chkconfig mysqld on | $ sudo chkconfig mysqld on | ||
+ | $ sudo service rabbitmq-server start | ||
+ | $ sudo chkconfig rabbitmq-server on | ||
$ mysqladmin -uroot password nova | $ mysqladmin -uroot password nova | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 58: | Line 60: | ||
#!highlight bash | #!highlight bash | ||
− | #! | + | #!/bin/bash |
DB_NAME=nova | DB_NAME=nova |
Revision as of 14:01, 18 March 2011
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.
Here are instructions:
- Install RHEL 6.0. I usually prefer minimal set of packages.
- Connect RHEL 6.0 x86_64 DVD as repository in YUM:
$ 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
1.#3 Download and install repo config and key
$ wget http://yum.griddynamics.net/openstack-repo-2011.1-2.noarch.rpm $ sudo rpm -i openstack-repo-2011.1-2.noarch.rpm
1.#4 Install manually libvirt
package since we tested our build only on KVM. You could also try Xen without any guarantees :-)
$ sudo yum install libvirt $ sudo chkconfig libvirtd on $ sudo service libvirtd start
1.#5 Repeat that setup to all hosts of your cloud
- Installation on Cloud Controller node
$ sudo yum install euca2ools openstack-nova-{api,compute,network,objectstore,scheduler,volume} openstack-nova-cc-config openstack-glance
1.#7 Installation on compute nodes
$ sudo yum install openstack-nova-compute openstack-nova-compute-config
1.#8 Create MySQL db on Cloud Controller node
$ sudo service mysqld start $ sudo chkconfig mysqld on $ sudo service rabbitmq-server start $ sudo chkconfig rabbitmq-server on $ mysqladmin -uroot password nova
#!highlight bash #!/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
1.#9 Fix your configuration in /etc/nova/nova.conf
on all nodes based on NovaInstall/MultipleServer
- Start your Nova services and enjoy
$ 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
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.