Book Image

Creating Development Environments with Vagrant

By : MICHAEL KEITH PEACOCK
Book Image

Creating Development Environments with Vagrant

By: MICHAEL KEITH PEACOCK

Overview of this book

Table of Contents (17 chapters)
Creating Development Environments with Vagrant Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Sharing and connecting with Atlas


With Atlas, there are three new Vagrant commands at our disposal, which are as follows:

  • vagrant connect

  • vagrant share

  • vagrant login

Logging Vagrant into Vagrant Cloud

In order to share our Vagrant environment, we need to connect our Vagrant installation to our Vagrant Cloud account. We can check to see whether this is already the case by running the following command:

vagrant login --check

This will check to see whether we are already logged in:

As we are not logged in, we need to run vagrant login in order to log in. First, we are prompted for our username or e-mail address from Atlas, and then for our password:

Once logged in, we can use the logout flag to log out of Atlas:

vagrant login --logout

Sharing a Vagrant virtual machine over HTTP(S)

In order to share the web interface with a Vagrant virtual machine, the virtual machine must either have its own IP address on our local network or an HTTP(S) port forwarded from the guest to the host machine. Vagrant...