
Vagrant
- Vagrant is a tool for building and managing virtual machine environments in a single workflow.
- more info click here
Download
- Head up to this link and download vagrant for your operating system
- After installing you can access it via terminal
- check if it’s downloaded properly
vagrant -v
Setup
- You can install whatever you want
- Go to this link and choose your box

- Also you can select the provider, so vagrant will run it in that provider
- Here I’m going to select Virtual box, because I have installed that in my system


- Now run these two commands to setup that box
- Before running this commands create two directories
mkidr box data
- Now go to box directory
vagrant init ubuntu/focal64


- You can run
vagrant up
to start your VM
- Now you can simply ssh into this machine using
vagrant ssh
command

- Great that’s all, Now you can use this 😃

- Here you can see, vargrant uses Virtualbox to host this.

- You can also login into this VM with default credentials
- user:
vagrant:vagrant
- root:
root:vagrant

- You can shutdown your VM using
vagrant halt
- If you want to force shutdown, then use
vagrant destroy
command

- Let’s setup our vm with a build script in next article 🙂