vagrant 404 Not Found issues on fedora 26

By | March 24, 2018

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: [""]
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(‘’)

#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
`` for more information on using Vagrant.

$echo "Vagrant::DEFAULT_SERVER_URL.replace('')" >> Vagrantfile

$vagrant box add centos/7
==> box: Loading metadata for box 'centos/7'
    box: URL:
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:
    box: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)