Creating CentOS 8 Virtual Machine with Vagrant
Create a directory for Vagrant project
1 2 3 |
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
1 |
vagrant up |
To SSH into CentOS 8 virtual machine
1 |
vagrant ssh |
To stop a VM, run
1 |
vagrant halt |
See Vagrant