Difference between revisions of "NovaInstall/RHEL6Notes"
(s/openstack-nova-glance/openstack-glance/) |
(Added libvirtd as hypervisor) |
||
Line 25: | Line 25: | ||
</nowiki></pre> | </nowiki></pre> | ||
− | 1.#4 Repeat that setup to all hosts of your cloud | + | 1.#4 Install manually libvirtd 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 | # Installation on Cloud Controller node | ||
Line 32: | Line 40: | ||
</nowiki></pre> | </nowiki></pre> | ||
− | 1.# | + | 1.#7 Installation on compute nodes |
<pre><nowiki> | <pre><nowiki> | ||
Line 38: | Line 46: | ||
</nowiki></pre> | </nowiki></pre> | ||
− | 1.# | + | 1.#8 Create MySQL db on Cloud Controller node |
<pre><nowiki> | <pre><nowiki> | ||
#!highlight bash | #!highlight bash | ||
+ | #!/usr/bin/bash | ||
#################################################################### | #################################################################### | ||
Line 68: | Line 77: | ||
</nowiki></pre> | </nowiki></pre> | ||
− | 1.# | + | 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 | # Start your Nova services and enjoy | ||
Revision as of 21:41, 23 February 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 libvirtd 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 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
#!highlight bash #!/usr/bin/bash #################################################################### # BIG FAT WARNING: # ASSUMPTION: a password for root user in MySQL server is `nova' !!! #################################################################### 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 nova-manage db sync 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
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 glance network objectstore scheduler volume; do sudo service openstack-nova-$n start; done $ for n in node1 node2 node3; do ssh $n sudo service openstack-nova-compute start; done
Limitations:
- qcow2 images do not supported due lack of NBD support in RHEL
- iSCSI LUN do not supported due tgtadm vs ietadm differences
Please route your feedback about that build to abrindeyev@griddynamics.com or to BK_man on IRC.