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
Related
I'm trying to import vagrant box using the following commands on Windows:
vagrant init generic/freebsd11
vagrant up
But I'm getting the following output:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'generic/freebsd11' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'generic/freebsd11' 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<br> URL and error message are shown below:`
URL: ["https://vagrantcloud.com/generic/freebsd11"]
Error: schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation
function was unable to check revocation for the certificate.
Using Vagrant version 2.2.19
Windows 10 build 1809 x64
Virtualbox
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 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
...
$
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 am getting "Could not resolve host" error while trying to create a vm using vagrant and VirtualBox. I followed the instruction from http://docs.vagrantup.com/v2/getting-started/
Executed the below 2 commands
vagrant init hashicorp/precise32
vagrant up
Below is the error message.
C:\Users\xyz123>vagrant up Bringing machine 'default' up with
'virtualbox' provider...
==> default: Box 'ubuntu/trusty32' could not be found. Attempting to find and in stall...
default: Box Provider: virtualbox
default: Box Version: >= 0 The box 'ubuntu/trusty32' 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/ubuntu/trusty32"] Error: Could not
resolve host: (nil); Host not found
All the help appreciated
Following commands fixed the problem for me with vagrant 1.7.2 on Mac
brew install curl
export DYLD_INSERT_LIBRARIES=
Uncomment below line in Vagrantfile..
config.vm.box_check_update = false
Source: https://github.com/mitchellh/vagrant/issues/3391
Setting up the proxy command worked for me
export https_proxy=http://username:password#proxy_ip:proxy_port
Then
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'ubuntu/trusty64'
default: URL: https://atlas.hashicorp.com/ubuntu/trusty64
==> default: Adding box 'ubuntu/trusty64' (v20170202.0.0) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20170202.0.0/providers/virtualbox.box
default: Progress: 8% (Rate: 302k/s, Estimated time remaining: 0:26:21)
You are calling a box inside a box you will you don't need to init again just vagrant up,you will need to start afresh