I am using korora 26 (distro based on fedora 26) , have installed vagrant from dnf currently running version.
$vagrant -v Vagrant 1.9.1
When i try to add a vagrant centos/7 box shows error
$vagrant box add centos/7 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
After a few hours found the issue is reported on vagrant version 1.9.x specifically.
one work around to fix the issue would be replacing vagrant server url with Vagrant::DEFAULT_SERVER_URL.replace(‘https://vagrantcloud.com’)
#lets initialize a vagrant file for centos/7
vagrant init 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. $echo "Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')" >> Vagrantfile $vagrant box add centos/7 ==> box: Loading metadata for box 'centos/7' box: URL: https://vagrantcloud.com/centos/7 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) hyperv 2) libvirt 3) virtualbox 4) vmware_desktop Enter your choice: 2 ==> box: Adding box 'centos/7' (v1802.01) for provider: libvirt box: Downloading: https://vagrantcloud.com/centos/boxes/7/versions/1802.01/providers/libvirt.box box: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)