The following section describes how to prepare VM template from scratch, e.g. to be used as base vagrant box or as a base VM template. It's not needed to perform these steps when installing any products, however, might be usefull to maintain version of base OS.
As a base for most VM templates, Scientific Linux is used. Download the latest version from http://ftp1.scientificlinux.org/linux/scientific/7x/x86_64/iso/
recommended is Network installation ISO - SL-*-netinst.iso
In installation packages - select Minimal system.
Set root password (vagrant) and create new user (vagrant:vagrant)
Log-in as root, and execute one of the following script:
for non-GUI environment:
bash <(curl -L https://bit.ly/2xDpLwR)
for GUI environment:
bash <(curl -L https://bit.ly/2zrDPLZ)
launch vagrant script to package box. Expecting the virtual machine name is
vagrant package --output sl7mini.box --base my-sl7-virtualmachine
package instruct vagrant to get virtual machine from virtual box and package it into separate file
--output sl7mini.box writes the result to file named as sl7mini.box
--base my-sl7-install takes VirtualBox virtual machine named my-sl7-virtualmachine
Download CernVM4 image https://cernvm.cern.ch/portal/downloads for vagrant.