Changes

Jump to: navigation, search

Migration from Linux-VServer to OpenVZ

1,199 bytes added, 12:18, 24 September 2008
Issues: more networking tips (Shorewall, routing)
== Issues ==
=== Networking === ==== Starting networking in VEs ====
The vserver-originating containers do not initialize network at all. Thus one needs to use following command to enable networking start (inside of the migrated container):
cd /etc/rcS.d
ln -s ../init.d/networking S40networking
 
==== Migrating your VServer Shorewall setup ====
 
If you had the [http://www.shorewall.net/ Shorewall firewall] running on the hardware node to route traffic to and from your guests, here are a couple of advices, provided you want a networking setup close to what you had with Vserver (i.e. running <code>vnet</code> interfaces, not <code>veth</code> ones) :
* do not use the <code>venet0</code> interface in Shorewall's configuration as the <code>vz</code> service starts after Shorewall (at least on Debian) and thus the interface does not exist when Shorewall starts. Do not use <code>detect</code> for the broadcast in <code>/etc/shorewall/interfaces</code>.
* for your VEs to be able to talk to each other, use the <code>routeback</code> option for <code>venet0</code> (and others) in <code>/etc/shorewall/interfaces</code>.
 
==== IP src from VEs ====
 
If you run a mail server in a VE, and if the hardware node has multiple network interfaces, you may have mail routing issues because of the originated IP address of the packets coming from the hardware node. Simply specify an interface in <code>/etc/vz/vz.conf</code> :
<pre>VE_ROUTE_SRC_DEV="iface_name"</pre>
=== Disk space information ===
2
edits

Navigation menu