OpenVZ Forum


Home » General » Support » download problem [APT / WGET]
download problem [APT / WGET] [message #48964] Mon, 28 January 2013 21:13 Go to next message
hplodur is currently offline  hplodur
Messages: 2
Registered: January 2013
Location: Poland
Junior Member
Good afternoon,

I've recently started to play with OpenVZ on Oracle Linux [RHEL6]. I've created 5 zones. All zones are able to ping host outside of my home network:

root@db1:~# ping google.com
PING google.com (74.125.136.100) 56(84) bytes of data.
64 bytes from ea-in-f100.1e100.net (74.125.136.100): icmp_req=1 ttl=48 time=52.5 ms
64 bytes from ea-in-f100.1e100.net (74.125.136.100): icmp_req=2 ttl=48 time=42.7 ms
64 bytes from ea-in-f100.1e100.net (74.125.136.100): icmp_req=3 ttl=48 time=45.2 ms
64 bytes from ea-in-f100.1e100.net (74.125.136.100): icmp_req=4 ttl=48 time=42.3 ms

but when I try to download something using APT or WGET it is hanging:

root@db1:/# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages will be upgraded:
apache2 apache2-doc apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common bind9 bind9-host bind9utils gnupg gpgv libbind9-60 libcups2 libdns69 libisc62
libisccc60 libisccfg62 liblwres60 libperl5.10 libxml2 perl perl-base perl-modules
23 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.9 MB of archives.
After this operation, 139 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
perl-modules perl libperl5.10 perl-base gpgv gnupg libxml2 bind9 bind9-host libisc62 libdns69 libisccc60 libisccfg62 liblwres60 bind9utils libbind9-60 apache2
apache2-mpm-prefork apache2.2-common apache2.2-bin apache2-utils apache2-doc libcups2
Install these packages without verification [y/N]? Y
Get:1 <here should be link to securitydotdebiandotorg> squeeze/updates/main perl-modules all 5.10.1-17squeeze4 [3491 kB]
Get:2 <here should be link to securitydotdebiandotorg> squeeze/updates/main perl-modules all 5.10.1-17squeeze4 [3491 kB]
Get:3 <here should be link to securitydotdebiandotorg> squeeze/updates/main perl-modules all 5.10.1-17squeeze4 [3491 kB]
0% [3 perl-modules 12.8 kB/3491 kB 0%]^C

root@db1:/# wget <here should bi link to mongodb pkg download>
--2013-01-29 01:04:55-- <here should bi link to mongodb pkg download>
Resolving downloads-distro.mongodb.org... 23.20.48.204
Connecting to downloads-distro.mongodb.org|23.20.48.204|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50612478 (48M) [application/x-troff-man]
Saving to: `mongodb-10gen_2.2.2_i386.deb.1'

0% [ ] 1,169 --.-K/s eta 12d 9h ^C


My configuration is simple HN with Oracle Enterprise Linux 6:

Linux ibm-oel6 2.6.32-042stab072.10 #1 SMP Wed Jan 16 18:54:05 MSK 2013 x86_64 x86_64 x86_64 GNU/Linux

eth0 Link encap:Ethernet HWaddr 00:14:5E:7F:44:68
inet addr:10.0.10.5 Bcast:10.0.10.255 Mask:255.255.255.0
inet6 addr: fe80::214:5eff:fe7f:4468/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47983 errors:0 dropped:0 overruns:0 frame:0
TX packets:26643 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:58802871 (56.0 MiB) TX bytes:2208263 (2.1 MiB)
Interrupt:16

eth1 Link encap:Ethernet HWaddr 00:14:5E:7F:44:69
inet addr:10.0.10.6 Bcast:10.0.10.255 Mask:255.255.255.0
inet6 addr: fe80::214:5eff:fe7f:4469/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1301 errors:0 dropped:0 overruns:0 frame:0
TX packets:275 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:142815 (139.4 KiB) TX bytes:39362 (38.4 KiB)
Interrupt:16

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

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: fe80::1/128 Scope:Link
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:273 errors:0 dropped:0 overruns:0 frame:0
TX packets:149 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:32247 (31.4 KiB) TX bytes:29747 (29.0 KiB)

Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all -- 10.0.10.0/25 anywhere to:10.0.10.5
SNAT all -- 10.0.10.0/25 anywhere to:10.0.10.6

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

[root@ibm-oel6 /]# ip route list table all
10.0.10.210 dev venet0 scope link
10.0.10.0/24 dev eth0 proto kernel scope link src 10.0.10.5
10.0.10.0/24 dev eth1 proto kernel scope link src 10.0.10.6
169.254.0.0/16 dev eth0 scope link metric 1002
169.254.0.0/16 dev eth1 scope link metric 1003
default via 10.0.10.1 dev eth1
local 10.0.10.6 dev eth1 table local proto kernel scope host src 10.0.10.6
broadcast 127.255.255.255 dev lo table local proto kernel scope link src 127.0.0.1
local 10.0.10.5 dev eth0 table local proto kernel scope host src 10.0.10.5
broadcast 10.0.10.0 dev eth0 table local proto kernel scope link src 10.0.10.5
broadcast 10.0.10.0 dev eth1 table local proto kernel scope link src 10.0.10.6
broadcast 127.0.0.0 dev lo table local proto kernel scope link src 127.0.0.1
broadcast 10.0.10.255 dev eth0 table local proto kernel scope link src 10.0.10.5
broadcast 10.0.10.255 dev eth1 table local proto kernel scope link src 10.0.10.6
local 127.0.0.1 dev lo table local proto kernel scope host src 127.0.0.1
local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1
unreachable ::/96 dev lo metric 1024 error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable ::ffff:0.0.0.0/96 dev lo metric 1024 error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 2002:a00::/24 dev lo metric 1024 error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 2002:7f00::/24 dev lo metric 1024 error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 2002:a9fe::/32 dev lo metric 1024 error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 2002:ac10::/28 dev lo metric 1024 error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 2002:c0a8::/32 dev lo metric 1024 error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 2002:e000::/19 dev lo metric 1024 error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 3ffe:ffff::/32 dev lo metric 1024 error -101 mtu 16436 advmss 16376 hoplimit 4294967295
fe80::1 dev venet0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 4294967295
fe80::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 4294967295
fe80::/64 dev eth1 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 4294967295
fe80::/64 dev venet0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 4294967295
unreachable default dev lo table unspec proto kernel metric -1 error -101 hoplimit 255
local ::1 via :: dev lo table local proto none metric 0 mtu 16436 advmss 16376 hoplimit 4294967295
local fe80:: via :: dev lo table local proto none metric 0 mtu 16436 advmss 16376 hoplimit 4294967295
local fe80:: via :: dev lo table local proto none metric 0 mtu 16436 advmss 16376 hoplimit 4294967295
local fe80::1 via :: dev lo table local proto none metric 0 mtu 16436 advmss 16376 hoplimit 4294967295
local fe80::214:5eff:fe7f:4468 via :: dev lo table local proto none metric 0 mtu 16436 advmss 16376 hoplimit 4294967295
local fe80::214:5eff:fe7f:4469 via :: dev lo table local proto none metric 0 mtu 16436 advmss 16376 hoplimit 4294967295
ff00::/8 dev eth0 table local metric 256 mtu 1500 advmss 1440 hoplimit 4294967295
ff00::/8 dev eth1 table local metric 256 mtu 1500 advmss 1440 hoplimit 4294967295
ff00::/8 dev venet0 table local metric 256 mtu 1500 advmss 1440 hoplimit 4294967295
unreachable default dev lo table unspec proto kernel metric -1 error -101 hoplimit 255


Where VZ are running Debian 6 with static IP:

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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:400 (400.0 B) TX bytes:400 (400.0 B)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.2 P-t-P:127.0.0.2 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST
...

Re: download problem [APT / WGET] [message #49750 is a reply to message #48964] Tue, 11 June 2013 17:47 Go to previous message
hplodur is currently offline  hplodur
Messages: 2
Registered: January 2013
Location: Poland
Junior Member
After changing from NAT to vnic everything is working as a charm.
Previous Topic: Upgrade OpenVZ Debian Guest OS from Squeeze to Wheezy
Next Topic: kmemsize limit needs to be higher
Goto Forum:
  


Current Time: Tue Jun 18 11:18:24 GMT 2024

Total time taken to generate the page: 0.03760 seconds