OpenVZ Forum


Home » Mailing lists » Users » *SOLVED* no internet inside ve
*SOLVED* no internet inside ve [message #25544] Sat, 29 December 2007 13:10 Go to next message
dny is currently offline  dny
Messages: 5
Registered: December 2007
Junior Member
From: openvz.org
hi all.

just start trying openvz.
i follow everything from the openvz wiki.

everything installed ok on latest updated centos 5.1
i can start and ping and enter and ssh into ve.

but, once inside ve, i dont have internet.
cant ping anywhere except the host.

in the wiki http://wiki.openvz.org/VE_creation
there's nowhere mention about routing or gateway.

i try to add default gateway inside ve:
$ route add default gw 172.16.1.1
SIOCADDRT: Network is unreachable


where did i go wrong?

tia.
-- 
rgds.dennyhalim.com
Mesin Cari Indonesia! http://indosearch.blogspot.com
Pasang Widgets di Web/Blog Loe! http://wiki.dennyhalim.com/mywidget
Berita Mutakhir di PDA/Ponsel Loe! m.dennyhalim.com


... they look but do not see and hear but do not listen or understand. Mat 13:13
... but that which cometh out of the mouth, this defileth a man.   Mat 15:11

[Updated on: Tue, 01 January 2008 16:40] by Moderator

Report message to a moderator

Re: no internet inside ve [message #25545 is a reply to message #25544] Sat, 29 December 2007 13:33 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

From: openvz.org
dny wrote:
> hi all.
>
> just start trying openvz.
> i follow everything from the openvz wiki.
>
> everything installed ok on latest updated centos 5.1
> i can start and ping and enter and ssh into ve.
>
> but, once inside ve, i dont have internet.
> cant ping anywhere except the host.
>   
Do you try to ping using IPs or hostnames? Is name resolving working?
Re: no internet inside ve [message #25546 is a reply to message #25545] Sat, 29 December 2007 13:54 Go to previous messageGo to next message
dny is currently offline  dny
Messages: 5
Registered: December 2007
Junior Member
From: openvz.org
ping both ip and hostname not working.
cant even ping gateway, which is also the dns server.
so, cant resolve anything.


On Dec 29, 2007 8:33 PM, Kir Kolyshkin <kir@openvz.org> wrote:
> dny wrote:
> > hi all.
> >
> > just start trying openvz.
> > i follow everything from the openvz wiki.
> >
> > everything installed ok on latest updated centos 5.1
> > i can start and ping and enter and ssh into ve.
> >
> > but, once inside ve, i dont have internet.
> > cant ping anywhere except the host.
> >
> Do you try to ping using IPs or hostnames? Is name resolving working?
-- 
rgds.dennyhalim.com
Mesin Cari Indonesia! http://indosearch.blogspot.com
Pasang Widgets di Web/Blog Loe! http://wiki.dennyhalim.com/mywidget
Berita Mutakhir di PDA/Ponsel Loe! m.dennyhalim.com


... they look but do not see and hear but do not listen or understand. Mat 13:13
... but that which cometh out of the mouth, this defileth a man.   Mat 15:11
Re: no internet inside ve [message #25548 is a reply to message #25546] Sat, 29 December 2007 14:28 Go to previous messageGo to next message
dny is currently offline  dny
Messages: 5
Registered: December 2007
Junior Member
From: openvz.org
more info:
firewall and selinux disabled.

tried other precreated templates.
tried debian, centos4, centos5.
same result.

btw. i have virtualbox installed also. does it makes any different???

any help is very much appreciated.

tia.

On Dec 29, 2007 8:54 PM, dny <mail2dny@gmail.com> wrote:
> ping both ip and hostname not working.
> cant even ping gateway, which is also the dns server.
> so, cant resolve anything.
>
>
>
-- 
rgds.dennyhalim.com
Mesin Cari Indonesia! http://indosearch.blogspot.com
Pasang Widgets di Web/Blog Loe! http://wiki.dennyhalim.com/mywidget
Berita Mutakhir di PDA/Ponsel Loe! m.dennyhalim.com


... they look but do not see and hear but do not listen or understand. Mat 13:13
... but that which cometh out of the mouth, this defileth a man.   Mat 15:11
Re: no internet inside ve [message #25550 is a reply to message #25548] Sat, 29 December 2007 16:02 Go to previous messageGo to next message
Jean-Michel Caricand is currently offline  Jean-Michel Caricand
Messages: 4
Registered: December 2007
Junior Member
From: openvz.org
Le samedi 29 décembre 2007 15:28, dny a écrit :
> more info:
> firewall and selinux disabled.
>
> tried other precreated templates.
> tried debian, centos4, centos5.
> same result.
>
> btw. i have virtualbox installed also. does it makes any different???
>
> any help is very much appreciated.
>
> tia.
>
> On Dec 29, 2007 8:54 PM, dny <mail2dny@gmail.com> wrote:
> > ping both ip and hostname not working.
> > cant even ping gateway, which is also the dns server.
> > so, cant resolve anything.

A little question : did you use VBoxManage clonevdi to create your VE ?

Cheers.
Re: no internet inside ve [message #25558 is a reply to message #25544] Sun, 30 December 2007 13:41 Go to previous messageGo to next message
dny is currently offline  dny
Messages: 5
Registered: December 2007
Junior Member
From: openvz.org
On Dec 30, 2007 4:20 PM,  <caricand@lifc.univ-fcomte.fr> wrote:
> In your virtualbox host, not virtualbox VE, do you have network ?
> Can you ping your host machine and/or outside your network ?
>
>
>

yes. off course.

i can access my router, access point, other computers, etc...
i can ping, browse, messenger, voip, bittorrent, everything.

btw. it's important to make this clear!
openvz run outside virtualbox. not inside virtualbox!
this is how i setup my system:
http://wiki.dennyhalim.com/centos-with-openvz-and-virtualbox

my computer even accessible from internet.
i setup sshd which is accessible from the whole world for my tunneling use.

but the ve is not accessible from the lan and cant access other lan too.
all pc, host and ve, everything is in same subnet.
Re: no internet inside ve [message #25562 is a reply to message #25558] Sun, 30 December 2007 15:56 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

From: openvz.org
make sure you have applied all the sysctl parameters from OpenVZ guide,
especially ip_forward.
Also make sure iptables -L confirms you have no firewall.

If it won't help, try running tcpdump in VE and then in VE0
to chech where/who traffic goes thru.

Thanks,
Kirill

dny wrote:
> On Dec 30, 2007 4:20 PM,  <caricand@lifc.univ-fcomte.fr> wrote:
> 
>>In your virtualbox host, not virtualbox VE, do you have network ?
>>Can you ping your host machine and/or outside your network ?
>>
>>
>>
> 
> 
> yes. off course.
> 
> i can access my router, access point, other computers, etc...
> i can ping, browse, messenger, voip, bittorrent, everything.
> 
> btw. it's important to make this clear!
> openvz run outside virtualbox. not inside virtualbox!
> this is how i setup my system:
> http://wiki.dennyhalim.com/centos-with-openvz-and-virtualbox
> 
> my computer even accessible from internet.
> i setup sshd which is accessible from the whole world for my tunneling use.
> 
> but the ve is not accessible from the lan and cant access other lan too.
> all pc, host and ve, everything is in same subnet.
Re: no internet inside ve [message #25563 is a reply to message #25562] Sun, 30 December 2007 16:21 Go to previous message
dny is currently offline  dny
Messages: 5
Registered: December 2007
Junior Member
From: openvz.org
On Dec 30, 2007 10:56 PM, Kirill Korotaev <dev@sw.ru> wrote:
> make sure you have applied all the sysctl parameters from OpenVZ guide,
> especially ip_forward.
> Also make sure iptables -L confirms you have no firewall.
>
> If it won't help, try running tcpdump in VE and then in VE0
> to chech where/who traffic goes thru.
>
> Thanks,
> Kirill
>
>

GREAT!
it works now!
thanks a lot!

i know i edit that file before.
just have forgot to double check it...

thank you all!

-- 
rgds.dennyhalim.com
Mesin Cari Indonesia! http://indosearch.blogspot.com
Pasang Widgets di Web/Blog Loe! http://wiki.dennyhalim.com/mywidget
Berita Mutakhir di PDA/Ponsel Loe! m.dennyhalim.com

... they look but do not see and hear but do not listen or understand. Mat 13:13
... but that which cometh out of the mouth, this defileth a man.   Mat 15:11
Previous Topic: vzyum and Fedora 7+, Python 2.5 workaround anyone?
Next Topic: a simple utility to execute something on all VEs
Goto Forum:
  


Current Time: Mon Jan 21 23:10:51 GMT 2019