Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create a private network between my virtualboxes (say,,, etc.) but I want them to be accessible from the host machine (local IP and also have access to the internet through the host machine.

What should I do? What kind of network should I setup on virtualbox settings as well as installed CentOS on virtualbox?

Need your help, thanks.

share|improve this question
up vote 2 down vote accepted

I would add two virtual network adapters to each guest: one configured as NAT for access to the internet and one adapter as Host-Only to be private with your host and other virtual machines. Feel free to use DHCP on both interfaces, or configure a static address as necessary.

share|improve this answer
+1 I think each VM needs 2 adapters too. – StarNamer Aug 24 '12 at 22:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.