Creating CentOS 8 Virtual Machine with Vagrant
Create a directory for Vagrant project
mkdir -p ~/vagrant/centos8 cd ~/vagrant/centos8 vagrant init generic/centos8
This will create a file with name “Vagrantfile” on current folder. To start the CentOS 8 VM, run
vagrant up
To SSH into CentOS 8 virtual machine
vagrant ssh
To stop a VM, run
vagrant halt
See Vagrant