https://blog.51cto.com/u_12173069/2312621
#download virtualbox
https://www.virtualbox.org/wiki/Linux_Downloads
#download vagrant
https://www.vagrantup.com/downloads.html
#download centos7 image of vagrant format
http://cloud.centos.org/centos/7/vagrant/x86_64/images/
http://cloud.centos.org/centos/7/vagrant/x86_64/images/CentOS-7.box
#install virtual box
yum -y install kernel-devel
yum -y localinstall VirtualBox-6.1-6.1.18_142142_el7-1.x86_64.rpm
#install vagrant
yum -y localinstall vagrant_2.2.15_x86_64.rpm
#initiate configuration
vagrant init CentOS-7.box
#start the vm
vagrant up
#stop the vm
vagrant halt
#reboot the vm
vagrant reload
#delete the vm
vagrant destroy