我已经在win 7 64位系统中成功安装了VMware和vagrant。
我正在尝试使用vagrant使用以下命令安装Fedora:
1) vargrant init chef / fedora-20
输出:
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
2)流浪汉
输出:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'chef/fedora-20' could not be found. Attempting to find and ins
tall...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'chef/fedora-20' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, 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://atlas.hashicorp.com/chef/fedora-20"]
Error: Failed connect to atlas.hashicorp.com:443; No error
我可以在浏览器中访问atlas.hashicorp.com。
答案 0 :(得分:3)
命令 vagrant up 失败,因为我的代理拒绝访问atlas.hashicorp.com。 如果我们可以使用浏览器访问任何网站,这并不意味着我们可以使用命令提示符访问它。默认情况下,命令提示符不使用Internet Explorer的代理设置。 为了解决这个问题,我创建了两个环境变量:“ http_proxy ”和“ https_proxy ”。
在Windows中创建环境变量的步骤:
使用代理服务器的主机名或IP地址设置 http_proxy 和 https_proxy 变量:http_proxy = http://proxy.example.org
如果代理服务器需要用户名和密码,请使用以下格式包含它们:http_proxy = http://username:password@proxy.example.org
如果代理服务器使用80以外的端口,请包含端口号:http_proxy = http://username:password@proxy.example.org:8080
答案 1 :(得分:0)
对我而言,“chef / fedora-20”盒子正在使用您的步骤正常工作。这可能是一些访问问题。
作为替代方案,您可以尝试下载以下框:
vagrant box add chef/fedora-20
然后尝试相同的vagrant up
。