The DevOps Zone is brought to you in partnership with New Relic. Learn more about the common barriers to DevOps adoption so that you can come up with ways to win over the skeptics and kickstart DevOps.
In an earlier post I described networking
modes in VirtualBox. Combining those modes you'll get some kind of swiss knife in realizing somehow exotic networking modes in your VMs.
What if you want your VM that is configured for Host-Only mode access the internet?
Port forwarding using NAT is an option. But for me that sounded to complicated. I had the following requirements:
- The host should be able to access services like Apache or GlassFish on the guests (the virtual machine)
- The guests should be able to access the outside world (intranet/internet)
- The guests should be able to talk to each other using fixed IP adresses
- The host should be able to talk to the guests using fixed IP adresses
A working solution for these requirements is described in this blog article
The DevOps Zone is brought to you in partnership with New Relic. Quickly learn how to use Docker and containers in general to create packaged images for easy management, testing, and deployment of software.
Published at DZone with permission of
, DZone MVB
Opinions expressed by DZone contributors are their own.