OpenVZ Forum - RDF feed
type: channel
items: OpenVZ container cannot connect to LAN
items: Re: OpenVZ container cannot connect to LAN

OpenVZ container cannot connect to LAN
type: item
description: Hi all, I am just starting out with OpenVZ and virtualization. I have an old Pentium dual-core laptop with ~3GB of RAM and was thinking of running 2 Centos 6.7 containers on if for testing. My base operating system is Centos 6.7 32-bit and has a static IP which is: 192.168.1.40 (The whole set-up is running on my home network). I have also installed the OpenVZ Web Panel to make managing servers a bit easier for me. When I was creating my first container I have specified that it should use the IP address 192.168.1.41. I can access the container if I SSH to it from my OpenVZ host machine but not from my Fedora workstation which is also connected to the same network. The container is also not able to access the internet (nothing can be installed via yum). My aim is to have an OpenVZ server with 2 containers which I can access from anywhere in my home network. At the moment the container is set up to use venet for networking, would changing it to veth help? (removed external link) Thanks
creator: donoskaro
date: 2015-10-11T13:04:35-00:00

Re: OpenVZ container cannot connect to LAN
type: item
description: Did you allow access for the containers via iptables? Try: $ sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE $ sudo chkconfig iptables on
creator: tburazin
date: 2015-10-13T13:25:08-00:00