Difference between revisions of "NovaInstall/RHEL6Notes"
(Added SELinux notice) |
(added info about per-commit builds) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | Here are RPM repos for Bexar release for [[OpenStack]] Nova: http://yum.griddynamics.net | + | Here are RPM repos for Bexar release and also per-commit trunk builds 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. | To install Nova on RHEL v.6 you need only two repositories cited on above website and RHEL DVD image connected as repo. |
Revision as of 17:37, 29 March 2011
Here are RPM repos for Bexar release and also per-commit trunk builds 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.
- Disable SELinux in
/etc/sysconfig/selinux
. Reboot. - 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.#4 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.#5 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.#6 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.#8 Installation on compute nodes
$ sudo yum install openstack-nova-compute openstack-nova-compute-config
1.#9 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.#10 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.