Skip to content

Vagrant

Kenn edited this page Jan 15, 2020 · 1 revision

Vagrant

If you are familiar with Vagrant, these steps allow you to have iKy installed easily.

Clone repository

git clone https://gitlab.com/kennbroorg/iKy.git

Move to the vagrant directory

cd $IKY_CLONE/install/vagrant # (Replace $IKY_CLONE with the corresponding directory)

Run the command that creates the iKy VM

vagrant up

Other useful vagrant commands

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
  • vagrant resume -- resume a suspended machine (vagrant up works just fine for this as well)
  • vagrant provision -- forces reprovisioning of the vagrant machine
  • vagrant reload -- restarts vagrant machine, loads new Vagrantfile configuration
  • vagrant reload --provision -- restart the virtual machine and force provisioning

Getting into a VM

  • vagrant ssh -- connects to machine via SSH
  • vagrant ssh <boxname> -- If you give your box a name in your Vagrantfile, you can ssh into it with boxname. Works from any directory.

Stopping a VM

  • vagrant halt -- stops the vagrant machine
  • vagrant suspend -- suspends a virtual machine (remembers state)

Cleaning Up a VM

  • vagrant destroy -- stops and deletes all traces of the vagrant machine
  • vagrant destroy -f -- same as above, without confirmation

How to install Vagrant

In this Link