O'Reilly logo

Creating Development Environments with Vagrant by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controlling guest machines

Now that we have a project initialized, we need to be able to control our guest machine. At the moment, all we have is a Vagrantfile file, which defines the configuration for the project.

Powering up the virtual machine

We can power up the virtual machine using the vagrant up command.

Firstly, Vagrant checks to see if the Vagrant environment has already been set up, if a previously suspended environment is found, it will resume it.

If the environment was not previously suspended, Vagrant then checks to see if the base box has already been downloaded onto the machine. If it hasn't, it will download it.

Vagrant will then perform the following:

  • Copy the base box
  • Create a new virtual machine with the relevant provider (the default ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required