Vagrant lets us provision development environments quickly and easily through code and the command line. One benefit of this is that it allows us to turn off our guest hosts so we can better manage our system resources. In this hands-on lab, we spend some time making changes to our Vagrant environment, before shutting it down for the day.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Update the Guest
Start the container:
vagrant up
Log in to the container:
vagrant ssh
Update the guest:
sudo apt-get update sudo apt-get upgrade -y
Log out of the container:
exit
- Reboot the Guest
Reboot the guest:
vagrant reload
Access the guest again, then install the needed packages:
vagrant ssh sudo apt-get install nodejs npm -y
Log out of the container:
exit
- Stop the Guest
When finished, stop the guest:
vagrant halt