Vagrant 无法在代理后面做流浪者

Vagrant 无法在代理后面做流浪者,vagrant,Vagrant,我无法在Windows 7机器上的公司代理后面执行“漫游升级”(或“漫游添加”)。我尝试过使用和不使用http\U proxy/https\U proxy环境变量。我尝试将vagrant插件vagrant proxyconf与各种http代理设置一起使用,但没有帮助,问题不在于来宾的代理,而在于主机的代理。有没有办法让流浪汉自己使用代理 流浪汉向上输出: C:\scratch\vagrant>vagrant up Bringing machine 'default' up with 'vi

我无法在Windows 7机器上的公司代理后面执行“漫游升级”(或“漫游添加”)。我尝试过使用和不使用http\U proxy/https\U proxy环境变量。我尝试将vagrant插件vagrant proxyconf与各种http代理设置一起使用,但没有帮助,问题不在于来宾的代理,而在于主机的代理。有没有办法让流浪汉自己使用代理

流浪汉向上输出:

C:\scratch\vagrant>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'hashicorp/pricise32' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'hashicorp/pricise32' 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/hashicorp/pricise32"]
Error: The requested URL returned error: 404 Not Found
插件:

C:\scratch>vagrant plugin list
vagrant-login (1.0.1, system)
vagrant-proxyconf (1.2.0)
vagrant-share (1.0.1, system)
流浪版本:

C:\scratch\vagrant>vagrant -v
Vagrant 1.5.4

正如@Emyl指出的,框名中有一个输入错误(应该是“hashicorp/precise32”)

作为对该问题的回答,Vagrant支持主机上的标准
HTTP\u PROXY
HTTPS\u PROXY
环境变量。在Windows上,您可以使用以下命令行设置它们:

set HTTP_PROXY="http://proxy:1234"
set HTTPS_PROXY="http://proxy:1234"

另外,在将来,vagrant proxyconf在某些情况下也可以自动设置它们。

对我来说很有效,但没有双引号

set HTTP_PROXY=http://proxy:1234
set HTTPS_PROXY=http://proxy:1234
而不是:

set HTTP_PROXY="http://proxy:1234"
set HTTPS_PROXY="http://proxy:1234"

有一个输入错误:正确的框名可能是“hashicorp/precise32”是的,这似乎是Emyl的问题。谢谢你的注意。我一直在与代理问题作斗争,在这条线上的某个地方,我把盒子的名字弄模糊了@tmatilai在下面使用环境代理变量的回答是有效的。是的,上面的输入错误和修复时有效。谢谢双引号对我来说不起作用。我必须删除它们。好吧,你怎么知道代理信息是个问题??你认为这应该是可以接受的答案,因为双引号会导致vagrant出现错误(“不支持的代理方案”)