Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am currently using VirtualBox 4.1.8 on Windows 7 host if it matters ;)

I want to connect 2 (or more) virtual machines together AND give them the access to Internet (so that I can get the packages etc.) So far I have used internetworking option to allow the connection of machines but now I them also to connect to the web.

I have already added the VirtualBox' DHCP server to this network but I think somewhere in there I would have to configure gateway/DNS settings.

How can I accomplish that ?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The easiest setup would be to use the bridged nic on all the vms so as to connect all your vms to the internet router, just like your physical machines.

If you don't like that option, then you need to have a router vm through which all the vm traffic to the internet should be directed to. there are router appliances you can get from some download sites, or you can build one yourself fairly easily.

share|improve this answer

Your Answer

 
discard

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.