same host-only IP address for different hosts

This is for discussing general topics about how to use VirtualBox.
Post Reply
stevenlc
Posts: 2
Joined: 26. Apr 2012, 19:22

same host-only IP address for different hosts

Post by stevenlc »

I currently have a VM pair configuration where the first host has a statically defined IP address (192.168.56.101) and the second host has another (192.168.56.102). The two hosts communicate via the 192.168.56.1 host-only interface (vboxnet0). I want to deploy another similar configuration on the same host machine. Is there any way to do this? Basically, the requirement is that each VM keep its statically defined IP address and multiple instances of this VM pair run at the same time in the same host. Here are a few ideas I've thought of:

1. cloning the machines and running VirtualBox as another user
2. creating another interface with the same iPv4 address (is this even possible?)
3. installing a separate VirtualBox installation in the same host (how do you do this on a Linux host?)

Would any of these ideas work?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: same host-only IP address for different hosts

Post by Perryg »

Assuming that you are mixing host and guest up in your description and you really mean guests. You can add another host-only adapter in the network section of the VirtualBox preferences to be able to have 2 separate host-only LANs.
Post Reply