vagrant资源地址
官网http://www.vagrantup.com/
官方下载地址:https://www.vagrantup.com/downloads.html
旧版本下载:https://releases.hashicorp.com/vagrant/
box下载:
官方仓库:https://atlas.hashicorp.com/boxes/search
官方镜像:https://vagrantcloud.com/boxes/search
第三方仓库:http://www.vagrantbox.es/
插件下载地址 :https://rubygems.org/gems/vagrant-vbguest/versions/0.12.0
VirtualBox 5.1.8 :https://www.virtualbox.org/wiki/Download_Old_Builds_5_1
Vagrant 1.8.6 :https://releases.hashicorp.com/vagrant/1.8.6/
ubuntu1404 : https://pan.baidu.com/s/1kU8fUlD
vagrant常用命令
vagrant box add box名称 box路径 //添加box
vagrant box list //#显示列表
vagrant init ubuntu/trustry64 //初始化一个新VM
vagrant up //启动
vagrant ssh //连接
vagrant halt //关闭
vagrant destory ubuntu/trusty64 //删除
vagrantfile文件配置
config.vm.network "forwarded_port", guest: 80, host: 8888 ,id: 'nginx' //端口转发
config.vm.network "private_network", ip: "192.168.199.101",auto_config: true //配置私有网络
config.vm.synced_folder "D:/phpStudy/WWW", "/home/www", :smb => true //共享文件夹