1、官方的太慢基本下载不下来,我们推荐使用国内镜像
# ubuntu 18.04 LTS: https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/bionic/current/bionic-server-cloudimg-amd64-vagrant.box # ubunt 16.04 LTS: https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/xenial/current/xenial-server-cloudimg-amd64-vagrant.box # ubuntu14: https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box #centos7 第三方仓库:http://www.vagrantbox.es/ https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.1.0/centos-7.0-x86_64.box
2、镜像下载到本地
3、配置使用本地镜像
K:vagrantCentos7> vagrant box add K:vagrantCentos7centos-7.0-x86_64.box --name centos7
# 修改 Vagrantfile文件如下: config.vm.box = "centos${}"
4、启动