proxyvagranthttp-proxy

How to use vagrant in a proxy environment?


My company's network is using proxy. So when I use vagrant up, it showed me a 401 permission error.

How can I do some setting to use vagrant?


Solution

  • Install proxyconf:

    vagrant plugin install vagrant-proxyconf
    

    Configure your Vagrantfile:

    config.proxy.http     = "http://yourproxy:8080"
    config.proxy.https    = "http://yourproxy:8080"
    config.proxy.no_proxy = "localhost,127.0.0.1"