Virtualbox in proxy environment

This is for discussing general topics about how to use VirtualBox.
Post Reply
Brause77
Posts: 7
Joined: 18. Jul 2013, 21:52

Virtualbox in proxy environment

Post 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?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Virtualbox in proxy environment

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Brause77
Posts: 7
Joined: 18. Jul 2013, 21:52

Re: Virtualbox in proxy environment

Post 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.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Virtualbox in proxy environment

Post by socratis »

Well, there is a Proxy section in the VirtualBox Manager preferences, but I haven't used it personally.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Virtualbox in proxy environment

Post 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).
Bill
Brause77
Posts: 7
Joined: 18. Jul 2013, 21:52

Re: Virtualbox in proxy environment

Post by Brause77 »

Which brings me back to my first question: do VB's proxy settings work at all?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Virtualbox in proxy environment

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Brause77
Posts: 7
Joined: 18. Jul 2013, 21:52

Re: Virtualbox in proxy environment

Post by Brause77 »

Ah, okay, that makes sense. Thanks.
Post Reply