Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Tutorial: CIF development using vagrant

giovino edited this page Dec 14, 2014 · 11 revisions

This tutorial will show you how to use OS X + Vagrant + Virtualbox + Git to easily spin up and tear down CIFv2 virtual machines for development.

  1. Ensure you have all the Vagrant prerequisites installed and configured.

  2. Clone the CIFv2 report to your OS X machine

  3. Open the Terminal

  4. (optional) Create a folder named Development

    mkdir Development && cd Development
  5. Clone CIFv2 (a fork??) using Git and cd into it's directory

    git clone https://github.com/csirtgadgets/massive-octo-spice.git && cd massive-octo-spice/
  6. Start a Vagrant virtual machine

    vagrant up
  7. SSH into the Vagrant virtual machine

    vagrant ssh
  8. Within the virtual machine cd into /vagrant. This is a shared folder to your host machine (e.g. ~/Development/massive-octo-spice)

    cd /vagrant
  9. Install CIFv2

    sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y htop build-essential automake autoconf git
    bash autogen.sh
    sudo bash ./hacking/platforms/easybutton.sh
    sudo chown `whoami`:`whoami` ~/.cif.yml

Once you are finished with your development, you can stop, delete etc using the these common Vagrant commands.

Clone this wiki locally