I'm relatively new to VirtualBox, and still relatively new to Linux. I'm trying to setup my ideal Web development environment on my laptop using VirtualBox 2.2 on my Ubuntu 8.04 Desktop (32-bit) host. My host is where I do my coding and where various application code lives. I'm using guest VMs (usually Ubuntu 8.04 Server) to test application code various Web server and database configurations.
So, here's what I'd like to be able to do:
1. Connect to any guest VM from host (e.g., to browse to VM Web servers to test Web apps).
2. Guest VMs connect to one another (e.g., Web server on one VM connecting to a database server on another VM).
3. Host and all guests need to connect to the Internet (for OS updates, downloads, etc.).
I've spent quite a bit of time reading up on VirtualBox networking and Linux (Ubuntu) network configurations, and I can achieve all of the above in a couple ways, but what I'm not sure there's a way to have the host always access the guest VMs on consistent (static) IPs, and have it work on any network that my laptop connects to.
After trying the bridged networking option, I tried using two adapters on each guest -- NAT for connecting to the outside world (and also back to host) and Internal for guest VM to guest VM communication (with static IPs) -- but this model does not allow my host to ping the guest VMs.
Should I just give up this quest and choose static guest IPs that will work on *most* networks, with bridged networking, or is there a "silver bullet" to have my cake and eat it too?
Thanks!
Jamie