Friday, May 27, 2016

Simple Test Run Vagrant

/home/kuman/vagrant/server1$ ll
total 20
drwxr-x--- 3 kuman eng 4096 Apr 26 10:21 ./
drwxr-x--- 4 kuman eng 4096 Apr 26 11:03 ../
drwxr-x--- 3 kuman eng 4096 Apr 26 10:21 .vagrant/
-rw-r----- 1 kuman eng 4628 Apr 26 10:21 Vagrantfile


/home/kuman/vagrant/server1$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: A newer version of the box 'ubuntu/trusty64' is available! You currently
==> default: have version '20160406.0.0'. The latest is version '20160519.0.1'. Run
==> default: `vagrant box update` to update.
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.3.36
    default: VirtualBox Version: 5.0
==> default: Mounting shared folders...
    default: /vagrant => /usr/local/google/home/somphol/vagrant/server1
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.


/home/kuman/vagrant/server1$ vagrant ssh
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-85-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Fri May 27 10:23:49 UTC 2016

  System load:  0.47              Processes:           95
  Usage of /:   3.5% of 39.34GB   Users logged in:     0
  Memory usage: 18%               IP address for eth0: 10.0.2.15
  Swap usage:   0%

  Graph this data and manage this system at:
    https://landscape.canonical.com/


vagrant@vagrant-ubuntu-trusty-64:~$ exit
logout
Connection to 127.0.0.1 closed.
/home/kuman/vagrant/server1$ vagrant halt
==> default: Attempting graceful shutdown of VM...


/home/kuman/vagrant/server1$ vagrant box update
==> default: Checking for updates to 'ubuntu/trusty64'
    default: Latest installed version: 20160406.0.0
    default: Version constraints: 
    default: Provider: virtualbox
==> default: Updating 'ubuntu/trusty64' with provider 'virtualbox' from version
==> default: '20160406.0.0' to '20160519.0.1'...
==> default: Loading metadata for box 'https://atlas.hashicorp.com/ubuntu/trusty64'
==> default: Adding box 'ubuntu/trusty64' (v20160519.0.1) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20160519.0.1/providers/virtualbox.box
==> default: Successfully added box 'ubuntu/trusty64' (v20160519.0.1) for 'virtualbox'!

No comments:

Post a Comment