S
S
Sergey Brovko2016-03-15 12:18:03
OpenVZ
Sergey Brovko, 2016-03-15 12:18:03

How to make a local network between virtual machines?

Guys, tell me about the topic of the question .. There is a Gentoo server on which virtual machines are raised and run on OpenVZ (not proxmox), each virtual machine has its own IP accessible from the outside (white), but I would like to make a local network between virtual machines (I want share a couple of services inside the local area, so as not to shine for everyone).
How many manuals I found - everything is either not right, or even superficial, that nothing is clear.
On all virtual machines, venet is used as a network interface, which is assigned a white IP.
PS I ask you not to ask why such a system and virtualization - I got this, I have to support it.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
Puma Thailand, 2016-03-15
@cyber01

Well, just add gray IPs to the interfaces and you won't shine anything.

P
Platon Platonovich, 2016-03-15
@ISEETHESTARS

There are only dances with a tambourine.
Call the shaman.

V
Vladimir, 2016-03-15
@MechanID

smoke the documentation on OpenVZ and openvswitch
the task is to make a virtual switch in additional network networks, and connect it all.

A
afiskon, 2016-03-16
@afiskon

If the machines have white IPs, then they are connected to a router that allows them to access the Internet, via a bridge or something else. That's where you need to set up exactly the same way as you would do for conventional machines. If you have made a local network and need to limit which containers see what (make them like a virtual LAN), use the usual netfilter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question