Eucalyptus manual installation

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 :P

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!!! :D

About these ads

24 thoughts on “Eucalyptus manual installation

  1. 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”

  2. 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?

  3. 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

  4. 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”

  5. 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

  6. 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

  7. 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.

  8. 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….

  9. 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.

  10. hello shaon.
    when i do “sudo euca_conf –register-cluster cluster1 192.168.1.2″. It gives the following error.

    “”””No credentials found, attempting local authentication
    could not connect to server: Connection refused
    Is the server running on host “localhost” (127.0.0.1) and accepting
    TCP/IP connections on port 8777?””””

    I checked that apache server is runnning on localhost and I dont have any firewall running on my system.
    Thanks!

  11. Thanks i’ll try that one. By the way on terminal i entered ” netstat -ntlp” and saw that “eucalyptus-clo” was running on port 53830. One more thing, is it ok to have CC,SC,CLC,WALRUS to be on one system and NCs on other systems?

  12. Hi,
    I came across this blog while searching about Eucalyptus 2.0.2. I have cloud in a box set up on debian based OS. All services are running fine, but when I run this, my output is
    euca-describe-availability-zones verbose
    AVAILABILITYZONE cluster-name 10.212.8.121
    AVAILABILITYZONE |- vm types free / max cpu ram disk
    AVAILABILITYZONE |- m1.small 0000 / 0000 1 128 2
    AVAILABILITYZONE |- c1.medium 0000 / 0000 1 256 5
    AVAILABILITYZONE |- m1.large 0000 / 0000 2 512 10
    AVAILABILITYZONE |- m1.xlarge 0000 / 0000 2 1024 20
    AVAILABILITYZONE |- c1.xlarge 0000 / 0000 4 2048 20
    I tried deregistering and then again registering node, but the output is same. Can you help?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s