How to install Vagrant on Windows, Mac, and Linux?

First published: Sunday, May 12, 2024 | Last updated: Sunday, May 12, 2024

Discover the process for installing Vagrant, the VM automation tool, on Windows, Mac, and Linux operating systems.


What is Vagrant?

Vagrant, a robust open source software created by HashiCorp, provides automation and management capabilities for virtual machines. It seamlessly integrates with various hypervisors including VirtualBox, VMware, Hyper-V, Libvirt, Parallels, and more.

Install Vagrant

Windows

  1. Download the Vagrant installer.
  2. Execute the Vagrant installer, and proceed with Next and Finish prompts to install Vagrant.

After installing Vagrant on your Windows operating system, you’ll want to verify the installation by using the following commands.

# Check Vagrant version.
$ vagrant --version

Mac

  1. Download the Vagrant package.
  2. Execute the Vagrant package, and proceed with Continue and Install prompts to install Vagrant.

After installing Vagrant on your Mac operating system, you’ll want to verify the installation by using the following commands.

# Check Vagrant version.
$ vagrant --version

Linux (Debian)

You can use the following commands to install Vagrant in Debian-based Linux operating systems such as Ubuntu LinuxMint LinuxKali LinuxKubuntu Linux, etc., or any other similar equivalents.

# Download Vagrant.
$ wget https://releases.hashicorp.com/vagrant/2.4.1/vagrant_2.4.1-1_amd64.deb -P /tmp

# Install Vagrant.
$ sudo apt install /tmp/vagrant_2.4.1-1_amd64.deb

# Check Vagrant version.
$ vagrant --version