環境
OS X El Capitan 10.11.6
Vagrant 1.8.7
エラー内容
boxにbento/centos-7.1を追加しようとするとエラーが発生した。
$ vagrant box add bento/centos-7.1
The box 'bento/centos-7.1' 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/bento/centos-7.1"]
Error:
原因
issueにあった
https://github.com/mitchellh/vagrant/issues/7969
Curlに問題があるよう。
対処法
$ sudo rm -rf /opt/vagrant/embedded/bin/curl
結果
$ vagrant box add bento/centos-7.1
==> box: Loading metadata for box 'bento/centos-7.1'
box: URL: https://atlas.hashicorp.com/bento/centos-7.1
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.
1) parallels
2) virtualbox
3) vmware_desktop
Enter your choice: 2
==> box: Adding box 'bento/centos-7.1' (v2.2.2) for provider: virtualbox
box: Downloading: https://atlas.hashicorp.com/bento/boxes/centos-7.1/versions/2.2.2/providers/virtualbox.box
==> box: Successfully added box 'bento/centos-7.1' (v2.2.2) for 'virtualbox'!
でできた。