系统Windows10
Vagrant 1.8.1
VirtualBox 5.0.20
vagrant box下载地址:http://cloud.centos.org/centos/7/vagrant/x86_64/images/
第一、添加vagrant box
命令:vagrant box add 名称 box地址
说明:box我放在了,f:/vagrant下所以cmd进入到f:/vagrant下,执行 vagrant box add centos7-x86_64-php7 ./CentOS-7-x86_64-Vagrant-1708_01.VirtualBox.box
第二、执行初始化
命令 vagrant init,这时会生成一个Vagrantfile文件,打开编辑下
第三、启动vagrant
命令 vagrant up
可能会出现的问题
1)"rsync" could not be found on your PATH. Make sure that rsync is properly installed on your system and available on the PATH.
解决办法:打开C:\Users\Administrator\.vagrant.d\boxes\centos-6.7-x86_64-php7\0\virtualbox\Vagrantfile
Vagrant.configure("2") do |config|
config.vm.base_mac = "5254007a695a"
config.vm.syn