2016-02-25 34 views
0

我試圖讓一個流浪環境啓動並運行。它以前完美無瑕。流浪者不會說盒子不存在

我去我的環境,並做流浪漢了。 Vagrant不會找到這個盒子,然後去Hashicorp尋找它,即使它是在當地註冊的。

[<username>@localhost sugarcrm-vagrant-base]$ vagrant version 
Installed Version: 1.8.1 
Latest Version: 1.8.1 

You're running an up-to-date version of Vagrant! 

[<username>@localhost sugarcrm-vagrant-base]$ vagrant box list 
<companyname>/opensuse132-sugarcrm75-base (virtualbox, 0) 

[<username>@localhost sugarcrm-vagrant-base]$ vagrant up 
Bringing machine 'default' up with 'libvirt' provider... 
==> default: Box '<companyname>/opensuse132-sugarcrm75-base' could not be found. Attempting to find and install... 
    default: Box Provider: libvirt 
    default: Box Version: >= 0 
The box '<companyname>/opensuse132-sugarcrm75-base' 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/<companyname>/opensuse132-sugarcrm75-base"] 
Error: The requested URL returned error: 404 Not Found 

回答

0

盒子是由兩兩件事:

  • 提供者(可以是VirtualBox的,VMWare的,AWS ...)

當您運行vagrant up名稱即使你沒有指定提供商,它假定它是libvirt,那是什麼流浪告訴你Bringing machine 'default' up with 'libvirt' provider...

你可能已經設置環境變量VAGRANT_DEFAULT_PROVIDER默認的VirtualBox來libvirt的如默認提供

但是當你看你的框列表,你只能得到機VirtualBox的供應商

運行vagrant up --provider=virtualbox,然後一切都會工作

+0

流浪者實例開始了,解決了這個問題。我不明白的是,我的Vagrant文​​件確實包含config.vm.provider,它被設置爲virtualbox –

+0

,但是在虛擬機被克隆以提供提供程序特定參數後讀取config.vm.provider塊。不要確定要使用哪個提供程序,可以爲同一個Vagrantfile中的多個提供程序塊使用不同的提供程序(可以使用本地的提供程序,如vb或vmware以及AWS,DO等雲塊) –