Cloning multiple virtual machines
Problem
I want to clone multiple virtual machines belonging together. They internally communicate among themselves using their static IP addresses. Changing the network configuration per clone is not an option. On the other hand I want to connect to these machines from the outside.
+----------------------host---------------------+
| +-----------env1------------+ |
| | +---vm1.2--+ +---vm1.3--+ | |
| | | 10.0.0.2 | | 10.0.0.3 | +--+ |
| | +----------+ +----------+ | | |
| +---------------------------+ | |
| | |
| +-----------env2------------+ | |
| | +---vm2.2--+ +---vm2.3--+ | +-------+ |
| | | 10.0.0.2 | | 10.0.0.3 | +--+ magic +-eth0-+
| | +----------+ +----------+ | +--+----+ |
| +---------------------------+ | |
| | |
| +-----------env3------------+ | |
| | ... +--+ |
| +---------------------------+ |
+-----------------------------------------------+