0

I've got a host with OpenVZ installed on it with several containers.

I want to set up a virtual network between some of them but without having to use any physical devices but I'm new to OpenVZ and their wiki has no obvious solutions.

2
  • Have you read the OpenVZ Networking documentation (wiki.openvz.org/Category:Networking - Specifically wiki.openvz.org/…)? - I know the OpenVZ documentation isn't fantastic, but we expect at least a minimum of having done some research and telling us what you've tried so far (and why it didn't work) in order to help you...
    – voretaq7
    Nov 18, 2011 at 19:58
  • From that page I found wiki.openvz.org/VLAN which is what I was looking for, I really need to brush on my networking terminology...
    – Bugster
    Nov 18, 2011 at 20:42

1 Answer 1

0

Switching from VENET networking to VETH networking would be ideal for that. With VETH you add interfaces of containers to bridges (see "brctl show", "brctl add", and others). OpenVZ wiki describes how to setup VETH. It's pretty easy but don't skip any steps.

Once setup, you just create persistent bridge devices on the HN and add a single line to each container conf (/etc/vz/config/*). When containers boot they will be in the private MAC-layer networks that you like.

I used this in production for 2 years on webservers and HPC clusters. It gives you all the neccessary control. I also found VETH high performance, reliable, and safe.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .