I try to setup a vagrant with a CentOS7.2.
I've found this on Atlas: https://atlas.hashicorp.com/brightcove/boxes/centos7.2
But when I set on my VagrantFile with
config.vm.box = "brightcove/centos7.2"
and
config.vm.box_url = "https://atlas.hashicorp.com/brightcove/boxes/centos7.2"
I get this error:
vagrant_centos$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'brightcove/centos7.2' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'https://atlas.hashicorp.com/brightcove/boxes/centos7.2'
default: URL: https://atlas.hashicorp.com/brightcove/boxes/centos7.2
==> default: Adding box 'brightcove/centos7.2' (v1.0.14) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/brightcove/boxes/centos7.2/versions/1.0.14/providers/virtualbox.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't resolve host 'xivagrantbox.vidmark.local'
vagrant_centos$
It seems like the box is not correctly hosted anywhere. on the atlas page, there's a warning mentioning
Atlas failed to verify the existence of this external box. It may have
been moved and is no longer available.
and if you try to go to the download page, it tries to redirect you to the xivagrantbox.vidmark.local site which obviously does not exist
$ curl https://atlas.hashicorp.com/brightcove/boxes/centos7.2/versions/1.0.14/providers/virtualbox.box
<html><body>You are being redirected.</body></html>
how to move from there:
You might want to contact the provider of this box so he can fix the link
You can search for another box
You can build the box yourself using tool like packer, https://github.com/boxcutter/centos has template for centos7.2
I get it with vagrant init boxcutter/centos72-desktop
$ vagrant init boxcutter/centos72-desktop
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.
(lab)luis#spinoza:~/lab/sandbox/akd-iac/vagrant_cos$ vi Vagrantfile
And then:
$ vagrant up
...
$
Related
trying to download minikubeflow but I just keep getting this issue were it hangs it and eventually i get an error after about an hour.I installed virtual box like the instructions say to but it still can not be found. Any insight on what the reason may be for this issue?
$ vagrant init arrikto/minikf
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.
jared#DESKTOP-JQH7K9J MINGW64 ~/Documents/minikf
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
**==> default: Box 'arrikto/minikf' could not be found. Attempting to find and install...**
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'arrikto/minikf'
default: URL: https://vagrantcloud.com/arrikto/minikf
==> default: Adding box 'arrikto/minikf' (v20200305.1.0) for provider: virtualbox
default: Downloading: https://vagrantcloud.com/arrikto/boxes/minikf/versions/20200305.1.0/providers/virtualbox.box
==> default: Box download is resuming from prior download progress
Download redirected to host: storage.googleapis.com
Progress: 4% (Rate: 6723k/s, Estimated time remaining: 0:44:32)
Check your internet connection and make sure you have a lot of free space. I faced the same issue but it works fine if there is good amount of free space and faster internet connection.
But I am getting while downloading vagrant box
vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'box-cutter/centos72' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'box-cutter/centos72' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Vagrant Cloud, 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://vagrantcloud.com/box-cutter/centos72"]
Error: Could not resolve proxy: cdn.boxcutter.io
enter image description here
I'm using the CoreOS vagrant repository (https://github.com/coreos/coreos-vagrant) on Fedora 24, with the distro-supplied vagrant (vagrant-1.8.1-3.fc24.noarch). When I run vagrant up I get the following:
$ vagrant up
Bringing machine 'core-01' up with 'virtualbox' provider...
==> core-01: Box 'coreos-alpha' could not be found. Attempting to find and install...
core-01: Box Provider: virtualbox
core-01: Box Version: >= 0
==> core-01: Box file was not detected as metadata. Adding it directly...
==> core-01: Adding box 'coreos-alpha' (v0) for provider: virtualbox
core-01: Downloading: https://storage.googleapis.com/alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json
The box failed to unpackage properly. Please verify that the box
file you're trying to add is not corrupted and try again. The
output from attempting to unpackage (if any):
bsdtar: Error opening archive: Unrecognized archive format
Looking in Vagrantfile I can see that the box is referred to by a remote URL:
config.vm.box_url = "https://storage.googleapis.com/%s.release.core-os.net/amd64-usr/%s/coreos_production_vagrant.json" % [$update_channel, $image_version]
When I try and add the box explicitly using the remote JSON file directly I get:
$ vagrant box add https://storage.googleapis.com/alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json
==> box: Box file was not detected as metadata. Adding it directly...
A name is required when adding a box file directly. Please pass
the `--name` parameter to `vagrant box add`. See
`vagrant box add -h` for more help.
If I download the JSON file and add the box referencing the local file, it works fine, but I end up with a reference to the local file in the box's metadata_url in ~/.vagrant and I lose the functionality of vagrant's box update check.
I read that this might be caused by the fact that the remote JSON is not served with the correct Content-type, however, that is certainly not the problem here:
curl -sv https://storage.googleapis.com/alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json 2>&1 | grep -i Content-type
< content-type:application/json
C:\Users\shubham\myvagrant>vagrant up
Bringing machine 'sparkvm' up with 'virtualbox' provider...
==> sparkvm: Box 'sparkmooc/base2' could not be found. Attempting to find and in
stall...
sparkvm: Box Provider: virtualbox
sparkvm: Box Version: >= 0
==> sparkvm: Loading metadata for box 'sparkmooc/base2'
sparkvm: URL: https://atlas.hashicorp.com/sparkmooc/base2
The box 'sparkmooc/base2' 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/sparkmooc/base2
Error: Unknown SSL protocol error in connection to atlas.hashicorp.com:443
vagrant cannot download the box sparkmooc/base2 from atlas due to SSL issue. You can do the following
$ vagrant box add sparkmooc/base2 --insecure
$ vagrant up
I have installed Vagrant 1.8.1 on Windows 7. Following documentation, ran these commands:
vagrant init hashicorp/precise32
vagrant up
On vagrant init, Vagrantfile is being generated, but vagrant up is failing and I get following output:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'hashicorp/precise32' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'hashicorp/precise32' 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/hashicorp/precise32"]
Error:
Here is error from debug info:
URL: ["https://atlas.hashicorp.com/hashicorp/precise32"]
Error:
INFO interface: Machine: error-exit ["Vagrant::Errors::BoxAddShortNotFound", "The box 'hashicorp/precise32' could not be found or\ncould not be accessed in the remote catalog. If this is a private\nbox on HashiCorp's Atlas, please verify you're logged in via\nvagrant login. Also, please double-check the name. The expanded\nURL and error message are shown below:\n\nURL: [\"https://atlas.hashicorp.com/hashicorp/precise32\"]\nError: "]
I have also tried disabling antivirus, but no luck. Then I tried installation on different machine, on that machine also I am getting same error message.
it's answer to issue in vagrant repo helped for me https://github.com/mitchellh/vagrant/issues/6754
short: install http://www.microsoft.com/en-us/download/details.aspx?id=8328