1

I want to setup a network for several VMs in VirtualBox which will satisfy the following conditions:

  • Each VM must be reachable from the Host and have a fixed IP

  • Each VM must reach host with a fixed IP

  • Each VM must reach internet

  • This setup must work regardless of how the Host access internet (it's a laptop, sometimes is on cable, sometimes in different WiFi networks).

I've tried bridged interfaces, but then the VMs addresses will be given by the Host's network, and in some WiFi setups will keep changing constantly, and that will break the setup.

Any suggestions on how to configure this?

  • Suggestions: Create two interfaces in each VM. One 'host-only interface' for talking to host and one 'NAT intreface' for Internet in VM. Two interfaces must be in different subnet. – Biswapriyo Dec 24 '17 at 15:37
  • How can that be done? I can only setup one interface in VBox, or am I missing something? – lfagundes Dec 25 '17 at 12:00
  • See this video and this answer. – Biswapriyo Dec 25 '17 at 15:56
  • Ok, then write your answer with details as possible, with network configurations, screenshots, which steps you've done etc. Also add my provided two links. I'll then delete the comments to keep it clean. – Biswapriyo Dec 27 '17 at 10:45
  • Ok. One more thing (I'll add to the question). I just realized that the host must also be accessible from the guests. Any idea on how to do that? – lfagundes Dec 27 '17 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.