Shutdown, Status, Startup, Authentication

In order to get the current configuration virtual boxes on our directory, we can use the get status command. This command will show us the hypervisor which the box is using, the name and in which state it is:

Get status

After we have found the status and verified that the machine is working, we can connect to it via SSH. Vagrant is using its own username/password for monitor and connection to the machine. Therefore, even if you cannot connect to the SSH, that doesn't mean that the machine doesn't work or it isn't accessible from other sites :)

Connect to the machine

We can shutdown the machine if it is not longer needed. Vagrant, will just send the shutdown instructions to the hypervisor: VMware or VirtualBox and proceed with disconnecting all sessions:

Shutdown

As you saw, we had to connect to the machine using vagrant. What about if I want to connect using ssh client ? Well I will have to use username and a password, something which I don't have yet :) So in order for me to connect via ssh, I have to set up the configuration in the vangrant file as follows:

Example Authentication

* P.S. By default, vagrant is using: vagrant/vagrant as a username and password for monitoring and handling of the VM. Therefore, if you will change the password, be sure to re-upload the new ssh keys to the vm.

Of course, once the changes are done, we can start the machine from the command line again as follows:

Startup

Memory, Network

In order to configure network and Memory, we have to again shutdown our virtual box and edit the configuration as follows:

Memory Config

Since the memory is linked with the RAM of the host machine, do not add excessive memory, or you will slow your host machine. In order to add additional network adapters, we have to again change the configuration the box configuration:

Network Config

Configure Guess plugin

Guess plugin installation