installation
Official website address ( https://www.vagrantup.com/ )
Use (to create a Linux virtual machine, for example)
1. View Help
vagrant --help
2. Create an empty directory
mkdir centos7
3. Initialize Vagrantfile
vargrant init centos/7
Vagrantfile describes the properties we need to create a virtual machine, such as config.vm.box = "centos / 7"
4. Start the virtual machine
vargrant up
Download the box and starts, it is recommended to download box and then run, if there is no local box will be downloaded from the Internet, slow
5. Connect
vagrant ssh
6. Quit
exit
7. Stop & delete
vagrant status
vagrant halt # 停止
vagrant destroy #删除