The Vagrant getting started tutorials will walk you through your first Vagrant project, highlighting major features of Vagrant.
If you are curious about the benefits Vagrant read the "Why Vagrant?" introduction page.
The getting started tutorials use Vagrant with VirtualBox, since it is free and available on every major platform. Vagrant can work with many other providers.
»Prerequisites
- Install the latest version of Vagrant.
- Install VirtualBox
»Up and Running
After you run the following two commands, you will have a fully running virtual machine in VirtualBox running Ubuntu 18.04 LTS 64-bit.
Initialize Vagrant.
$ vagrant init hashicorp/bionic64
Start the virtual machine.
$ vagrant up
SSH into this machine with vagrant ssh
, and explore your environment. Leave the SSH session with logout
.
When you are done exploring terminate the virtual machine, and confirm when the CLI prompts you by typing yes
.
$ vagrant destroy
Now imagine every project you've ever worked on being this easy to
set up! With Vagrant, vagrant up
is all you need to work on any project,
to install every dependency that project needs, and to set up any
networking or synced folders, so you can continue working from the
comfort of your own machine.
The rest of these tutorials will walk you through setting up a more complete project.
You have just created your first virtual environment with Vagrant. Read on to learn more about project setup.