Proxy 优胜美地流浪汉
我已安装vagrant和virtual box。我正在约塞米蒂运行此命令:Proxy 优胜美地流浪汉,proxy,vagrant,osx-yosemite,Proxy,Vagrant,Osx Yosemite,我已安装vagrant和virtual box。我正在约塞米蒂运行此命令: vagrant box add lucid32 http://files.vagrantup.com/lucid32.box 输出为: ==> box: Box file was not detected as metadata. Adding it directly... ==> box: Adding box 'lucid32' (v0) for provider: box: Downloa
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
输出为:
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'lucid32' (v0) for provider:
box: Downloading: http://files.vagrantup.com/lucid32.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Empty reply from server
我在代理服务器后面运行它。这是我的档案:
Vagrant.configure("2") do |config|
if Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = "http://10.3.100.207:8080"
config.proxy.https = "http://10.3.100.207:8080"
config.proxy.no_proxy = "localhost,127.0.0.1"
end
end
出什么问题了?
vagrant box add
没有读取vagrant文件,因此它不会知道您的代理配置
最好/最简单的方法是单独下载文件,直接从浏览器下载,然后执行vagrant box add lucid32
,它会将该框加载到vagrant box文件夹中,然后您可以从安装的框中运行VM