Using vagrant for virtual machines

vagrant is a tool for configuring and managing virtual machines.

Issues

macOS

On vagrant up you get an error

chown: changing ownership of '/vagrant': Operation not permitted

This can be caused if VirtualBox does not have access to the folder which has the Vagrantfile. This can be fixed under System Preference -> Security & Privacy -> Privacy -> Files and Folders and ensuring the VirtualBox has access to the folder, i.e. if Vagrantfile is in Documents, then VirtualBox needs access to Documents.