- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Managing a Vagrant Environment
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.

Lab Info
Table of Contents
-
Challenge
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
-
Challenge
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
-
-
Challenge
Stop the Guest
- When finished, stop the guest:
vagrant halt
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.