Running Linux Guests While Not Connected to The Router

Discussions related to using VirtualBox on Windows hosts.
Post Reply
rexus
Posts: 3
Joined: 11. Aug 2012, 04:39

Running Linux Guests While Not Connected to The Router

Post 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
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Running Linux Guests While Not Connected to The Router

Post by noteirak »

If the host needs to communicate with the VMs, use Host-Only mode.
Else, use Internal mode.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
rexus
Posts: 3
Joined: 11. Aug 2012, 04:39

Re: Running Linux Guests While Not Connected to The Router

Post 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?
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Running Linux Guests While Not Connected to The Router

Post 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).
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply