Page 1 of 1

Running Linux Guests While Not Connected to The Router

Posted: 1. Aug 2013, 19:12
by rexus
Hi Guys,

I have a few VM configured, 1 for DNS, 2 for Oracle database on Windows 7.
They are assigned with 192.168.1.x IP addresses and connected to a router.

My questions are:
  1. If I want to disconnect from the router and pretend as If I'm bringing that laptop to other place without router or internet, what settings should I set in the virtual box manager?
    currently the networking part is set to bridged and I need the 2 VM for Oracle to be able to communicate with each other as well as with the DNS.
  2. Do I need to set my windows 7 to use a static IP address assigned with 192.168.1.x IP address also?
    When connected to the router, it is getting a dynamic IP (DHCP).
I've tried disconnecting from the network but it seems all the guest OS couldn't make connection to other guests.
Probably I'm missing something here. Please let me know if there's something that I need to change further.

Thank you,
Adhika

Re: Running Linux Guests While Not Connected to The Router

Posted: 1. Aug 2013, 19:18
by noteirak
If the host needs to communicate with the VMs, use Host-Only mode.
Else, use Internal mode.

Re: Running Linux Guests While Not Connected to The Router

Posted: 2. Aug 2013, 08:26
by rexus
noteirak wrote:If the host needs to communicate with the VMs, use Host-Only mode.
Else, use Internal mode.
Not only that I want the host to communicate with the VM but I also want the guest to be able to communicate with the DNS guest also. Would that even be possible to be done?

Re: Running Linux Guests While Not Connected to The Router

Posted: 2. Aug 2013, 09:28
by noteirak
Yes, in both modes the guests can communicate with each others. Both modes create a virtual hardware switch that plug in both VMs (if the internal network name is the same of course).
In case of host-only, it also plug the host in the virtual switch (if you link to the same host-only interface).