Page 1 of 1

No internet in terminal and not able to download packages

Posted: 20. Jan 2017, 15:04
by ash123
I have problems connecting to internet in Linux mint 18.1 serena installed in Virtualbox. I am using windows 7 as host.
I have setup network adaptor as 'Bridged Adaptor' and am able to connect when i tried using firefox.but when tried in terminal or when used synaptic package manager, it fails hinting that machine is not connected to internet. Tried the below command and still not able to connect to internet.host os is configured to resolve DNS automatically.
VBoxManage modifyvm "VMName" --natdnshostresolver1 on

Any help would be appreciated.

Re: No internet in terminal and not able to download packages

Posted: 20. Jan 2017, 15:44
by mpack
This question appears to have no relevance in "Windows Hosts". Please choose a forum which is appropriate for your question.

Moving this to Linux Guests.

Re: No internet in terminal and not able to download packages

Posted: 20. Jan 2017, 15:59
by Perryg
Since natdnshostresolver1 on only applies to VBox NAT mode there is no surprise that it has no effect when using bridged.
Do you have a router? Have you tried VBox NAT instead?

Re: No internet in terminal and not able to download packages

Posted: 25. Jan 2017, 10:23
by ash123
i am very novice to virtual box and i want to setup virtual box in bridged adapter so that i can access applications deployed in vbox from outside.I am not sure if this is possible with VBox NAT. But my real problem is that i am not able to access internet using terminal and synaptic package manager fails though i am able to connect to internet in a browser.
I am connecting to my office lan and is connected via router.
If i can achieve my req using VBox nat , i can do that and share the results.

Re: No internet in terminal and not able to download packages

Posted: 25. Jan 2017, 15:14
by Perryg
It sounds like your office LAN is not allowing you to connect and are using a proxy instead of a true bridge. Have you talked to your IT folks to see if they allow you to use a second bridge connection?
Can you ping 8.8.8.8 from the terminal on the guest?

Re: No internet in terminal and not able to download packages

Posted: 30. Jan 2017, 10:25
by ash123
ping shows "DESTINATION HOST UNREACHABLE". It is connected using proxy.

Re: No internet in terminal and not able to download packages

Posted: 30. Jan 2017, 15:35
by Perryg
A terminal has no way to know you are using a proxy server and you must tell it. Try using one of the examples below and modify it to your proxy server settings.
This should allow you to use the proxy during the current session, but you will need to either run that each time you open a terminal or add it to your environment variables. Also I don't see you being able to access your apps from anywhere but the guest since proxy services don't really handle that well.

Re: No internet in terminal and not able to download packages

Posted: 31. Jan 2017, 09:52
by ash123
My office network use automatic configuration script and i have the *.dat , so how could i use this file to set proxy in guest.i am unaware of the exact proxy address to use.

Re: No internet in terminal and not able to download packages

Posted: 31. Jan 2017, 15:27
by Perryg
You are going to need to get your IT department involved in fixing this. They are the ones that have set the proxy and control what they allow on their network. Not a VirtualBox issue to resolve I am afraid.