Internet access on virtual box

Discussions related to using VirtualBox on Windows hosts.
Post Reply
pdk
Posts: 20
Joined: 26. Jan 2013, 14:31

Internet access on virtual box

Post by pdk »

Hi ,

I am using the linux VB on windows host, in my work laptop, where it was configured to use the eth0 on LAN connection. I am trying to configure to use the same on my home where I am accessing the internet through the wireless lan. ( This is because my vpn on linux needs the internet access)

Could you please help me with this..

pdk
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: Internet access on virtual box

Post by noteirak »

Not really clear what your issue is to be honest. Unless you clarify, I can only answer this :

- Reconfigure the VM to use the Wifi NIC instead of your LAN NIC
OR
- Use NAT mode instead of Bridged (if you are using Bridged?)
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
pdk
Posts: 20
Joined: 26. Jan 2013, 14:31

Re: Internet access on virtual box

Post by pdk »

Just changed the Bridged ( it was configured to) to NAT and worked :D . thanks a lot

Any simple explanation about the diff b/w Bridged and NAT ? I know basic n/wing ..
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: Internet access on virtual box

Post by noteirak »

Bridged is using a filter on the NIC at layer 2 to capture the traffic to/from the guest.
NAT is an emulated network in memory of the VM process.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
pdk
Posts: 20
Joined: 26. Jan 2013, 14:31

Re: Internet access on virtual box

Post by pdk »

Thanks a lot for the clarification :) .

But I donot understand, why it started working when i switched from Bridge to NAT, forgive me for my poor understanding on networking concepts :?
Both should have routed the packets to my VM ?
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: Internet access on virtual box

Post by noteirak »

If you use Bridge, you must give it an interface to Bridge to, but you do not use the same interface at your different locations, so at one place, it is connected, at the other, it is not.
So if the interface is not connected, it is also not connected for the VM.

NAT comes from the Virtualbox process, and is handled by the host. Your host is responsible for the networking stack, and so it doesn't matter which interface is connected.
As long as one is, and there is some network, it will work.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply