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

CentOS 8  vagrant

To SSH into CentOS 8 virtual machine

vagrant ssh

To stop a VM, run

vagrant halt

See Vagrant

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *