Virtual Machine can access internal network but not the internet
Solution 1
The problem was that my company uses a proxy server and I had to define it in the virtual machine. Thanks for the help though.
Solution 2
I also had this sort of problem. But In my case, Ubuntu 11.10 was on VirtualBox on Windows 7 Enterprise, and tightly secured corporate network. But the issue, I think, was on host side.
What I did, is as follows:
1. On VirtualBox's Network setting, choose "NAT", and check "Cable connected"
2. On host machine's network adapter settings, re-check that "VirtualBox Host-Only Network" has DHCP, all other settings are set to automatic.
3. On host machine's own "Local Area Connection", went to "Properties">>"Sharing", and check "Allow other network users ...". And "OK"
4. On virtual machine, Disconnect once by "Uncheck"ing "Enable Networking", then "check" again.
Bingo!, then Internet was working fine.
Solution 3
Set your Virtual machine to use NAT, I bet that takes care of your problem.
mmtauqir
Updated on July 05, 2022Comments
-
mmtauqir almost 2 years
I am on a company computer with Windows7 installed on it. I installed VirtualBox on it too and installed Ubuntu on this virtual machine.
Now from inside the virtual machine (Ubuntu), I can access the company's internal websites and I receive replies to my pings to the DNS, gateway, and DHCP servers but I still cannot ping anything outside or access the internet from the web browser.
My configuration is as follows:
- On the host machine, there is one main ethernet adapter and one other host-adapter installed by virtual box. I have the host-adapter on default settings.
- On my guest machine, I only have one ethernet adapter set to default.
Any help is highly appreciated. I have tried just about everything I could think of. Thanks.