尝试使用vagrant和VirtualBox创建vm时,我收到“无法解析主机”错误。我按照http://docs.vagrantup.com/v2/getting-started/
的说明进行操作执行以下2个命令
vagrant init hashicorp / precise32
流浪汉
以下是错误消息。
C:\ Users \ xyz123> vagrant up将机器'默认'打开 'virtualbox'提供商...... ==>默认:无法找到Box'ubuntu / trusty32'。试图寻找和停止... 默认值:Box Provider:virtualbox 默认值:Box版本:> = 0无法在远程目录中找到或无法访问“ubuntu / trusty32”框。如果这是一个 HashiCorp的Atlas上的私人包装盒,请确认您已登录
vagrant login
。另外,请仔细检查名称。扩展的URL 错误消息如下所示:网址:[“https://atlas.hashicorp.com/ubuntu/trusty32”]错误:无法 解析主持人:(无);主机未找到
所有帮助赞赏
答案 0 :(得分:0)
以下命令为Mac上的vagrant 1.7.2解决了我的问题
brew install curl
export DYLD_INSERT_LIBRARIES=
答案 1 :(得分:0)
在Vagrantfile中取消注释以下行..
config.vm.box_check_update = false
答案 2 :(得分:0)
设置代理命令对我有用
export https_proxy=http://username:password@proxy_ip:proxy_port
然后
$ 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)