Hey,

i'm doing a few tests with migrating ovz containers to lxc. Learning about 
advantages and disadvantages of both.
Here are the instructions that i use to convert the containers: 
https://pve.proxmox.com/wiki/Convert_OpenVZ_to_LXC
The main point that i struggle is to switch from venets to the eths of lxc.

Running the container with one eth0 and one ip works perfect. But with a second 
interface eth1 and a second ip there is some routing problem. The second ip is 
not pingable from outside.
I'm using precreated images from here 
https://wiki.openvz.org/Download/template/precreated (Ubuntu 12.04 and Ubuntu 
14.04)

interfaces inside the container:
auto eth0
iface eth0 inet static
        address xx.xx.xx.xx
        netmask 255.255.255.255
# --- BEGIN PVE ---
        post-up ip route add xx.xx.xx.254 dev eth0
        post-up ip route add default via xx.xx.xx.254 dev eth0
        pre-down ip route del default via xx.xx.xx.254 dev eth0
        pre-down ip route del xx.xx.xx.254 dev eth0
# --- END PVE ---
auto eth1 
iface eth1 inet static
        address xx.xx.xx.xx
        netmask 255.255.255.255
 Original templates from lxc don't have that problem. My question - is there 
any setting inside the container template that forbids the routing to eth1?

Thank you, chris
                                          
_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users

Reply via email to