Info 13/05/2013: this post has been updated as OpenNebula 4 has been published last week. A big thanks to C12G Labs and other contributors for such a great job.
Info 03/06/2013: this post has been updated as OpenNebula 4.0.1 has been recently published.
I’ve downloaded the CentOS-6.4-opennebula-4.0.1-1.tar.gz from OpenNebula’s download page. It’s really easy to install OpenNebula using the rpm packages provided by C12G Labs.
Warning: Don’t install the opennebula-context-4.0.1-1.x86_64.rpm package inside the context directory as it will reconfigure your network interfaces, that package should be used if you want to install contextualization scripts in RedHat or CentOS virtual machines.
Warning: be sure to use the EPEL repository to solve ruby dependencies. Read the step 2 of this old article.
tar xvfz CentOS-6.4-opennebula-4.0.1-1.tar.gz cd opennebula-4.0.1-1 yum localinstall opennebula-common-4.0.1-1.x86_64.rpm yum localinstall opennebula-ruby-4.0.1-1.x86_64.rpm yum localinstall opennebula-4.0.1-1.x86_64.rpm yum localinstall opennebula-sunstone-4.0.1-1.x86_64.rpm yum localinstall opennebula-server-4.0.1-1.x86_64.rpm
Note: VNC Service (novnc) is now installed with opennebula-sunstone package, in previous versions you had to install it with a script called install_novnc.sh
Ok. Let’s start the opennebula and opennebula-sunstone services.
cd /usr/share/one # service opennebula start Starting OpenNebula daemon: [ OK ] #service opennebula-sunstone start Starting Sunstone Server daemon: VNC proxy started sunstone-server started [ OK ]
If you want Sunstone to listen in a different IP address than 127.0.0.1 edit the :host: directive in the /etc/one/sunstone-server.conf and add an iptables rule if your firewall is running (also remember to save that rule).
iptables -I INPUT -p tcp --dport 9869 -m state --state=NEW,ESTABLISHED,RELATED -j ACCEPT # service iptables save iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
Try to open in a browser the Sunstone GUI: http://x.x.x.x:9869 (where x.x.x.x is the ip address configured in /etc/one/sunstone-server.conf) and remember that the oneadmin password is the random string inside the /var/lib/one/.one/one_auth file.
The new Sunstone interface looks awesome! In the next days I’ll try the new interface creating a new host.
Read this post if you want to configure a OpenNebula system with KVM and Openvswitch.