Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have VirtualBox installed and I want to configure it to connect to the Internet using my proxy so that it emulates my connectivity successfully to the VM.

However I could not find any options to set a proxy for VirtualBox so that my VMs cannot connect to the Internet.

Googled but not any relevant solutions appeared. Any ideas?

share|improve this question

2 Answers 2

There's no proxy setting in VirtualBox because proxy settings apply to specific application protocols (e.g., an http proxy), and VirtualBox provides generic internet connectivity.

First, make sure your virtual machine has a virtual network card that is connected to the internet. This is VirtualBox's job. Make sure your vm config includes a network adapter configured as NAT (this is the simplest choice if you just want programs running in the vm to connect to servers running outside the host machine). The OS inside the vm must use this adapter as the default route to the internet (with most OSes this will happen automatically; you may need to install a driver if you added the virtual network adapter after you installed the vm OS).

Then configure proxies in the software running inside the vm as you would if they were running directly on the host.

share|improve this answer
1  
Actually there is a proxy setting, but it seems to only apply to checking for updates to VirtualBox. (Perhaps it didn't exist when you wrote your answer, though.) –  iconoclast Jun 11 '12 at 23:24

Normally to connect to the internet from VM just the change the setting to automatic.

Even it's not working for some application the use the same proxy setting that your base OS is using.

Hope it will solve your problem

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.