I'm trying to have 3 VirtualBox VMs all running at the same time on one host (Windows host, Ubuntu guest) so I can test running clusters of various services.
Problem is, I can't get the networking configuration of the VirtualBox VMs right.
I need: 1) All three guests can access the internet 2) All three guests can access the host separately, and the host can access all three guests separately (ie. each host has their own unique IP, as if they were completely independent servers)
I can't get this working. I'm trying with two network adapters on each box, one NAT (for the internet access) and the other Host-only network (for communication with host). I sort of got this working; although it's hit or mess.. sometimes when the guests boot up, they refuse to activate one of the two connections, getting stuck on the "A start job is running for Raise network interfaces" line in the boot, then one of the interfaces doesn't start. When it does work, however, all three guests end up with the exact same IP address on both interfaces. And yes, I checked--they do have different MAC addresses.
How do I fix this and have the three guests consistently succeed in setting up their networks, and have all three with their own IPs, while still ensuring all three guests can access the internet?