Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
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 '11 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 '11 at 20:42
add comment

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.