繁体   English   中英

使用Vagrant安装fedora-20

[英]Installing fedora-20 using vagrant

我已经在win 7 64位系统中成功安装了VMware和vagrant。

我正在尝试使用vagrant使用以下命令来安装Fedora:

1) 无用的初始化厨师/ 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。

命令游民了失败,因为我的代理否认访问atlas.hashicorp.com。 如果我们可以使用浏览器访问任何网站,但这并不意味着我们可以使用命令提示符访问它。 默认情况下,命令提示符不使用Internet Explorer的代理设置。 为了解决此问题,我创建了2个环境变量:“ http_proxy ”和“ https_proxy ”。

在Windows中创建环境变量的步骤:

  1. 打开控制面板,然后单击系统图标。 显示“系统属性”对话框。
  2. 在“高级”选项卡上,单击“环境变量”。 显示“环境变量”对话框。
  3. 在“系统变量”面板中单击“新建”。 显示“新建SystemVariable”对话框。
  4. 使用适当的代理信息添加http_proxy和https_proxy

使用代理服务器的主机名或IP地址设置http_proxyhttps_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

对我来说,“ chef / fedora-20”框按照您的步骤正常工作。 可能是一些访问问题。

或者,您可以尝试通过以下方式下载该框:

vagrant box add chef/fedora-20

然后尝试同样的vagrant up

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM