vagrant box add base using http proxy

4,105 views
Skip to first unread message

Russell

unread,
Mar 15, 2010, 12:24:59 PM3/15/10
to Vagrant
Hi,
In corporate firewall hell all http traffic goes through an http proxy
that requires authentication. I added an HTTP_PROXY env var so that
rubygems would work, what do I need to do to make vagrant box add
http://xxxxxxxxx work, please?

Many thanks in advance

Russell

John Bender

unread,
Mar 15, 2010, 1:33:18 PM3/15/10
to vagra...@googlegroups.com
Russel,

You're link was translated oddly so its hard to tell whats happening, but if the company firewall doesn't let the tool access the site to download the base box (which is what I assume is failing) you can download it manually and use the local file.

Just hit

http://files.vagrantup.com/base.box
in your web browser and save the file to somewhere you'll remember. With that done you can issue:
vagrant box add base path/to/your/base.box

And continue on with the quick start. Hope that helps.

Best

John

Russell

unread,
Mar 16, 2010, 4:45:13 AM3/16/10
to Vagrant
Hi,
Thanks for the response. In the end that is what I did (downloaded
with browser and used local box).

Thanks again

Russell

> >http://xxxxxxxxxwork, please?

Mitchell Hashimoto

unread,
Mar 16, 2010, 4:47:00 AM3/16/10
to vagra...@googlegroups.com
Russell,

While this works, it could be nice to also build in HTTP proxy support straight into Vagrant since Net::HTTP seems to support it. 

I'll keep this in mind for the future.

Mitchell

NitinVerma

unread,
May 12, 2014, 2:33:24 AM5/12/14
to vagra...@googlegroups.com
Nothing works for me behind corp proxy:

# pwd
/cygdrive/c/cygwin/home/vagrant_home

# echo $VAGRANT_HTTP_PROXY
http://172.19.243.11:8090

# tail Vagrantfile
  #   chef.validation_client_name = "ORGNAME-validator"
  # Setup Proxy
  Vagrant.configure("2") do |config|
   if Vagrant.has_plugin?("vagrant-proxyconf")
     config.proxy.http     = "http://172.19.243.11:8090/"
     config.proxy.no_proxy = "localhost,127.0.0.1"
   end
  end
  #
end

# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'puppetlabs/centos-6.5-64-puppet' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'puppetlabs/centos-6.5-64-puppet' could not be found or
could not be accessed in the remote catalog. If this is a private
box on Vagrant Cloud, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://vagrantcloud.com/puppetlabs/centos-6.5-64-puppet"]
Error: Failed connect to vagrantcloud.com:443; Timed out

# vagrant plugin list
vagrant-login (1.0.1, system)
vagrant-proxyconf (1.3.1)
vagrant-share (1.0.1, system)

# vagrant -v
Vagrant 1.6.0
#

Pls advise.

Teemu Matilainen

unread,
May 19, 2014, 3:24:37 AM5/19/14
to vagra...@googlegroups.com

Hi,

The box is loaded on the host, while vagrant-proxyconf currently only configures the guest. I’ve planned adding some host side support too, but untill then you need to specify the standard HTTP_PROXY and HTTPS_PROXY environment variables on the host yourself.

--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages