Anyway, but that doesn’t mean Eucalyptus cannot be used with ubuntu anymore, that’s absurd, isn’t it😛
Installation detail: Eucalyptus ver. 2.0.2, Ubuntu 11.10, Two physical machines (one with two NICs)
First we are going to setup Cluster Controller (CC). Storage Controller (SC), Cloud Controller and Walrus also going to live in the same box.
sudo apt-get install eucalyptus-cloud eucalyptus-cc eucalyptus-walrus eucalyptus-sc
now we need to install and configure ntp (Network Time Protocol) for the time sync between two machines.
sudo apt-get install ntp
we need to modify the ntp.conf for this setup, but this may not be a good idea for large scale installation.
add the following lines to ntp.conf
server 127.127.1.0 fudge 127.127.1.0 stratum 10
and restart the ntp service.
finally it’s time to register cluster, storage controller and walrus.
sudo euca_conf --register-cluster cluster1 192.168.1.2 sudo euca_conf --register-walrus 192.168.1.2 sudo euca_conf --register-sc cluster1 192.168.1.2
For Node controller we need few more packages. To be in the safe side, I installed all the recommended and suggested packages.
sudo apt-get install bridge-utils libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-openssl-x509-perl open-iscsi powernap qemu-kvm vlan aoetools eucalyptus-nc
node has to be configured with a bridge as the primary interface
auto eth0 iface eth0 inet manual auto br0 iface br0 inet static address 192.168.1.3 bridge_ports eth0 bridge_fd 9 bridge_hello 2 bridge_maxage 12 bridge_stp off
install and configure ntp by adding the following line
modify the qemu.conf file to make sure libvirt is configured to run as user “eucalyptus”
sudo vim /etc/libvirt/qemu.conf
search and set: user = “eucalyptus”
modify the libvirt.conf file
unix_sock_group = "libvirtd" unix_sock_ro_perms = "0777" unix_sock_rw_perms = "0770" auth_unix_ro = "none" auth_unix_rw = "none"
as the modification is done, so now we have to stop and start libvirt for the changes to take place and also we have to make sure the sockets belong to the correct group
sudo /etc/init.d/libvirt-bin stop sudo /etc/init.d/libvirt-bin start chown root:libvirtd /var/run/libvirt/libvirt-sock chown root:libvirtd /var/run/libvirt/libvirt-sock-ro
edit eucalyptus.conf and set private and public interface as br0
at this point the NC setup is done!
now we have to register this node from the CC like we did before
sudo euca_conf --register-nodes 192.168.1.3
and now you have your own private cloud!