Vagrant configures reproducible, portable virtual machine development environments.
Getting Started
Initialize a Machine
# Add a base box from Vagrant Cloud
vagrant box add ubuntu/focal64
# Initialize a new Vagrant environment in current folder
vagrant init ubuntu/focal64
Lifecycle Commands
# Boot virtual machine
vagrant up
# Connect via SSH
vagrant ssh
# Suspend virtual machine state
vagrant suspend
# Resume suspended virtual machine
vagrant resume
# Gracefully shut down virtual machine
vagrant halt
# Destroy virtual machine and free disk resources
vagrant destroy
Inspecting Status
# Check state of the active environment
vagrant status
# Check status of all Vagrant environments on host
vagrant global-status