Unable to connect to internet through virtual instance

Asked by darshan on 2012-04-16

I have successfully set up a private cloud using Ubuntu 11.04 . when I say euca-run-instances i-xxx it runs successfully . I can login into instance using ssh . Now when I try "apt-get install xxxx" ,it doesn't work since unable to connect to the internet .

Ip assigned is 10.44.120.123 (static from given pool)
and one more is assigned which is 172.xx.xx.xx something

please help .....

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu cloud-init Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Jeet (gour-jitendrasingh) said : #1

172.xx.xx.xx is your static IP for LAN and 10.44.120.123 is your VPN IP assigned to you

can you ping 8.8.8.8
??

darshan (darshan-dantkale) said : #2

8.8.8.8 doesnt work ...

about my setup :
i have setup my private cloud using UEC 11.04.
when running instance we can ping and ssh through it but when we try to access to Internet we cannot,then i go through nc.log we saw that publicIP=0.0.0.0 .we use pre-package image 9.04 (i386).

about our setup we use two machine : one contain cc,clc,walrus,sc and in another machine we install nc.
for cc machine:
eucalyptus.conf file are :
# /etc/eucalyptus/eucalyptus.conf

# Affects: All
# See: **NOTE** below
EUCALYPTUS="/"
EUCA_USER="eucalyptus"

# Affects: CLC, Walrus, SC
DISABLE_DNS="Y"
CLOUD_OPTS="-Xmx512m"

# Affects: SC
DISABLE_EBS="N"
DISABLE_ISCSI="N"

# Affects: CC, NC
# See: **NOTE** below
ENABLE_WS_SECURITY="Y"
LOGLEVEL="DEBUG"
VNET_PUBINTERFACE="eth1"
VNET_PRIVINTERFACE="eth1"
VNET_MODE="MANAGED-NOVLAN"

# Affects: CC
# See: **NOTE** below
CC_PORT="8774"
SCHEDPOLICY="ROUNDROBIN"
POWER_IDLETHRESH="300"
POWER_WAKETHRESH="300"
NC_SERVICE="axis2/services/EucalyptusNC"
VNET_DHCPDAEMON="/usr/sbin/dhcpd3"
VNET_DHCPUSER="dhcpd"
DISABLE_TUNNELLING="N"
NODES=""

# Affects: NC
NC_PORT="8775"
HYPERVISOR="kvm"
MANUAL_INSTANCES_CLEANUP=0
VNET_BRIDGE="br0"
INSTANCE_PATH="/var/lib/eucalyptus/instances/"
USE_VIRTIO_NET="0"
USE_VIRTIO_DISK="1"
USE_VIRTIO_ROOT="0"
#MAX_MEM=2048
#MAX_CORES="2"
#MAX_DISK="100"

eucalyptus.local.conf file are:
VNET_MODE="MANAGED-NOVLAN"
VNET_SUBNET="172.19.0.0"
VNET_NETMASK="255.255.0.0"
VNET_DNS="10.44.224.20 10.44.224.100"
VNET_ADDRSPERNET="32"
VNET_PUBLICIPS="10.44.120.123-10.44.120.128"

for nc node :
eucalytpus.conf file are:
# Affects: All
# See: **NOTE** below
EUCALYPTUS="/"
EUCA_USER="eucalyptus"

# Affects: CLC, Walrus, SC
DISABLE_DNS="Y"
CLOUD_OPTS="-Xmx512m"

# Affects: SC
DISABLE_EBS="N"
DISABLE_ISCSI="N"

# Affects: CC, NC
# See: **NOTE** below
ENABLE_WS_SECURITY="Y"
LOGLEVEL="DEBUG"
VNET_PUBINTERFACE="br0"
VNET_PRIVINTERFACE="br0"
VNET_MODE="MANAGED-NOVLAN"

# Affects: CC
# See: **NOTE** below
CC_PORT="8774"
SCHEDPOLICY="ROUNDROBIN"
POWER_IDLETHRESH="300"
POWER_WAKETHRESH="300"
NC_SERVICE="axis2/services/EucalyptusNC"
VNET_DHCPDAEMON="/usr/sbin/dhcpd3"
VNET_DHCPUSER="dhcpd"
DISABLE_TUNNELLING="N"
NODES=""

# Affects: NC
NC_PORT="8775"
HYPERVISOR="kvm"
MANUAL_INSTANCES_CLEANUP=0
VNET_BRIDGE="br0"
INSTANCE_PATH="/var/lib/eucalyptus/instances/"
USE_VIRTIO_NET="0"
USE_VIRTIO_DISK="1"
USE_VIRTIO_ROOT="0"
#MAX_MEM=2048
#MAX_CORES="2"
#MAX_DISK="100"

nc.log :
[EUCAINFO ] NC is looking for configuration in //etc/eucalyptus/eucalyptus.conf,//etc/eucalyptus/eucalyptus.local.conf
[EUCAINFO ] SC is looking for configuration in files (//etc/eucalyptus/eucalyptus.conf,//etc/eucalyptus/eucalyptus.local.conf)
[EUCAINFO ] euca_init_cert(): using file //var/lib/eucalyptus/keys/node-cert.pem
[EUCAINFO ] euca_init_cert(): using file //var/lib/eucalyptus/keys/node-pk.pem
[EUCADEBUG ] doInitialized() invoked
[EUCADEBUG ] system_output(): [//usr/lib/eucalyptus/euca_rootwrap //usr/share/eucalyptus/get_sys_info]
[EUCAINFO ] Using 4 cores
[EUCAINFO ] Using 1615 memory
[EUCAINFO ] looking for existing domains
[EUCAINFO ] no currently running domains to adopt
[EUCAINFO ] vnetInit(): VNET Configuration: eucahome=/, path=//var/run/eucalyptus/net, dhcpdaemon=, dhcpuser=, pubInterface=br0, privInterface=br0, bridgedev=br0, networkMode=MANAGED-NOVLAN
[EUCAINFO ] checking the integrity of instances directory (/var/lib/eucalyptus/instances/)
[EUCAINFO ] checking the integrity of the cache directory (/var/lib/eucalyptus/instances//eucalyptus/cache)
[EUCAINFO ] Maximum disk available: 88396 (under /var/lib/eucalyptus/instances/)
[EUCADEBUG ] doDescribeResource() invoked
[EUCADEBUG ] Starting monitoring thread
!
[EUCADEBUG ] doDescribeInstances() invoked

[EUCADEBUG ] doStartNetwork() invoked
[EUCAINFO ] StartNetwork(): SUCCESS return from vnetStartNetwork 0
[EUCAINFO ] StartNetwork(): done
[EUCAINFO ] doRunInstance() invoked (id=i-337A06C4 cores=1 disk=5 memory=256)
[EUCAINFO ] image=emi-37B4122D at http://10.44.120.119:8773/services/Walrus/testbucket/ubuntu.9-04.x86.img.manifest.xml
[EUCAINFO ] krnel=eki-9B5513CD at http://10.44.120.119:8773/services/Walrus/testbucket/vmlinuz-2.6.28-11-server.manifest.xml
[EUCAINFO ] rmdsk=eri-D86414B5 at http://10.44.120.119:8773/services/Walrus/testbucket/initrd.img-2.6.28-11-server.manifest.xml
[EUCAINFO ] vlan=10 priMAC=D0:0D:33:7A:06:C4 privIp=172.19.1.2
[EUCADEBUG ] state change for instance i-337A06C4: Unknown -> Staging (Pending)
[EUCAINFO ] network started for instance i-337A06C4
[EUCAINFO ] retrieving images for instance i-337A06C4 (disk limit=5120MB)...
[EUCAINFO ] verifying cached file in /var/lib/eucalyptus/instances//eucalyptus/cache/eki-9B5513CD/kernel...
[EUCAINFO ] walrus_request(): downloading /tmp/walrus-digest-2FjHQY
[EUCAINFO ] from http://10.44.120.119:8773/services/Walrus/testbucket/vmlinuz-2.6.28-11-server.manifest.xml
[EUCADEBUG ] walrus_request(): writing GET output to /tmp/walrus-digest-2FjHQY on 'Mon Apr 16 11:34:09 2012'
[EUCADEBUG ] walrus_request(): wrote 3485 bytes in 1 writes
[EUCAINFO ] walrus_request(): saved image in /tmp/walrus-digest-2FjHQY
[EUCAINFO ] vrun(): [cp -a /var/lib/eucalyptus/instances//eucalyptus/cache/eki-9B5513CD/kernel /var/lib/eucalyptus/instances//admin/i-337A06C4/kernel]
[EUCAINFO ] verifying cached file in /var/lib/eucalyptus/instances//eucalyptus/cache/eri-D86414B5/ramdisk...
[EUCAINFO ] walrus_request(): downloading /tmp/walrus-digest-2QFJKZ
[EUCAINFO ] from http://10.44.120.119:8773/services/Walrus/testbucket/initrd.img-2.6.28-11-server.manifest.xml
[EUCADEBUG ] walrus_request(): writing GET output to /tmp/walrus-digest-2QFJKZ on 'Mon Apr 16 11:34:09 2012'
[EUCADEBUG ] walrus_request(): wrote 3493 bytes in 1 writes
[EUCAINFO ] walrus_request(): saved image in /tmp/walrus-digest-2QFJKZ
[EUCAINFO ] vrun(): [cp -a /var/lib/eucalyptus/instances//eucalyptus/cache/eri-D86414B5/ramdisk /var/lib/eucalyptus/instances//admin/i-337A06C4/ramdisk]
[EUCAINFO ] verifying cached file in /var/lib/eucalyptus/instances//eucalyptus/cache/emi-37B4122D/disk...
[EUCAINFO ] walrus_request(): downloading /tmp/walrus-digest-E7ipc1
[EUCAINFO ] from http://10.44.120.119:8773/services/Walrus/testbucket/ubuntu.9-04.x86.img.manifest.xml
[EUCADEBUG ] walrus_request(): writing GET output to /tmp/walrus-digest-E7ipc1 on 'Mon Apr 16 11:34:10 2012'
[EUCADEBUG ] walrus_request(): wrote 5635 bytes in 1 writes
[EUCAINFO ] walrus_request(): saved image in /tmp/walrus-digest-E7ipc1
[EUCAINFO ] vrun(): [cp -a /var/lib/eucalyptus/instances//eucalyptus/cache/emi-37B4122D/disk /var/lib/eucalyptus/instances//admin/i-337A06C4/disk]
[EUCADEBUG ] doDescribeResource() invoked
[EUCADEBUG ] doDescribeInstances() invoked
[EUCADEBUG ] doDescribeInstances(): instanceId=i-337A06C4 publicIp=0.0.0.0 privateIp=172.19.1.2 mac=D0:0D:33:7A:06:C4 vlan=10 networkIndex=2
[EUCADEBUG ] doDescribeResource() invoked
[EUCADEBUG ] doDescribeInstances() invoked
[EUCADEBUG ] doDescribeInstances(): instanceId=i-337A06C4 publicIp=0.0.0.0 privateIp=172.19.1.2 mac=D0:0D:33:7A:06:C4 vlan=10 networkIndex=2
[Mon Apr 16 11:34:22 2012][002840][EUCAINFO ] vrun(): [//usr/lib/eucalyptus/euca_rootwrap //usr/share/eucalyptus/partition2disk /var/lib/eucalyptus/instances//admin/i-337A06C4/disk 512 3572]
[EUCADEBUG ] doDescribeResource() invoked
[EUCADEBUG ] doDescribeInstances() invoked
[EUCADEBUG ] doDescribeInstances(): instanceId=i-337A06C4 publicIp=0.0.0.0 privateIp=172.19.1.2 mac=D0:0D:33:7A:06:C4 vlan=10 networkIndex=2
[EUCAINFO ] preparing images for instance i-337A06C4...
[EUCAINFO ] adding key/tmp/sckey.nrjWdV to the root file system at /var/lib/eucalyptus/instances//admin/i-337A06C4/disk using (//usr/lib/eucalyptus/euca_rootwrap //usr/share/eucalyptus/add_key.pl //usr/lib/eucalyptus/euca_mountwrap)
[EUCAINFO ] vrun(): [//usr/lib/eucalyptus/euca_rootwrap //usr/share/eucalyptus/add_key.pl //usr/lib/eucalyptus/euca_mountwrap 32256 /var/lib/eucalyptus/instances//admin/i-337A06C4/disk /tmp/sckey.nrjWdV]
[EUCADEBUG ] system_output(): [//usr/lib/eucalyptus/euca_rootwrap //usr/share/eucalyptus/gen_kvm_libvirt_xml --ramdisk --ephemeral --basepath='/var/lib/eucalyptus/instances//admin/i-337A06C4']
[EUCAINFO ] currently running/booting: i-337A06C4
[EUCAINFO ] booting VM instance i-337A06C4
[EUCADEBUG ] state change for instance i-337A06C4: Staging -> Booting (Pending)
[EUCADEBUG ] doDescribeResource() invoked
[EUCADEBUG ] doDescribeInstances() invoked
[EUCADEBUG ] doDescribeInstances(): instanceId=i-337A06C4 publicIp=0.0.0.0 privateIp=172.19.1.2 mac=D0:0D:33:7A:06:C4 vlan=10 networkIndex=2
[EUCADEBUG ] state change for instance i-337A06C4: Booting -> Running (Extant)
[EUCADEBUG ] doDescribeInstances(): instanceId=i-337A06C4 publicIp=0.0.0.0 privateIp=172.19.1.2 mac=D0:0D:33:7A:06:C4 vlan=10 networkIndex=2

here publicIP=0.0.0.0, so is there any problem with eucalyptus setup or network.please help!!!!

Jeet (gour-jitendrasingh) said : #3

if you can not ping 8.8.8.8 you specifically have an IP connectivity problem. Run "traceroute -n 8.8.8.8" and see where it stops: if it's in your home/office, check your networking equipment. If you can reach your ISP, complain to them.

Jeet (gour-jitendrasingh) said : #4

can you browse internet ... ??? only having problem in installing packages ??

Can you help with this problem?

Provide an answer of your own, or ask darshan for more information if necessary.

To post a message you must log in.