Posts

Showing posts from June 12, 2011

Don't be a hypocrite! - One of my favorite gospel in the Holy Bible

Holy Gospel of Jesus Christ  according to Saint Matthew  6: 1-6.16 -18. Jesus said to his disciples: «Take care not to perform righteous deeds in order that people may see them; otherwise, you will have no recompense from your heavenly Father. When you give alms, do not blow a trumpet before you, as the hypocrites do in the synagogues and in the streets to win the praise of others. Amen, I say to you, they have received their reward. But when you give alms, do not let your left hand know what your right is doing, so that your almsgiving may be secret. And your Father who sees in secret will repay you. When you pray, do not be like the hypocrites, who love to stand and pray in the synagogues and on street corners so that others may see them. Amen, I say to you, they have received their reward. But when you pray, go to your inner room, close the door, and pray to your Father in secret. And your Father who sees in secret will repay you. When you fast, do not look gloomy li...

Eucalyptus - cannot find nodes

Previously, we just have bought a cool machines supposedly to be setup as Node Controllers for our cloud master machine (running Walrus Controller, Cloud Controller, Storage Controller, and Cluster Controller). The current setup we have is, SERVER1 - Cloud master running i3 with 12GB of memory SERVER2 and SERVER3 - running i7 3.0 with 16GB of memory With our setup, our ideal result must have 62 available instances to be run inside the cloud, however, due to the inconsistency we found (check this http://open.eucalyptus.com/wiki/EucalyptusKnownBugs_v1.5.2 ) with the problem with cloud master against NC's, issuing the command #> euca-describe-availability-zones verbose AVAILABILITYZONE kinten-cloud 122.2.1.4 AVAILABILITYZONE |- vm types free / max   cpu   ram  disk AVAILABILITYZONE |- m1.small 0031 / 0031   1    512    10 AVAILABILITYZONE |- c1.medium 0015 / 0015   1   1024    15 AVAILABILITYZONE |- m1...

Eucalyptus - authorizing a port

To authorize a port in Eucalyptus from the running instance, issue this command euca-authorize -P tcp -p 22 -s 0.0.0.0/0 default

IP Masquerading - To share internet connection within a private network

So I have this setup, SERVER1 - This connects to the LAN/Internet connection SERVER2 and SERVER3 is connected to SERVER1, where SERVER1 is acting their gateway. So SERVER1 is using CLASS A IP Address, using 10.0.2.45 while SERVER2 and SERVER3 is using CLASS C, having SERVER2 as 192.168.10.2 and SERVER3 as 192.168.10.3 and SERVER1 as their gateway using 192.168.10.1 IP. Server3 has 2 interfaces, one connects to the LAN and one connects to the private network of SERVER2 and SERVER3. So to achieve SERVER2 and SERVER3 must have internet connection, first in SERVER1, login as root and then check if the ip forwarding is enabled by, $> cat /proc/sys/net/ipv4/ip_forward if the result is 1, leave it behind, else, $> echo "1" > /proc/sys/net/ipv4/ip_forward then, do $> iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE I'm not going to explain fully what does the command do, you can check this by doing "man iptables". So the "...