Refer to Station B: https://www.bilibili.com/video/BV1np4y1C7Yf
1. Download VirtualBox
2. Download vagrant
3. Download the .box file from vagrant official website
Official website: https://app.vagrantup.com/boxes/search
For example, to download this centos/7
Click in and click to download
After downloading, place it in a specified directory
Then cmd to this directory
implement
vagrant box add 文件名 --name 你想起的名字
and then initialize
vagrant init 刚刚起的别名
run
vagrant up
Open virtualbox and you can see it is running
Connect to the virtual machine from the command line
vagrant ssh
You can execute whoami to view the current user
whoami
View current directory
ls /
On and off
Right click and select normal shutdown
Click Start next time to boot up