Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th December 2011, 02:39
zinnium zinnium is offline
Junior Member
 
Join Date: Nov 2011
Posts: 25
Thanks: 1
Thanked 0 Times in 0 Posts
Default OpenVZ howto network issue

I am using the "Installing And Using OpenVZ On Debian Squeeze (AMD64)" by Falko.

The install guide worked 100% and I am only having the trouble trying to get my networking setup.

I have set all 5 IPs and my nameservers up but the system will not connect out to the internet. The 5 IPs are set to the main OS and should forward to the device as well.

my /etc/network/interfaces looks as follows minus the text added

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
auto lo
iface lo inet loopback

# Auto generated venet0 interface
auto vented
iface venet0 inet static
address 127.0.0.1
netmask 255.255.255.255
broadcast 0.0.0.0
up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0
auto venet0:0
iface venet0:0 inet static
address 201.94.247.146
netmask 255.255.255.255
broadcast 0.0.0.0
gateway 192.0.2.1

auto venet0:1
iface venet0:1 inet static
address 201.94.247.147
netmask 255.255.255.255
broadcast 0.0.0.0

auto venet0:2
iface venet0:2 inet static
address 201.94.247.148
netmask 255.255.255.255
broadcast 0.0.0.0

auto venet0:3
iface venet0:3 inet static
address 201.94.247.149
netmask 255.255.255.255
broadcast 0.0.0.0

auto venet0:4
iface venet0:4 inet static
address 201.94.247.150
netmask 255.255.255.255
broadcast 0.0.0.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

The netmask is incorrect and I need to fix that. Broadcast is also incorrect.
Reply With Quote
Sponsored Links
  #2  
Old 24th December 2011, 04:01
zinnium zinnium is offline
Junior Member
 
Join Date: Nov 2011
Posts: 25
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I think this is a common problem.

I had been trying to find the answer for 4 hours now, and I keep finding users who issued a similar questions to this same issue. No one has ever answered the question though.
Reply With Quote
  #3  
Old 24th December 2011, 19:00
zinnium zinnium is offline
Junior Member
 
Join Date: Nov 2011
Posts: 25
Thanks: 1
Thanked 0 Times in 0 Posts
Default

anyone???

I am just trying to connect out.
Reply With Quote
  #4  
Old 24th December 2011, 22:51
zinnium zinnium is offline
Junior Member
 
Join Date: Nov 2011
Posts: 25
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I am still working on this:

I think the issues lay inside the /etc/vz/vz.conf file. I am doing reading on this, but here is my default /etc/vz/vz.conf that came installed when I installed openvz

## Global parameters
VIRTUOZZO=yes
LOCKDIR=/var/lib/vz/lock
DUMPDIR=/var/lib/vz/dump
VE0CPUUNITS=1000

## Logging parameters
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0
VERBOSE=0

## Disk quota parameters
DISK_QUOTA=yes
VZFASTBOOT=no

# Disable module loading. If set, vz initscript do not load any modules.
#MODULES_DISABLED=yes

# The name of the device whose IP address will be used as source IP for CT.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"


# Controls which interfaces to send ARP requests and modify APR tables on.
NEIGHBOUR_DEVS=all

## Fail if there is another machine in the network with the same IP
ERROR_ON_ARPFAIL="no"

## Template parameters
TEMPLATE=/var/lib/vz/template

## Defaults for containers
VE_ROOT=/var/lib/vz/root/$VEID
VE_PRIVATE=/var/lib/vz/private/$VEID
CONFIGFILE="basic"
DEF_OSTEMPLATE="centos-5"

## Load vzwdog module
VZWDOG="no"

## IPv4 iptables kernel modules
IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length"
## Enable IPv6
IPV6="no"

## IPv6 ip6tables kernel modules
IP6TABLES="ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT"
Reply With Quote
  #5  
Old 24th December 2011, 22:55
zinnium zinnium is offline
Junior Member
 
Join Date: Nov 2011
Posts: 25
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Whats odd is that according to everything I read, this should have worked right out of the box if I followed falko's instructions.

However there is a lot of users who have this off issue of the system failing out of the box. My issues seem to be quite common, but there is no one out there who has listed a solution.
Reply With Quote
  #6  
Old 25th December 2011, 08:06
zinnium zinnium is offline
Junior Member
 
Join Date: Nov 2011
Posts: 25
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I am rereading the openvz user guide now. http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

i do have fail2ban and ssh guard installed on the main system. However, according to what I am reading; they cause no issues.
Reply With Quote
  #7  
Old 25th December 2011, 10:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

I've never had any networking issues with OpenVZ. I see you use

Code:
# Controls which interfaces to send ARP requests and modify APR tables on.
NEIGHBOUR_DEVS=all
so normally everything should be working.

Did you ask your provider if they need a special network setup for their data centers?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 25th December 2011, 12:32
zinnium zinnium is offline
Junior Member
 
Join Date: Nov 2011
Posts: 25
Thanks: 1
Thanked 0 Times in 0 Posts
Default

@Falko,

thats exactly it... Everything says your setup is 100% proper.

i am going to uninstall fail2ban. I am wondering if thats causing it.
Reply With Quote
  #9  
Old 26th December 2011, 11:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Please let us know if you find a solution.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 27th December 2011, 21:05
wagoo wagoo is offline
Junior Member
 
Join Date: Dec 2011
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

I just encountered the same thing, and after a bit of head-scratching got things working. I suspect your problem is this:

Quote:
Originally Posted by zinnium View Post
The 5 IPs are set to the main OS and should forward to the device as well.
I also configured the spare IP I wanted to use in the host OS as a virtual eth0:X interface.. as soon as I removed it from /etc/network/interfaces and rebooted (you may not need to reboot, but I seem to recall downing an eth0:X interface took eth0 with it last time I tried)... then the container picked up that IP no problem, and networking from inside started to work.

I assumed, the host OS would do all the routing but did need to have that IP assigned to it.. but seems like that was the thing getting in the way. Hope this helps with your problem too.
Reply With Quote
The Following User Says Thank You to wagoo For This Useful Post:
zinnium (28th December 2011)
Reply

Bookmarks

Tags
openvz networking

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending mail ISPConfig 3 but not receivind catza Installation/Configuration 20 19th May 2010 13:47
Unable to connect to Mysql mbascombe Installation/Configuration 12 10th January 2010 23:46
fedora 10 perfect server network issue Turbanator HOWTO-Related Questions 2 14th February 2009 02:37
Perfect Xen 3.0 setup for Debian gurneyzap HOWTO-Related Questions 4 26th March 2006 12:30
Network issue - newbie reddogg Installation/Configuration 1 22nd January 2006 09:03


All times are GMT +2. The time now is 03:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.