Vagrant is software that automates management of Linux virtual machines. It’s really helpful for Linux classes because you can create VMs on your own system (even if you already use Linux) that you can mess with, break, throw away and start over. Having a Linux VM that you control is required for course work in my Linux classes. Vagrant is installed on class and STEM Center computers. Vagrant creates virtual machines from a description called a
If you plan to use school computers you can skip to the end of this lab.
Your computer must be powerful enough to run Linux virtual machines. You should have:
|Operating System||Windows, Mac, Linux
See thee section about ChromeOS
Support for virtualization
Most Intel/AMD processors made after 2006 support virtualization
|Memory||8 GiB of RAM|
|Disk||64 GiB of available space|
Vagrant relies on VirtualBox to run VMs. VirtualBox is open source virtualization software distributed by Oracle. VirtualBox is available for Mac, Windows and Linux.
Install VirtualBox using Homebrew
$ brew cask install virtualbox
Install Vagrant using Homebrew
$ brew cask install vagrant $ brew cask install vagrant-manager
On Ubuntu it’s easy to get vagrant running. You can install old-ish versions that will be good enough for this class from the main repositories with the following commands:
$ sudo apt update $ sudo apt install vagrant virtualbox
CromeOS support has not been tested.
You cannot install Vagrant on ChromeOS. However, “Linux Mode” in ChromeOS is a virtual machine running on the Chrome Book that is in many ways very similar to how Vagrant works. If you’re using a Chrome Book enable Linux mode and use Linux mode instead of a Vagrant VM. Skip to the end of the lab.
Other Linuxes and Newer Versions¶
The latest versions of both VirtualBox and Vagrant can be installed using your system’s package magager. Instructions for doing that can be found on the respective download pages:
Turn in a screenshot of VirtualBox (or Linux Mode in ChromeOS) running.