Discover Vagrant Boxes here
OS | Type | Reference |
---|---|---|
macOS Catalina | catalina | built with vagrant box |
macOS Mojave | mojave | built with vagrant box |
Vagrant and VirtualBox are required. Install them running:
brew cask install virtualbox
brew cask install virtualbox-extension-pack
brew cask install vagrant
brew cask install vagrant-manager # optional
Run the following:
git clone git@github.com:crazy-matt/virtualbox-vms.git
cp "./virtualbox-vms/template.Vagrantfile" "./virtualbox-vms/Vagrantfile"
VAGRANT_VAGRANTFILE="./virtualbox-vms/Vagrantfile" \
VAGRANT_HOME="~/.vagrant.d" \
VM_NAME="<VirtualBox VM name>" \
vagrant up "<Vagrant box (type)>"
For
<
Vagrant box (type)>
👉 Supported Types
- Username: vagrant
- Password: vagrant
With vagrant cli docs
vagrant global-status # Gets a list of your current Vagrant boxes
vagrant reload [vagrant box name (type)|id] # Reloads a change of config on your Vagrantfile
vagrant ssh [vagrant box name (type)|id] [-- extra_ssh_args]
vagrant suspend [vagrant box name (type)|id] # Suspends the guest machine, rather than fully shutting it down or destroying it
vagrant resume [vagrant box name (type)|id] # Resumes a Vagrant managed machine that was previously suspended
vagrant halt [vagrant box name (type)|id] # Shuts down the running machine Vagrant is managing
vagrant snapshot save [vm-name] NAME # Saves a new named snapshot
vagrant snapshot restore [vm-name] NAME # Restores the named snapshot
vagrant destroy [vagrant box name (type)|id] # Destroy your VM using an id obtained from `vagrant global-status`
vagrant box remove NAME # Delete the box being used to create the VM
Run Vagrant Manager.app
Run VirtualBox.app
(does not update your user Vagrant configuration though)
- If you try to start your VM and it does not boot up at all, check to make sure you have enough RAM to run your VM.
Change the
vb.memory
value of the related VM in yourVagrantfile
and run avagrant reload [vagrant box name (type)|id]
. - VirtualBox uses the left command key as the "host key" by default. If you want to use it for shortcuts like
command+c
orcommand-v
(copy&paste), you need to remap or unset the "Host Key Combination" inPreferences -> Input -> Virtual Machine
. - Keep in mind that the Video Memory Apple's official requirement is 128MB.
- If keyboard and mouse do not work inside the VM:
- Ensure the VirtualBox Extension Pack is installed.
- In the VM settings, under
Ports > USB
, selectUSB 3.0 (xHCI) Control
.