Sunday, February 11, 2018

Solution for Box not found error in Vagrant



I was facing this error:

The box 'centos/7' 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/centos/7"]
Error: The requested URL returned error: 404 Not Found



Adding this line in Vagrantfile helped:

++Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')
Vagrant.configure("2") do |config|


source: https://github.com/hashicorp/vagrant/issues/9442#issuecomment-363080565

No comments:

Post a Comment