You can use Vagrant and VirtualBox to quickly bring up Virtual Machines on your Mac, Windows, or Linux desktop.

Download Vagrant

https://www.vagrantup.com/

Download VirtualBox

https://www.virtualbox.org/

Bring up a Virtual Machine

These are the commands to run in a terminal window (on your Mac for example)

cd
mkdir centos7
cd centos7
vagrant init centos/7
# [you will see some output from vagrant]
vagrant up
# [you will see some more output from vagrant]
vagrant ssh

The 'vagrant ssh' command will get you logged into the new VM.  You can see the Red Hat version and become root like this:

[vagrant@localhost ~]$ cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[vagrant@localhost ~]$ sudo -i
[root@localhost ~]#
  • No labels