vagrant centos7.2 流浪文件
vagrant centos7.2 Vagrantfile
我尝试用 CentOS7.2 设置一个 vagrant。
我在 Atlas 上找到了这个:https://atlas.hashicorp.com/brightcove/boxes/centos7.2
但是当我用
设置我的 VagrantFile 时
config.vm.box = "brightcove/centos7.2"
和
config.vm.box_url = "https://atlas.hashicorp.com/brightcove/boxes/centos7.2"
我收到这个错误:
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$
盒子似乎没有正确托管在任何地方。在地图集页面上,有一条警告提到
Atlas failed to verify the existence of this external box. It may have
been moved and is no longer available.
如果您尝试转到下载页面,它会尝试将您重定向到显然不存在的 xivagrantbox.vidmark.local 站点
$ curl https://atlas.hashicorp.com/brightcove/boxes/centos7.2/versions/1.0.14/providers/virtualbox.box
<html><body>You are being <a href="http://xivagrantbox.vidmark.local/vagrant-boxes/bc-ops-base-centos-7.2.1511.box">redirected</a>.</body></html>
如何从那里移动:
- 您可能需要联系此盒子的供应商,以便他修复 link
- 您可以搜索另一个盒子
- 你可以用packer之类的工具自己搭建盒子,https://github.com/boxcutter/centos有centos7.2的模板
我用 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
然后:
$ vagrant up
...
$
我尝试用 CentOS7.2 设置一个 vagrant。
我在 Atlas 上找到了这个:https://atlas.hashicorp.com/brightcove/boxes/centos7.2 但是当我用
设置我的 VagrantFile 时config.vm.box = "brightcove/centos7.2"
和
config.vm.box_url = "https://atlas.hashicorp.com/brightcove/boxes/centos7.2"
我收到这个错误:
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$
盒子似乎没有正确托管在任何地方。在地图集页面上,有一条警告提到
Atlas failed to verify the existence of this external box. It may have been moved and is no longer available.
如果您尝试转到下载页面,它会尝试将您重定向到显然不存在的 xivagrantbox.vidmark.local 站点
$ curl https://atlas.hashicorp.com/brightcove/boxes/centos7.2/versions/1.0.14/providers/virtualbox.box
<html><body>You are being <a href="http://xivagrantbox.vidmark.local/vagrant-boxes/bc-ops-base-centos-7.2.1511.box">redirected</a>.</body></html>
如何从那里移动:
- 您可能需要联系此盒子的供应商,以便他修复 link
- 您可以搜索另一个盒子
- 你可以用packer之类的工具自己搭建盒子,https://github.com/boxcutter/centos有centos7.2的模板
我用 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
然后:
$ vagrant up
...
$