Skip to content

Testing on various platforms using VM

Juan Miguel Cejuela edited this page Jan 15, 2016 · 2 revisions

Requirements (tested on Mac OS X 10.10.)

  • Vagrant (tested with 1.7.4)
  • VirtualBox (tested with 4.3.2) (not running with 4.3.2, tested with 5.0.8)
  • local git repository directory called $gitlocal (so that the vagrant machines can be shared with co-developers)

Procedure

  • enforce requirements
  • move to local git root cd $gitlocal
  • create a .gitignore file if it does not exist already
  • put the folder .vagrant in the .gitignore file to allow the usage by different users
  • initialize vagrant
    • vagrant init
    • a Vagrantfile is initialized
    • a folder .vagrant is initialized:
  • download the virtual machine image you want to use
    • https://atlas.hashicorp.com/ provides a great number of machines
    • the machines listed in the table below were tested
    • use vagrant box add $image, whereas $image is of the format debian/wheezy64
    • you will be asked for the provider of your choice. select yours (tested with virtualBox)
    • this may take a while ...
  • setup the downloaded box as box to be used by the provider on startup, by editing Vagrantfile s.t. it contains
Vagrant.configure("2") do |config|
  config.vm.box = "debian/wheezy64"
end
  • run the machine with vagrant up
  • the content of the folder, vagrant was initialized in will be provided on the VM under /vagrant

Virtual Machines

The following machines were tested with Vagrant and VirtualBox on MacOS X 10.10. Installation and execution of SNAp2 was successfully tested on these machines. For detailed installation and execution procedures, please refer to HOWTO Install and HOWTO Run.

OS Version 32/64 bit hashicorp name
Debian 7 "wheezy" 64 debian/wheezy64