'Vagrant: Error: Could not resolve host: (nil); Host not found
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
Solution 1:[1]
Following commands fixed the problem for me with vagrant 1.7.2 on Mac
brew install curl
export DYLD_INSERT_LIBRARIES=
Solution 2:[2]
Uncomment below line in Vagrantfile..
config.vm.box_check_update = false
Solution 3:[3]
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)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ben W |
| Solution 2 | Vinay Kadalagi |
| Solution 3 | jRJ |
