Vagrant


Intro


Vagrant is an open-source software product for building and maintaining portable virtual software development environments, e.g. for VirtualBox, KVM, Hyper-V, Docker containers, VMware, and AWS. It tries to simplify software configuration management of virtualizations in order to increase development productivity.



Download And Install


Get the program here: https://www.vagrantup.com/downloads.html



Tips and Notes


  • Any files in the same (host) directory as the vagrant file will be shared with the VMs under /vagrant/




Bringing Up A Splunk Instance


Using this recipe file (Splunk Vagrantfile) from Lynda.com Learning Splunk, you can bring up an instance of Splunk on VirtualBox.

vagrant up



SSH Into Splunk Instance


vagrant ssh splunk



Download and Install Splunk


Download free version of Splunk and install it

sudo su -

wget -O splunk-7.3.1-bd63e13aa157-linux-2.6-amd64.deb 'https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=x86_64&platform=linux&version=7.3.1&product=splunk&filename=splunk-7.3.1-bd63e13aa157-linux-2.6-amd64.deb&wget=true'

dpkg -i splunk-7.3.1-bd63e13aa157-linux-2.6-amd64.deb



Set Initial Admin Password


/opt/splunk/bin/splunk start



Set Splunk To Run At Boot Time


Use these commands to set splunk to auto-start on boot.

cd /opt/splunk/bin
./splunk enable boot-start
systemctl enable splunk
systemctl start splunk




Connect To Web Interface


In a browser, connect to this IP address which the VB Splunk vm has been set to.

http://192.168.33.10:8000