Page 1 of 1

Virtualbox in proxy environment

Posted: 24. Oct 2016, 19:12
by Brause77
Hi,

I have a Windows 7 64-Bit host to run Virtualbox 5.1.8 in an office environment. Internet access is restricted by a proxy with authentification. I want to run Ubuntu 16.04 for development purposes.

I have trouble to access the internet from within the VM, most probably a proxy issue. I'm aware of some posibilities to configure proxy settings within Ubuntu, but I'm at a loss about the settings at VM level:

1) Which effect does VB's proxy setting have? For me it does not seem to have any effect.
2) What is the recommended networking mode and what effect does it have to proxy settings?

Re: Virtualbox in proxy environment

Posted: 24. Oct 2016, 19:24
by socratis
If you try the NAT mode, does it still require proxy access? Because it still shows the traffic coming from your host. I honestly don't know, legit question.

Re: Virtualbox in proxy environment

Posted: 24. Oct 2016, 19:31
by Brause77
Pinging www.google.com can't be resolved then, I can't run apt etc. Apt IS successful with apt-specific proxy settings in the VM.

Re: Virtualbox in proxy environment

Posted: 24. Oct 2016, 20:17
by socratis
Well, there is a Proxy section in the VirtualBox Manager preferences, but I haven't used it personally.

Re: Virtualbox in proxy environment

Posted: 25. Oct 2016, 00:29
by BillG
If you run your vm in bridged mode it would appear on the network as if it was another physical machine on the network and should be able to use the proxy server, just as the host can. Of course your employer may have blocked that option as well (as he has every right to do).

Re: Virtualbox in proxy environment

Posted: 25. Oct 2016, 06:05
by Brause77
Which brings me back to my first question: do VB's proxy settings work at all?

Re: Virtualbox in proxy environment

Posted: 25. Oct 2016, 07:16
by socratis
Replying to both my comment and to your question, I finally believe that the proxy server settings in the VirtualBox Manager preferences are used for checking for updates to the program itself, not for any network modes in the VMs.

Which brings you to BillG's comment, that you have to change the proxy settings from within the VM, as it was another computer in your network.

Re: Virtualbox in proxy environment

Posted: 25. Oct 2016, 07:20
by Brause77
Ah, okay, that makes sense. Thanks.