Creating CentOS 8 Virtual Machine with Vagrant

Written by Yujin Boby

Edit in WordPress

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

CentOS 8  vagrant

To SSH into CentOS 8 virtual machine

vagrant ssh

To stop a VM, run

vagrant halt

See Vagrant