Managing a Vagrant Environment

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

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
  1. Start the container:

    vagrant up
  2. Log in to the container:

    vagrant ssh
  3. Update the guest:

    sudo apt-get update
    sudo apt-get upgrade -y
  4. Log out of the container:

    exit
Reboot the Guest
  1. Reboot the guest:

    vagrant reload
  2. Access the guest again, then install the needed packages:

    vagrant ssh
    sudo apt-get install nodejs npm -y
  3. Log out of the container:

    exit
Stop the Guest
  1. When finished, stop the guest:

    vagrant halt

Additional Resources

You are a DevOps Engineer working on preparing some development environments for some legacy systems that will be upgraded soon. To lay the groundwork, first, want to review the current Vagrant setup for these environments. Deploy the provided environment, then SSH into the guest host and perform an update. Use Vagrant reboot the host.

Once the server has been rebooted, reaccess the guest to install nodejs and npm. When you have finished installing the desired packages, shutdown the guest for the day.

For detailed instructions on how to complete these tasks, expand each learning objective below, or click the Guide tab above the video player.

What are Hands-on Labs

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!