Skip to content

Latest commit

 

History

History
executable file
·
73 lines (56 loc) · 3.08 KB

README.md

File metadata and controls

executable file
·
73 lines (56 loc) · 3.08 KB

VirtualBox VMs Creation

Discover Vagrant Boxes here

Supported

OS Type Reference
macOS Catalina catalina built with vagrant box
macOS Mojave mojave built with vagrant box

Requirements

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

Deploy a VM

Run the following:

git clone [email protected]: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

UI Credentials

  • Username: vagrant
  • Password: vagrant

Manage your Vagrant boxes and/or VMs

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

With Vagrant Manager

Run Vagrant Manager.app

With VirtualBox

Run VirtualBox.app (does not update your user Vagrant configuration though)

Troubleshooting & Improvements

  • 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 your Vagrantfile and run a vagrant 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 or command-v (copy&paste), you need to remap or unset the "Host Key Combination" in Preferences -> 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:
    1. Ensure the VirtualBox Extension Pack is installed.
    2. In the VM settings, under Ports > USB, select USB 3.0 (xHCI) Control.