Well, Eucalyptus does not come with Ubuntu any more from version 11.10. Why? Indeed there is no reason, all we can say, this the benefit of being open, you are free to make your own choice
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
server 192.168.1.2
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!
tada!!!

hey man, came across this post while searching for something Eucalyptus related and thought I’d let you know that I’ve got a Chef cookbook for automating this install process at https://github.com/natlownes/eucalyptus-cookbook .
hello Nat. thanks for sharing. and that reminds me, also wrote a basic starter scrip for eucalyptus about a month ago. https://github.com/mdshaonimran/eucastart
When i type in “sudo euca_conf –register-cluster cluster1 192.168.1.2″, i get an error saying “ERROR: you need to be on the CLC host and the CLC needs to be running”
please check that, if eucalyptus-cc and eucalyptus-cloud is running or not. that’s a very common error when those are not in running state
“start eucalyptus-clc” gave Job already running. I even stopped and started it, and it gave the same. !
try this one, “sudo service eucalyptus-cc start CLEAN=1″ on CC
when starting an instance it stay in pending state and doesn’t go to the running state i wander why that and how can i solve such problem?
this normally happens because of not having enough resource available. check the nc.log, it should give you something.
Thanks Alot sir for your reply but i really need help with this.
I have enough resouces in my cluster controller when running euca-descripe-avialable-zones verbose i’m getting the following
pitech@cloud-master-node:~$ euca-describe-availability-zones verbose
AVAILABILITYZONE cluster1 192.168.1.13
AVAILABILITYZONE |- vm types free / max cpu ram disk
AVAILABILITYZONE |- m1.small 0002 / 0002 1 192 2
AVAILABILITYZONE |- c1.medium 0002 / 0002 1 256 5
AVAILABILITYZONE |- m1.large 0001 / 0001 2 512 10
AVAILABILITYZONE |- m1.xlarge 0001 / 0001 2 1024 20
AVAILABILITYZONE |- c1.xlarge 0000 / 0000 4 2048 20
hello ibrahim.
If you have the resources available, that means the nc is talking with cc correctly. At this point, you should try restarting both nc and cc (not physical restart) and try starting a new instance and check the live nc.log.
This can be a libvirt error too.
and also to be on the safe side, make sure that you have VT support on nc. try “kvm-ok”
hello Shaon,
I’m now running instances but the problem is that i can not connected to the machines also when i run ping it replys with Network Destination Host Unreachable
So what cai i do i tried to check the iptables for the nc and cc but i couldnot solve the problem knowing that the machine state now is running and it assigned a public ip and also private one, the public ip is in the same range of my network also i tried to connect from the cloud frond end and also i couldn’t
Thanks and waiting for your response
you have to set icmp rules to enable ping.
detail: http://open.eucalyptus.com/wiki/Euca2oolsNetworkingSecurity_v1.3
hello Shaon,
I have every thing running now but in case that every thing is installed in the front enn machine (CC,SC,NC) . but when i run the nc in another machine rather than the front end machine i found that when running an instance it still pending and when seeing nc logs in the nc machine i found that it always telling
( May 15 13:42:14 2012][012481][EUCADEBUG ] doDescribeInstances() invoked )
which means that there is no request received from the CC to run an instances.
Also in the CC logs in the front end i got the following always
( DEBUG: requested URI http://192.168.1.48:8775/axis2/services/EucalyptusNC
[Tue May 15 13:38:11 2012][027912][EUCADEBUG ] ncClientCall(ncDescribeInstances): ppid=7351 client calling ‘ncDescribeInstances’
[Tue May 15 13:38:12 2012][027912][EUCADEBUG ] ncClientCall(ncDescribeInstances): ppid=7351 done calling ‘ncDescribeInstances’ with exit code ’0′
[Tue May 15 13:38:12 2012][007351][EUCADEBUG ] ncClientCall(ncDescribeInstances): done clientrc=0 opFail=0
[Tue May 15 13:38:12 2012][007351][EUCADEBUG ] refresh_instances(): node 192.168.1.48 idle since 1337081719: (173/300) seconds
[Tue May 15 13:38:12 2012][007351][EUCADEBUG ] refresh_instances(): done
[Tue May 15 13:38:12 2012][007351][EUCAWARN ] vnetAttachTunnels(): could enable stp on bridge br0
[Tue May 15 13:38:12 2012][007351][EUCADEBUG ] monitor_thread(): done )
Knowing that the NC machine Ip is 192.168.1.48.
Is there any advices for that ?
Thanks and looking forward to your quick response
Hello.
Your log seems okay to me. can you please check if you have enough space on you NC (df -h) and also it may sometimes take time for larger images. another thing, if those are okay, please try reuploading and re-registering the kernel once again.
When i run this below cammand
apt-get install eucalyptus-cloud eucalyptus-cc eucalyptus-sc eucalyptus-walrus
this type of erros are occured
E: Unable to locate package eucalyptus-cloud
E: Unable to locate package eucalyptus-cc
E: Unable to locate package eucalyptus-walrus
E: Unable to locate package eucalyptus-sc
any solutions for this?
Thanks for taking time to answer for this….
Please follow the latest documentation http://www.eucalyptus.com/eucalyptus-cloud/documentation.
hi shaon
I want to install eucalyptus such az you wrot on the top of page . wen I want to regisrer cluster, storage controller and walruse it take me an error !!!!(failed to sync keys with 192.168.1.2)
I dont no wat is the problem , PLS tell me how can I solve this problem.
Hello Simin.
If it’s not 2.0.x version, please follow the latest documentation on the official website.
Thanks