簡體   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