What is best networking setup?

This is for discussing general topics about how to use VirtualBox.
Post Reply
tdudgeon
Posts: 1
Joined: 2. Nov 2009, 13:28
Primary OS: Fedora other
VBox Version: OSE Fedora
Guest OSses: Linux, Windows

What is best networking setup?

Post by tdudgeon »

I'm wanting to use VirtualBox to set up a database testing environment. I have a guest OS (fedora) on which I have Oracle and MySQL databases running.
I want to be able to access these from the host OS so that I can simulate an environment where the database server is running on a different machine on the network.
I'm not experienced with the VirtualBox networking, so I'm not sure what the best approach is. Which of the different networking modes would be best, and are there any tips for getting this working?

Any help greatly appreciated.

Tim
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: What is best networking setup?

Post by Sasquatch »

If the connections are only to be made by the Host, so you only use Host <> Guest communications, use Host-Only. If other machines on your network need to access the databases or other resources on the VM, use Bridged. You do need a router or something else to separate the network from the internet.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: What is best networking setup?

Post by mpack »

If the guest is running a server application and the host needs access then you have two choices: "Host Only" and "Bridged". The latter gives the guest access to the hosts external network too, eg. the internet or your home/business network if you have one. If you don't want that then "Host Only" is the way to go.
Post Reply