Corporate Home Open Source Home
Syndicate content
Eucalyptus
4 replies [Last post]
mrana
Offline
Joined: 03/02/2010

Hi, I have installed Eucalyptus 1.6.1, Euca2ools 1.1 on CentOS5.4 with Xen 2.6. I have uploaded CentOS5.3 pre-packaged image. My config is one front end and one node (both Dell poweredge 850). I have a local network between the two systems with front-end connected to a ISP IP. I have config. Eucalyptus in STATIC mode.
VNET_PUBINTERFACE="eth0"
VNET_PRIVINTERFACE="eth1"
VNET_BRIDGE="xenbr0"
VNET_DHCPDAEMON="/usr/sbin/dhcpd"

mrana
Offline
Joined: 03/02/2010
Cannot SSH my instance

Contd.
VNET_MODE="STATIC"
VNET_SUBNET="192.168.226.0"
VNET_NETMASK="255.255.255.0"
VNET_BROADCAST="192.168.226.255"
VNET_ROUTER="192.168.226.1"
VNET_DNS="192.168.226.1"
VNET_MACMAP="00:15:C5:60:E9:6E=192.168.226.3 00:15:C5:60:E9:6E=192.168.226.50"
I can logon to Eucalyptus config page and ping each system without any problem. However after I have run my instance:
[root@localhost tmp]# euca-describe-instances
RESERVATION r-37BD06A2 admin default
INSTANCE i-4071087B emi-0B8A113E 192.168.226.3 192.168.226.1 running mykey 0 m1.small 2010-03-02T02:01:38.266Z cloudflow eki-889916E1 eri-2E0F190D
I cannot SSH the instance from my node : ssh -i mykey.private root@192.168.226.3 I get the message: No route to host.
Yes I have created: euca-add-keypair mykey >mykey.private

netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
xx.xx.x.160 0.0.0.0 255.255.255.248 U 0 0 0 eth0
192.168.226.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 xx.xx.x.161 0.0.0.0 UG 0 0 0 eth0

ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:15:C5:60:E9:6D
inet addr:xx.xx.x.162 Bcast:64.71.6.167 Mask:255.255.255.248
inet6 addr: fe80::215:c5ff:fe60:e96d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11525 errors:0 dropped:0 overruns:0 frame:0
TX packets:42465 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5382384 (5.1 MiB) TX bytes:2525644 (2.4 MiB)

eth1 Link encap:Ethernet HWaddr 00:15:C5:60:E9:6E
inet addr:192.168.226.1 Bcast:192.168.226.255 Mask:255.255.255.0
inet6 addr: fe80::215:c5ff:fe60:e96e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:331935 errors:0 dropped:0 overruns:0 frame:0
TX packets:378925 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:180062454 (171.7 MiB) TX bytes:150607641 (143.6 MiB)
Interrupt:21 Memory:fe6f0000-fe700000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3177794 errors:0 dropped:0 overruns:0 frame:0
TX packets:3177794 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1216233123 (1.1 GiB) TX bytes:1216233123 (1.1 GiB)

peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:19614 errors:0 dropped:0 overruns:0 frame:0
TX packets:10270 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6017076 (5.7 MiB) TX bytes:1251958 (1.1 MiB)
Interrupt:16 Memory:fe8f0000-fe900000

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

veth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

veth2 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

veth3 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

veth4 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:42465 errors:0 dropped:0 overruns:0 frame:0
TX packets:11525 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2525644 (2.4 MiB) TX bytes:5382384 (5.1 MiB)

vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

vif0.2 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

vif0.3 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

vif0.4 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1325 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:51734 (50.5 KiB)

xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:33365 errors:0 dropped:0 overruns:0 frame:0
TX packets:1266 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:931414 (909.5 KiB) TX bytes:40512 (39.5 KiB)
brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.000000000000 yes
xenbr0 8000.feffffffffff no peth0
vif0.0

iptables-save
# Generated by iptables-save v1.3.5 on Tue Mar 2 12:53:21 2010
*nat
:PREROUTING ACCEPT [1314:97127]
:POSTROUTING ACCEPT [147191:8837020]
:OUTPUT ACCEPT [153650:9305856]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Tue Mar 2 12:53:21 2010
# Generated by iptables-save v1.3.5 on Tue Mar 2 12:53:21 2010
*filter
:INPUT ACCEPT [3507981:1386892889]
:FORWARD ACCEPT [2360:1432153]
:OUTPUT ACCEPT [3545228:1352106992]
-A FORWARD -i eth1 -j ACCEPT
COMMIT
# Completed on Tue Mar 2 12:53:21 2010

[root@localhost tmp]# ps -eaf | grep dhcp
nobody 2606 1 0 Mar01 ? 00:00:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --listen-address 192.168.122.1 --except-interface lo --dhcp-range 192.168.122.2,192.168.122.254
root 29867 17228 0 13:00 pts/1 00:00:00 grep dhcp

I noticed I got two different ip addresses when i created the instance: 192.168.226.3 192.168.226.1.
...226.1 is my front end ip. Is this normal?
Thanks

graziano
Offline
Joined: 01/14/2010
Hello, your instances should

Hello,

your instances should receive only 1 IP address in SYSTEM or STATIC mode. Can you start and stop the cc with cleanstart and cleanstop? Also, you have dnsmasq running, which may interfere with the dhcp server started by eucalyptus: have you tried SYSTEM mode instead?

cheers
graziano

mrana
Offline
Joined: 03/02/2010
Cannot SSH my instance

I did try with cleanstop and cleanstart several times but with no luck. I had already tried the system mode and that did work. Wanted to try the other configurations. I am reinstalling my OS and reconfiguring Eucalyptus again as I could not see my instance from the front end anymore. Will let you know how that goes.
Thanks

graziano
Offline
Joined: 01/14/2010
Hello, you don't need to

Hello,

you don't need to reinstall the OS to reconfigure Eucalyptus.

let us know how it goes.

cheers
graziano