Setup Oracle Linux 7 using vagrant

Nikolas Bousios
2 min readNov 3, 2018

In order to find the latest Oracle’s vagrant boxes navigate here. First things first, download and install vagrant at your operating system. Linux, Windows, Mac are supported.

Fun Fact: You can find other OS boxes here.

Let’s create an Oracle Linux 7.5 image using vagrant. First you need to download the box and give it a name. In our case name is OracleLinux7

vagrant box add -name OracleLinux7 https://yum.oracle.com/boxes/oraclelinux/ol75/ol75.box
vagrant init OracleLinux7
vagrant up

Using vagrant ssh you can ssh into the newly created virtual machine. That’s all you’ve did it elegant and easy. But wait there’s more. What if i want to create a specific user and after vm start to execute let’s say an ansible script etc.? Well after you execute vagrant init OracleLinux7 you’ll notice that a Vagrantfile has been create at the folder you’ve executed vagrant init. This file will be used from vagrant to startup your vm. So you can configure this Vagrantfile by going here.

--

--

Nikolas Bousios

A highly Geeky IT professional, co-founder of Deliverakis. Love technology, food, and traveling.