Skip to content

Vagrant

Created on Dec 4, ’22 ・ Updated on Mar 7, ’23

Boxes

  • Add boxes with vagrant box add generic/openbsd6
  • Boxes are installed in ~/.vagrant.d/boxes
  • List boxes with vagrant box list -i
  • Update box with vagrant box update generic/openbsd6

Workflow

  • vagrant init, reads Vagrantfile of current directory and initializes the .vagrant directory
  • vagrant up, creates vm and starts it (adding it to virtualbox)
  • vagrant halt (i.e. shutdown), suspend
  • vagrant destroy, deletes vm (e.g. from virtualbox)