Page 1 of 1
Internal networking and internet access
Posted: 6. Apr 2009, 20:14
by bGamla
Hi
I have 3 VMs (2x ubuntu and windows xp), configured o use same internal network. It works, no problem with communication between VMs. What i have to do to get internet on all VMs ? I want to get internet access by setting a gate and DNS servers in each VMs but, is it possible? or i have to add to all VMs second network card configured as NAT?
or there is other way to do it?
Re: Internal networking and internet access
Posted: 6. Apr 2009, 20:47
by vbox4me2
Read the manual, Host interface networking.
Re: Internal networking and internet access
Posted: 6. Apr 2009, 21:42
by jhowk
vbox4me2 wrote:Read the manual, Host interface networking.
Host interface? If your referring to host-only, that won't completely get them what they want. If you're referring to bridged networking it will...

.
For the orginal poster:
Take a look at the virtual networking section of the manual. There's multiple ways to solve it, but as usual the answer is "it depends". You don't give enough information to point you in the right direction.
Re: Internal networking and internet access
Posted: 6. Apr 2009, 22:02
by Sasquatch
jhowk wrote:vbox4me2 wrote:Read the manual, Host interface networking.
Host interface? If your referring to host-only, that won't completely get them what they want. If you're referring to bridged networking it will...

.
It's called Host Interface in versions before 2.2. The name changed in 2.2 because they introduced Host-Only through a virtual NIC.
bGamla wrote:Hi
I have 3 VMs (2x ubuntu and windows xp), configured o use same internal network. It works, no problem with communication between VMs. What i have to do to get internet on all VMs ? I want to get internet access by setting a gate and DNS servers in each VMs but, is it possible? or i have to add to all VMs second network card configured as NAT?
or there is other way to do it?
You can do a few things. One is change the Internal networking to Host Interface (or Bridge as it will be called in 2.2) like vbox4me2 said.
You can also do your suggestion and add a second NIC to all of the VMs with NAT options. Windows might not like that and bitch about duplicate name or IP address on the network. I'm saying
MIGHT, as I haven't tested this and with the two XP VMs I have, both with NAT, HIF and Internal Networking (connected to each other), there is no such issue. Just don't be supprised if you get a message like that.
You can also let one VM act as a router for the other VMs. The downside to this is that the router VM needs to be up for the other VMs to have internet.
Re: Internal networking and internet access
Posted: 6. Apr 2009, 22:44
by jhowk
Sasquatch wrote:
It's called Host Interface in versions before 2.2. The name changed in 2.2 because they introduced Host-Only through a virtual NIC.
I never liked that term as is can be very ambiguous. There always appears to be multiple options that make use of the "host interface" (NAT, bridging). I'm glad that in 2.2 the various network choices are more accurately named.
Re: Internal networking and internet access
Posted: 7. Apr 2009, 20:08
by bGamla
i want to make that network between different VMs because i have now networking on my high school, and i want to make 5 or 6 VMs with different system to learn something. and internal networking is the best for me, i can configure different IP adresses for each VM, different net mask, etc. The problem is only internet access. I thought that can be solved by setting right gate in network configuration or something like that. Using host interface and setting a bridge is a bit complicated and im not happy about that.
I think, i will make new VM with 2 network card's, NAT and internal network to act as router. That would be the best solution i think.
Re: Internal networking and internet access
Posted: 7. Apr 2009, 20:27
by Sasquatch
You can add a second NIC with NAT as you suggested yourself to one VM and make it router, or just all of them that needs internet. It won't hurt them.