ローカルBoxをVagrant Cloud上で公開する方法

2014年07月26日 18時53分

201407261853VVAW00.png

はじめに

本ブログでは、Vagrant Cloud上に公開されたBoxを利用する方法では、Vagrant Cloud上に公開されたBoxをローカルで利用する方法を解説しました。
今回は、ローカルで作成したBoxをVagrant Cloud上に公開する方法を解説します。

前提条件

作業の前提条件は、下記のとおりです。

ソフトウエアバージョン
OSWindows 7 Ultimate 32bit
CygwinSetup Version 2.831
VirtualBox4.3.12 r93733
Vagrant1.6.3
Vagrant Cloudは、バージョン1.5以上のVagrantで動作しますので、必ずバージョン1.5以上のVagrantをインストールして下さい。

Vagrant Cloudユーザー登録

Vagrant Cloud上のBoxを利用する際には、ユーザー登録は不必要でしたが、 ローカルBoxをVagrant Cloud上で公開するためには、事前にユーザー登録が必要です。なお、Vagrant Cloudは、無償で利用できますので安心して下さい。

  1. Vagrant Cloudユーザー登録

    公式サイトから、JOIN VAGRANT CLOUDをクリックして、メールアドレスとパスワードを指定した後、Join nowをクリックするとユーザー登録が完了します。

    201407261853VVAW01.png

    201407261853VVAW02.png

    201407261853VVAW03.png

  2. ユーザー登録の確認

    ユーザー登録後、登録時に指定したメールアドレス宛てに確認メールが送信されますので、confirm your accountをクリックします。

    201407261853VVAW04.png

    以上で、Vagrant Cloudのユーザー登録は終了です。

ローカルBoxをVagrat Cloud上で公開する

Vagrant Cloud上で公開したBoxは、外部からアクセス可能になりますので、外部公開サーバとして、Apache Web Serverをローカル上に構築して、Vagrant Cloud上に公開します。

  1. 公開するApache Web Serverの作成

    前回の記事で使用したchef/centos-6.5を使用して、サーバーを構築します。

  2. Vagrantfileの作成

    ローカル上にchef/centos-6.5のイメージをダウンロード済みですので、Vagrantfileを作成します。

    $ vagrant init chef/centos-6.5
    
    201407261853VVAW05.png
    A `Vagrantfile` has been placed in this directory. You are now
    ready to `vagrant up` your first virtual environment! Please read
    the comments in the Vagrantfile as well as documentation on
    `vagrantup.com` for more information on using Vagrant.
    
  3. Apache Web Serverのインストール

    Vagrantのシェルプロビジョニングを使用して、ウエブサーバーをインストールします。この際、テスト用のHTMLファイルも一緒に作成します。

    $ vi Vagrantfile
    
    # -*- mode: ruby -*-
    # vi: set ft=ruby :
    
    VAGRANTFILE_API_VERSION = "2"
    
    Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
      config.vm.box = "chef/centos-6.5"
      config.vm.network "forwarded_port", guest: 80, host: 8080
    
      config.vm.provider "virtualbox" do |vb|
        vb.customize ["modifyvm", :id, "--memory", "1024"]
      end
    
      config.vm.provision :shell, inline: <<-EOC
        yum -y update
        yum -y install httpd
    
        cat<<EOF>/var/www/html/index.html
    <!DOCTYPE html>
    <html lang="ja">
      <head>
        <meta charset="utf-8">
        <title>Vagrant Share</title>
      </head>
      <body>
        <h1>Vagrant Share のテスト</h1>
      </body>
    </html>
    EOF
        chkconfig httpd on
        service httpd start
      EOC
    end
    
  4. Box起動

    Vagrant Cloudから追加したBoxを起動します。

    $ vagrant up
    
    201407261853VVAW06.png
    201407261853VVAW07.png
    201407261853VVAW08.png
    201407261853VVAW09.png

    起動すると、Vagrantのプロビジョニングで指定したインラインシェルの内容が実行され、システム更新とウエブサーバーのインストールが行われます。

    なお、起動中にWindowsファイアウォールの警告ダイアログが表示されることがありますので、アクセスを許可するをクリックして、VirtualBox関連のプログラムのアクセスを許可します。

    201407261853VVAW10.png
    vagrant up
    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Importing base box 'chef/centos-6.5'...
    ==> default: Matching MAC address for NAT networking...
    ==> default: Checking if box 'chef/centos-6.5' is up to date...
    ==> default: Setting the name of the VM: vagrant-share_default_1406362895742_78915
    ==> default: Clearing any previously set network interfaces...
    ==> default: Preparing network interfaces based on configuration...
        default: Adapter 1: nat
    ==> default: Forwarding ports...
        default: 80 => 8080 (adapter 1)
        default: 22 => 2222 (adapter 1)
    ==> default: Running 'pre-boot' VM customizations...
    ==> 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: Connection timeout. Retrying...
        default: Warning: Connection timeout. Retrying...
        default: Warning: Remote connection disconnect. Retrying...
        default: Warning: Remote connection disconnect. Retrying...
    ==> default: Machine booted and ready!
    GuestAdditions versions on your host (4.3.12) and guest (4.3.8) do not match.
    Loaded plugins: fastestmirror
    Determining fastest mirrors
     * base: ftp.tsukuba.wide.ad.jp
     * extras: ftp.tsukuba.wide.ad.jp
     * updates: ftp.tsukuba.wide.ad.jp
    Setting up Install Process
    Package 1:make-3.81-20.el6.x86_64 already installed and latest version
    Resolving Dependencies
    --> Running transaction check
    ---> Package gcc.x86_64 0:4.4.7-4.el6 will be installed
    --> Processing Dependency: cpp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64
    --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-4.el6.x86_64
    ---> Package kernel-devel.x86_64 0:2.6.32-431.el6 will be installed
    ---> Package perl.x86_64 4:5.10.1-136.el6 will be installed
    --> Processing Dependency: perl-libs = 4:5.10.1-136.el6 for package: 4:perl-5.10.1-136.el6.x86_64
    --> Processing Dependency: perl-libs for package: 4:perl-5.10.1-136.el6.x86_64
    --> Processing Dependency: perl(version) for package: 4:perl-5.10.1-136.el6.x86_64
    --> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-136.el6.x86_64
    --> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-136.el6.x86_64
    --> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.10.1-136.el6.x86_64
    --> Running transaction check
    ---> Package cpp.x86_64 0:4.4.7-4.el6 will be installed
    ---> Package glibc-devel.x86_64 0:2.12-1.132.el6_5.2 will be installed
    --> Processing Dependency: glibc-headers = 2.12-1.132.el6_5.2 for package: glibc-devel-2.12-1.132.el6_5.2.x86_64
    --> Processing Dependency: glibc = 2.12-1.132.el6_5.2 for package: glibc-devel-2.12-1.132.el6_5.2.x86_64
    --> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.132.el6_5.2.x86_64
    ---> Package perl-Module-Pluggable.x86_64 1:3.90-136.el6 will be installed
    ---> Package perl-Pod-Simple.x86_64 1:3.13-136.el6 will be installed
    --> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-136.el6.x86_64
    ---> Package perl-libs.x86_64 4:5.10.1-136.el6 will be installed
    ---> Package perl-version.x86_64 3:0.77-136.el6 will be installed
    --> Running transaction check
    ---> Package glibc.x86_64 0:2.12-1.132.el6 will be updated
    --> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-common-2.12-1.132.el6.x86_64
    ---> Package glibc.x86_64 0:2.12-1.132.el6_5.2 will be an update
    ---> Package glibc-headers.x86_64 0:2.12-1.132.el6_5.2 will be installed
    --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.132.el6_5.2.x86_64
    --> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.132.el6_5.2.x86_64
    ---> Package perl-Pod-Escapes.x86_64 1:1.04-136.el6 will be installed
    --> Running transaction check
    ---> Package glibc-common.x86_64 0:2.12-1.132.el6 will be updated
    ---> Package glibc-common.x86_64 0:2.12-1.132.el6_5.2 will be an update
    ---> Package kernel-headers.x86_64 0:2.6.32-431.20.5.el6 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package                   Arch       Version                 Repository   Size
    ================================================================================
    Installing:
     gcc                       x86_64     4.4.7-4.el6             base         10 M
     kernel-devel              x86_64     2.6.32-431.el6          base        8.7 M
     perl                      x86_64     4:5.10.1-136.el6        base         10 M
    Installing for dependencies:
     cpp                       x86_64     4.4.7-4.el6             base        3.7 M
     glibc-devel               x86_64     2.12-1.132.el6_5.2      updates     978 k
     glibc-headers             x86_64     2.12-1.132.el6_5.2      updates     608 k
     kernel-headers            x86_64     2.6.32-431.20.5.el6     updates     2.9 M
     perl-Module-Pluggable     x86_64     1:3.90-136.el6          base         40 k
     perl-Pod-Escapes          x86_64     1:1.04-136.el6          base         32 k
     perl-Pod-Simple           x86_64     1:3.13-136.el6          base        212 k
     perl-libs                 x86_64     4:5.10.1-136.el6        base        578 k
     perl-version              x86_64     3:0.77-136.el6          base         51 k
    Updating for dependencies:
     glibc                     x86_64     2.12-1.132.el6_5.2      updates     3.8 M
     glibc-common              x86_64     2.12-1.132.el6_5.2      updates      14 M
    
    Transaction Summary
    ================================================================================
    Install      12 Package(s)
    Upgrade       2 Package(s)
    
    Total download size: 56 M
    Downloading Packages:
    --------------------------------------------------------------------------------
    Total                                           2.5 MB/s |  56 MB     00:22
    warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
    Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
    Importing GPG key 0xC105B9DE:
     Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
     Package: centos-release-6-5.el6.centos.11.1.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5)
     From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Updating   : glibc-common-2.12-1.132.el6_5.2.x86_64                      1/16
      Updating   : glibc-2.12-1.132.el6_5.2.x86_64                             2/16
      Installing : 1:perl-Pod-Escapes-1.04-136.el6.x86_64                      3/16
      Installing : 4:perl-libs-5.10.1-136.el6.x86_64                           4/16
      Installing : 1:perl-Pod-Simple-3.13-136.el6.x86_64                       5/16
      Installing : 3:perl-version-0.77-136.el6.x86_64                          6/16
      Installing : 1:perl-Module-Pluggable-3.90-136.el6.x86_64                 7/16
      Installing : 4:perl-5.10.1-136.el6.x86_64                                8/16
      Installing : cpp-4.4.7-4.el6.x86_64                                      9/16
      Installing : kernel-headers-2.6.32-431.20.5.el6.x86_64                  10/16
      Installing : glibc-headers-2.12-1.132.el6_5.2.x86_64                    11/16
      Installing : glibc-devel-2.12-1.132.el6_5.2.x86_64                      12/16
      Installing : gcc-4.4.7-4.el6.x86_64                                     13/16
      Installing : kernel-devel-2.6.32-431.el6.x86_64                         14/16
      Cleanup    : glibc-common-2.12-1.132.el6.x86_64                         15/16
      Cleanup    : glibc-2.12-1.132.el6.x86_64                                16/16
      Verifying  : 1:perl-Module-Pluggable-3.90-136.el6.x86_64                 1/16
      Verifying  : cpp-4.4.7-4.el6.x86_64                                      2/16
      Verifying  : 4:perl-5.10.1-136.el6.x86_64                                3/16
      Verifying  : 4:perl-libs-5.10.1-136.el6.x86_64                           4/16
      Verifying  : 1:perl-Pod-Simple-3.13-136.el6.x86_64                       5/16
      Verifying  : glibc-headers-2.12-1.132.el6_5.2.x86_64                     6/16
      Verifying  : 1:perl-Pod-Escapes-1.04-136.el6.x86_64                      7/16
      Verifying  : glibc-devel-2.12-1.132.el6_5.2.x86_64                       8/16
      Verifying  : kernel-devel-2.6.32-431.el6.x86_64                          9/16
      Verifying  : gcc-4.4.7-4.el6.x86_64                                     10/16
      Verifying  : 3:perl-version-0.77-136.el6.x86_64                         11/16
      Verifying  : glibc-2.12-1.132.el6_5.2.x86_64                            12/16
      Verifying  : kernel-headers-2.6.32-431.20.5.el6.x86_64                  13/16
      Verifying  : glibc-common-2.12-1.132.el6_5.2.x86_64                     14/16
      Verifying  : glibc-2.12-1.132.el6.x86_64                                15/16
      Verifying  : glibc-common-2.12-1.132.el6.x86_64                         16/16
    
    Installed:
      gcc.x86_64 0:4.4.7-4.el6           kernel-devel.x86_64 0:2.6.32-431.el6
      perl.x86_64 4:5.10.1-136.el6
    
    Dependency Installed:
      cpp.x86_64 0:4.4.7-4.el6
      glibc-devel.x86_64 0:2.12-1.132.el6_5.2
      glibc-headers.x86_64 0:2.12-1.132.el6_5.2
      kernel-headers.x86_64 0:2.6.32-431.20.5.el6
      perl-Module-Pluggable.x86_64 1:3.90-136.el6
      perl-Pod-Escapes.x86_64 1:1.04-136.el6
      perl-Pod-Simple.x86_64 1:3.13-136.el6
      perl-libs.x86_64 4:5.10.1-136.el6
      perl-version.x86_64 3:0.77-136.el6
    
    Dependency Updated:
      glibc.x86_64 0:2.12-1.132.el6_5.2   glibc-common.x86_64 0:2.12-1.132.el6_5.2
    
    Complete!
    Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
    Installing Virtualbox Guest Additions 4.3.12 - guest version is 4.3.8
    Verifying archive integrity... All good.
    Uncompressing VirtualBox 4.3.12 Guest Additions for Linux............
    VirtualBox Guest Additions installer
    Removing installed version 4.3.8 of VirtualBox Guest Additions...
    Copying additional installer modules ...
    Installing additional modules ...
    Removing existing VirtualBox non-DKMS kernel modules[  OK  ]
    Building the VirtualBox Guest Additions kernel modules
    Building the main Guest Additions module[  OK  ]
    Building the shared folder support module[  OK  ]
    Building the OpenGL support module[  OK  ]
    Doing non-kernel setup of the Guest Additions[  OK  ]
    You should restart your guest to make sure the new modules are actually used
    
    Installing the Window System drivers
    Could not find the X.Org or XFree86 Window System, skipping.
    An error occurred during installation of VirtualBox Guest Additions 4.3.12. Some functionality may not work as intended.
    In most cases it is OK that the "Window System drivers" installation failed.
    ==> default: Checking for guest additions in VM...
    ==> default: Mounting shared folders...
        default: /vagrant => D:/HOME/punio/vagrant/vagrant-share
    ==> default: Running provisioner: shell...
        default: Running: inline script
    ==> default: Loaded plugins: fastestmirror
    ==> default: Loading mirror speeds from cached hostfile
    ==> default:  * base: ftp.tsukuba.wide.ad.jp
    ==> default:  * extras: ftp.tsukuba.wide.ad.jp
    ==> default:  * updates: ftp.tsukuba.wide.ad.jp
    ==> default: Setting up Update Process
    ==> default: Resolving Dependencies
    ==> default: --> Running transaction check
    ==> default: ---> Package audit.x86_64 0:2.2-2.el6 will be updated
    ==> default: ---> Package audit.x86_64 0:2.2-4.el6_5 will be an update
    ==> default: ---> Package audit-libs.x86_64 0:2.2-2.el6 will be updated
    ==> default: ---> Package audit-libs.x86_64 0:2.2-4.el6_5 will be an update
    ==> default: ---> Package ca-certificates.noarch 0:2013.1.94-65.0.el6 will be updated
    ==> default: ---> Package ca-certificates.noarch 0:2013.1.95-65.1.el6_5 will be an update
    ==> default: ---> Package centos-release.x86_64 0:6-5.el6.centos.11.1 will be updated
    ==> default: ---> Package centos-release.x86_64 0:6-5.el6.centos.11.2 will be an update
    ==> default: ---> Package coreutils.x86_64 0:8.4-31.el6 will be updated
    ==> default: ---> Package coreutils.x86_64 0:8.4-31.el6_5.2 will be an update
    ==> default: ---> Package coreutils-libs.x86_64 0:8.4-31.el6 will be updated
    ==> default: ---> Package coreutils-libs.x86_64 0:8.4-31.el6_5.2 will be an update
    ==> default: ---> Package curl.x86_64 0:7.19.7-37.el6_4 will be updated
    ==> default: ---> Package curl.x86_64 0:7.19.7-37.el6_5.3 will be an update
    ==> default: ---> Package device-mapper-persistent-data.x86_64 0:0.2.8-2.el6 will be updated
    ==> default: ---> Package device-mapper-persistent-data.x86_64 0:0.2.8-4.el6_5 will be an update
    ==> default: ---> Package dracut.noarch 0:004-335.el6 will be updated
    ==> default: ---> Package dracut.noarch 0:004-336.el6_5.2 will be an update
    ==> default: ---> Package dracut-kernel.noarch 0:004-335.el6 will be updated
    ==> default: ---> Package dracut-kernel.noarch 0:004-336.el6_5.2 will be an update
    ==> default: ---> Package e2fsprogs.x86_64 0:1.41.12-18.el6 will be updated
    ==> default: ---> Package e2fsprogs.x86_64 0:1.41.12-18.el6_5.1 will be an update
    ==> default: ---> Package e2fsprogs-libs.x86_64 0:1.41.12-18.el6 will be updated
    ==> default: ---> Package e2fsprogs-libs.x86_64 0:1.41.12-18.el6_5.1 will be an update
    ==> default: ---> Package ethtool.x86_64 2:3.5-1.el6 will be updated
    ==> default: ---> Package ethtool.x86_64 2:3.5-1.4.el6_5 will be an update
    ==> default: ---> Package glib2.x86_64 0:2.26.1-3.el6 will be updated
    ==> default: ---> Package glib2.x86_64 0:2.26.1-7.el6_5 will be an update
    ==> default: ---> Package grep.x86_64 0:2.6.3-4.el6 will be updated
    ==> default: ---> Package grep.x86_64 0:2.6.3-4.el6_5.1 will be an update
    ==> default: ---> Package grub.x86_64 1:0.97-83.el6 will be updated
    ==> default: ---> Package grub.x86_64 1:0.97-84.el6_5 will be an update
    ==> default: ---> Package initscripts.x86_64 0:9.03.40-2.el6.centos will be updated
    ==> default: ---> Package initscripts.x86_64 0:9.03.40-2.el6.centos.3 will be an update
    ==> default: ---> Package iproute.x86_64 0:2.6.32-31.el6 will be updated
    ==> default: ---> Package iproute.x86_64 0:2.6.32-32.el6_5 will be an update
    ==> default: ---> Package kernel.x86_64 0:2.6.32-431.20.5.el6 will be installed
    ==> default: ---> Package kernel-devel.x86_64 0:2.6.32-431.20.5.el6 will be installed
    ==> default: ---> Package kernel-firmware.noarch 0:2.6.32-431.el6 will be updated
    ==> default: ---> Package kernel-firmware.noarch 0:2.6.32-431.20.5.el6 will be an update
    ==> default: ---> Package krb5-libs.x86_64 0:1.10.3-10.el6_4.6 will be updated
    ==> default: ---> Package krb5-libs.x86_64 0:1.10.3-15.el6_5.1 will be an update
    ==> default: ---> Package libblkid.x86_64 0:2.17.2-12.14.el6 will be updated
    ==> default: ---> Package libblkid.x86_64 0:2.17.2-12.14.el6_5 will be an update
    ==> default: ---> Package libcom_err.x86_64 0:1.41.12-18.el6 will be updated
    ==> default: ---> Package libcom_err.x86_64 0:1.41.12-18.el6_5.1 will be an update
    ==> default: ---> Package libcurl.x86_64 0:7.19.7-37.el6_4 will be updated
    ==> default: ---> Package libcurl.x86_64 0:7.19.7-37.el6_5.3 will be an update
    ==> default: ---> Package libss.x86_64 0:1.41.12-18.el6 will be updated
    ==> default: ---> Package libss.x86_64 0:1.41.12-18.el6_5.1 will be an update
    ==> default: ---> Package libtasn1.x86_64 0:2.3-3.el6_2.1 will be updated
    ==> default: ---> Package libtasn1.x86_64 0:2.3-6.el6_5 will be an update
    ==> default: ---> Package libtirpc.x86_64 0:0.2.1-6.el6_4 will be updated
    ==> default: ---> Package libtirpc.x86_64 0:0.2.1-6.el6_5.2 will be an update
    ==> default: ---> Package libuuid.x86_64 0:2.17.2-12.14.el6 will be updated
    ==> default: ---> Package libuuid.x86_64 0:2.17.2-12.14.el6_5 will be an update
    ==> default: ---> Package libxml2.x86_64 0:2.7.6-14.el6 will be updated
    ==> default: ---> Package libxml2.x86_64 0:2.7.6-14.el6_5.2 will be an update
    ==> default: ---> Package mysql-libs.x86_64 0:5.1.71-1.el6 will be updated
    ==> default: ---> Package mysql-libs.x86_64 0:5.1.73-3.el6_5 will be an update
    ==> default: ---> Package nfs-utils.x86_64 1:1.2.3-39.el6 will be updated
    ==> default: ---> Package nfs-utils.x86_64 1:1.2.3-39.el6_5.3 will be an update
    ==> default: ---> Package nspr.x86_64 0:4.10.0-1.el6 will be updated
    ==> default: ---> Package nspr.x86_64 0:4.10.6-1.el6_5 will be an update
    ==> default: ---> Package nss.x86_64 0:3.15.1-15.el6 will be updated
    ==> default: ---> Package nss.x86_64 0:3.16.1-4.el6_5 will be an update
    ==> default: ---> Package nss-softokn.x86_64 0:3.14.3-9.el6 will be updated
    ==> default: ---> Package nss-softokn.x86_64 0:3.14.3-10.el6_5 will be an update
    ==> default: ---> Package nss-softokn-freebl.x86_64 0:3.14.3-9.el6 will be updated
    ==> default: ---> Package nss-softokn-freebl.x86_64 0:3.14.3-10.el6_5 will be an update
    ==> default: ---> Package nss-sysinit.x86_64 0:3.15.1-15.el6 will be updated
    ==> default: ---> Package nss-sysinit.x86_64 0:3.16.1-4.el6_5 will be an update
    ==> default: ---> Package nss-tools.x86_64 0:3.15.1-15.el6 will be updated
    ==> default: ---> Package nss-tools.x86_64 0:3.16.1-4.el6_5 will be an update
    ==> default: ---> Package nss-util.x86_64 0:3.15.1-3.el6 will be updated
    ==> default: ---> Package nss-util.x86_64 0:3.16.1-1.el6_5 will be an update
    ==> default: ---> Package openldap.x86_64 0:2.4.23-32.el6_4.1 will be updated
    ==> default: ---> Package openldap.x86_64 0:2.4.23-34.el6_5.1 will be an update
    ==> default: ---> Package openssl.x86_64 0:1.0.1e-15.el6 will be updated
    ==> default: ---> Package openssl.x86_64 0:1.0.1e-16.el6_5.14 will be an update
    ==> default: ---> Package p11-kit.x86_64 0:0.18.5-2.el6 will be updated
    ==> default: ---> Package p11-kit.x86_64 0:0.18.5-2.el6_5.2 will be an update
    ==> default: ---> Package p11-kit-trust.x86_64 0:0.18.5-2.el6 will be updated
    ==> default: ---> Package p11-kit-trust.x86_64 0:0.18.5-2.el6_5.2 will be an update
    ==> default: ---> Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be updated
    ==> default: ---> Package postfix.x86_64 2:2.6.6-6.el6_5 will be an update
    ==> default: ---> Package psmisc.x86_64 0:22.6-15.el6_0.1 will be updated
    ==> default: ---> Package psmisc.x86_64 0:22.6-19.el6_5 will be an update
    ==> default: ---> Package python.x86_64 0:2.6.6-51.el6 will be updated
    ==> default: ---> Package python.x86_64 0:2.6.6-52.el6 will be an update
    ==> default: ---> Package python-libs.x86_64 0:2.6.6-51.el6 will be updated
    ==> default: ---> Package python-libs.x86_64 0:2.6.6-52.el6 will be an update
    ==> default: ---> Package selinux-policy.noarch 0:3.7.19-231.el6 will be updated
    ==> default: ---> Package selinux-policy.noarch 0:3.7.19-231.el6_5.3 will be an update
    ==> default: ---> Package selinux-policy-targeted.noarch 0:3.7.19-231.el6 will be updated
    ==> default: ---> Package selinux-policy-targeted.noarch 0:3.7.19-231.el6_5.3 will be an update
    ==> default: ---> Package tzdata.noarch 0:2013g-1.el6 will be updated
    ==> default: ---> Package tzdata.noarch 0:2014e-1.el6 will be an update
    ==> default: ---> Package upstart.x86_64 0:0.6.5-12.el6_4.1 will be updated
    ==> default: ---> Package upstart.x86_64 0:0.6.5-13.el6_5.3 will be an update
    ==> default: ---> Package util-linux-ng.x86_64 0:2.17.2-12.14.el6 will be updated
    ==> default: ---> Package util-linux-ng.x86_64 0:2.17.2-12.14.el6_5 will be an update
    ==> default: ---> Package wget.x86_64 0:1.12-1.8.el6 will be updated
    ==> default: ---> Package wget.x86_64 0:1.12-1.11.el6_5 will be an update
    ==> default: ---> Package yum.noarch 0:3.2.29-40.el6.centos will be updated
    ==> default: ---> Package yum.noarch 0:3.2.29-43.el6.centos will be an update
    ==> default: ---> Package yum-plugin-fastestmirror.noarch 0:1.1.30-14.el6 will be updated
    ==> default: ---> Package yum-plugin-fastestmirror.noarch 0:1.1.30-17.el6_5 will be an update
    ==> default: --> Finished Dependency Resolution
    ==> default:
    ==> default: Dependencies Resolved
    ==> default:
    ==> default: ================================================================================
    ==> default:  Package                        Arch    Version                  Repository
    ==> default:                                                                            Size
    ==> default: ================================================================================
    ==> default: Installing:
    ==> default:  kernel                         x86_64  2.6.32-431.20.5.el6      updates   28 M
    ==> default:  kernel-devel                   x86_64  2.6.32-431.20.5.el6      updates  8.8 M
    ==> default: Updating:
    ==> default:  audit                          x86_64  2.2-4.el6_5              updates  225 k
    ==> default:  audit-libs                     x86_64  2.2-4.el6_5              updates   60 k
    ==> default:  ca-certificates                noarch  2013.1.95-65.1.el6_5     updates  1.1 M
    ==> default:  centos-release                 x86_64  6-5.el6.centos.11.2      updates   20 k
    ==> default:  coreutils                      x86_64  8.4-31.el6_5.2           updates  3.0 M
    ==> default:  coreutils-libs                 x86_64  8.4-31.el6_5.2           updates   50 k
    ==> default:  curl                           x86_64  7.19.7-37.el6_5.3        updates  194 k
    ==> default:  device-mapper-persistent-data  x86_64  0.2.8-4.el6_5            updates  1.1 M
    ==> default:  dracut                         noarch  004-336.el6_5.2          updates  122 k
    ==> default:  dracut-kernel                  noarch  004-336.el6_5.2          updates   24 k
    ==> default:  e2fsprogs                      x86_64  1.41.12-18.el6_5.1       updates  553 k
    ==> default:  e2fsprogs-libs                 x86_64  1.41.12-18.el6_5.1       updates  120 k
    ==> default:  ethtool                        x86_64  2:3.5-1.4.el6_5          updates  101 k
    ==> default:  glib2                          x86_64  2.26.1-7.el6_5           updates  1.6 M
    ==> default:  grep                           x86_64  2.6.3-4.el6_5.1          updates  229 k
    ==> default:  grub                           x86_64  1:0.97-84.el6_5          updates  933 k
    ==> default:  initscripts                    x86_64  9.03.40-2.el6.centos.3   updates  940 k
    ==> default:  iproute                        x86_64  2.6.32-32.el6_5          updates  365 k
    ==> default:  kernel-firmware                noarch  2.6.32-431.20.5.el6      updates   13 M
    ==> default:  krb5-libs                      x86_64  1.10.3-15.el6_5.1        updates  761 k
    ==> default:  libblkid                       x86_64  2.17.2-12.14.el6_5       updates  115 k
    ==> default:  libcom_err                     x86_64  1.41.12-18.el6_5.1       updates   37 k
    ==> default:  libcurl                        x86_64  7.19.7-37.el6_5.3        updates  166 k
    ==> default:  libss                          x86_64  1.41.12-18.el6_5.1       updates   41 k
    ==> default:  libtasn1                       x86_64  2.3-6.el6_5              updates  238 k
    ==> default:  libtirpc                       x86_64  0.2.1-6.el6_5.2          updates   79 k
    ==> default:  libuuid                        x86_64  2.17.2-12.14.el6_5       updates   68 k
    ==> default:  libxml2                        x86_64  2.7.6-14.el6_5.2         updates  800 k
    ==> default:  mysql-libs                     x86_64  5.1.73-3.el6_5           updates  1.2 M
    ==> default:  nfs-utils                      x86_64  1:1.2.3-39.el6_5.3       updates  321 k
    ==> default:  nspr                           x86_64  4.10.6-1.el6_5           updates  113 k
    ==> default:  nss                            x86_64  3.16.1-4.el6_5           updates  832 k
    ==> default:  nss-softokn                    x86_64  3.14.3-10.el6_5          updates  265 k
    ==> default:  nss-softokn-freebl             x86_64  3.14.3-10.el6_5          updates  157 k
    ==> default:  nss-sysinit                    x86_64  3.16.1-4.el6_5           updates   41 k
    ==> default:  nss-tools                      x86_64  3.16.1-4.el6_5           updates  360 k
    ==> default:  nss-util                       x86_64  3.16.1-1.el6_5           updates   64 k
    ==> default:  openldap                       x86_64  2.4.23-34.el6_5.1        updates  265 k
    ==> default:  openssl                        x86_64  1.0.1e-16.el6_5.14       updates  1.5 M
    ==> default:  p11-kit                        x86_64  0.18.5-2.el6_5.2         updates   94 k
    ==> default:  p11-kit-trust                  x86_64  0.18.5-2.el6_5.2         updates   71 k
    ==> default:  postfix                        x86_64  2:2.6.6-6.el6_5          updates  2.0 M
    ==> default:  psmisc                         x86_64  22.6-19.el6_5            updates   81 k
    ==> default:  python                         x86_64  2.6.6-52.el6             updates   74 k
    ==> default:  python-libs                    x86_64  2.6.6-52.el6             updates  5
    ==> default: .3 M
    ==> default:  selinux-policy                 noarch  3.7.19-231.el6_5.3       updates  825 k
    ==> default:  selinux-policy-targeted        noarch  3.7.19-231.el6_5.3       updates  2.8 M
    ==> default:  tzdata                         noarch  2014e-1.el6              updates  453 k
    ==> default:  upstart                        x86_64  0.6.5-13.el6_5.3         updates  177 k
    ==> default:  util-linux-ng                  x86_64  2.17.2-12.14.el6_5       updates  1.5 M
    ==> default:  wget                           x86_64  1.12-1.11.el6_5          updates  483 k
    ==> default:  yum                            noarch  3.2.29-43.el6.centos     updates  996 k
    ==> default:  yum-plugin-fastestmirror       noarch  1.1.30-17.el6_5          updates   28 k
    ==> default:
    ==> default: Transaction Summary
    ==> default: ================================================================================
    ==> default: Install       2 Package(s)
    ==> default: Upgrade      53 Package(s)
    ==> default: Total download size: 82 M
    ==> default: Downloading Packages:
    ==> default: --------------------------------------------------------------------------------
    ==> default: Total                                           4.0 MB/s |  82 MB     00:20
    ==> default: Running rpm_check_debug
    ==> default: Running Transaction Test
    ==> default: Transaction Test Succeeded
    ==> default: Running Transaction
      Updating   : libcom_err-1.41.12-18.el6_5.1.x86_64                       1/108
    ==> default:
      Updating   : nspr-4.10.6-1.el6_5.x86_64                                 2/108
    ==> default:
      Updating   : nss-util-3.16.1-1.el6_5.x86_64                             3/108
    ==> default:
      Updating   : grep-2.6.3-4.el6_5.1.x86_64                                4/108
    ==> default:
      Updating   : coreutils-8.4-31.el6_5.2.x86_64                            5/108
    ==> default:
      Updating   : coreutils-libs-8.4-31.el6_5.2.x86_64                       6/108
    ==> default:
      Updating   : krb5-libs-1.10.3-15.el6_5.1.x86_64                         7/108
    ==> default:
      Updating   : nss-softokn-freebl-3.14.3-10.el6_5.x86_64                  8/108
    ==> default:
      Updating   : libuuid-2.17.2-12.14.el6_5.x86_64                          9/108
    ==> default:
      Updating   : libblkid-2.17.2-12.14.el6_5.x86_64                        10/108
    ==> default:
      Updating   : audit-libs-2.2-4.el6_5.x86_64                             11/108
    ==> default:
      Updating   : util-linux-ng-2.17.2-12.14.el6_5.x86_64                   12/108
    ==> default:
      Updating   : nss-softokn-3.14.3-10.el6_5.x86_64                        13/108
    ==> default:
      Updating   : nss-3.16.1-4.el6_5.x86_64                                 14/108
    ==> default:
      Updating   : nss-sysinit-3.16.1-4.el6_5.x86_64                         15/108
    ==> default:
      Updating   : libtasn1-2.3-6.el6_5.x86_64                               16/108
    ==> default:
      Updating   : p11-kit-0.18.5-2.el6_5.2.x86_64                           17/108
    ==> default:
      Updating   : p11-kit-trust-0.18.5-2.el6_5.2.x86_64                     18/108
    ==> default:
      Updating   : ca-certificates-2013.1.95-65.1.el6_5.noarch               19/108
    ==> default:
    ==> default: warning: /etc/pki/tls/certs/ca-bundle.crt created as /etc/pki/tls/certs/ca-bundle.crt.rpmnew
      Updating   : openssl-1.0.1e-16.el6_5.14.x86_64                         20/108
    ==> default:
      Updating   : python-2.6.6-52.el6.x86_64                                21/108
    ==> default:
      Updating   : python-libs-2.6.6-52.el6.x86_64                           22/108
    ==> default:
      Updating   : yum-plugin-fastestmirror-1.1.30-17.el6_5.noarch           23/108
    ==> default:
      Updating   : yum-3.2.29-43.el6.centos.noarch                           24/108
    ==> default:
      Updating   : mysql-libs-5.1.73-3.el6_5.x86_64                          25/108
    ==> default:
      Updating   : nss-tools-3.16.1-4.el6_5.x86_64                           26/108
    ==> default:
      Updating   : openldap-2.4.23-34.el6_5.1.x86_64                         27/108
    ==> default:
      Updating   : libcurl-7.19.7-37.el6_5.3.x86_64                          28/108
    ==> default:
      Updating   : upstart-0.6.5-13.el6_5.3.x86_64                           29/108
    ==> default:
      Updating   : selinux-policy-3.7.19-231.el6_5.3.noarch                  30/108
    ==> default:
      Updating   : libss-1.41.12-18.el6_5.1.x86_64                           31/108
    ==> default:
      Updating   : e2fsprogs-libs-1.41.12-18.el6_5.1.x86_64                  32/108
    ==> default:
      Updating   : glib2-2.26.1-7.el6_5.x86_64                               33/108
    ==> default:
      Updating   : kernel-firmware-2.6.32-431.20.5.el6.noarch                34/108
    ==> default:
      Updating   : libtirpc-0.2.1-6.el6_5.2.x86_64                           35/108
    ==> default:
      Updating   : iproute-2.6.32-32.el6_5.x86_64                            36/108
    ==> default:
      Updating   : psmisc-22.6-19.el6_5.x86_64                               37/108
    ==> default:
      Updating   : 2:ethtool-3.5-1.4.el6_5.x86_64                            38/108
    ==> default:
      Updating   : centos-release-6-5.el6.centos.11.2.x86_64                 39/108
    ==> default:
      Updating   : initscripts-9.03.40-2.el6.centos.3.x86_64                 40/108
    ==> default:
      Updating   : dracut-004-336.el6_5.2.noarch                             41/108
    ==> default:
      Updating   : dracut-kernel-004-336.el6_5.2.noarch                      42/108
    ==> default:
      Installing : kernel-2.6.32-431.20.5.el6.x86_64                         43/108
    ==> default:
      Updating   : 2:postfix-2.6.6-6.el6_5.x86_64                            44/108
    ==> default:
      Updating   : 1:nfs-utils-1.2.3-39.el6_5.3.x86_64                       45/108
    ==> default:
      Updating   : e2fsprogs-1.41.12-18.el6_5.1.x86_64                       46/108
    ==> default:
      Updating   : selinux-policy-targeted-3.7.19-231.el6_5.3.noarch         47/108
    ==> default:
      Updating   : curl-7.19.7-37.el6_5.3.x86_64                             48/108
    ==> default:
      Updating   : 1:grub-0.97-84.el6_5.x86_64                               49/108
    ==> default:
      Updating   : wget-1.12-1.11.el6_5.x86_64                               50/108
    ==> default:
      Updating   : audit-2.2-4.el6_5.x86_64                                  51/108
    ==> default:
      Installing : kernel-devel-2.6.32-431.20.5.el6.x86_64                   52/108
    ==> default:
      Updating   : libxml2-2.7.6-14.el6_5.2.x86_64                           53/108
    ==> default:
      Updating   : device-mapper-persistent-data-0.2.8-4.el6_5.x86_64        54/108
    ==> default:
      Updating   : tzdata-2014e-1.el6.noarch                                 55/108
    ==> default:
      Cleanup    : yum-plugin-fastestmirror-1.1.30-14.el6.noarch             56/108
    ==> default:
      Cleanup    : yum-3.2.29-40.el6.centos.noarch                           57/108
    ==> default:
      Cleanup    : 1:grub-0.97-83.el6.x86_64                                 58/108
    ==> default:
      Cleanup    : selinux-policy-targeted-3.7.19-231.el6.noarch             59/108
    ==> default:
      Cleanup    : selinux-policy-3.7.19-231.el6.noarch                      60/108
    ==> default:
      Cleanup    : dracut-kernel-004-335.el6.noarch                          61/108
    ==> default:
      Cleanup    : dracut-004-335.el6.noarch                                 62/108
    ==> default:
      Cleanup    : kernel-firmware-2.6.32-431.el6.noarch                     63/108
    ==> default:
      Cleanup    : tzdata-2013g-1.el6.noarch                                 64/108
    ==> default:
      Cleanup    : 1:nfs-utils-1.2.3-39.el6.x86_64                           65/108
    ==> default:
      Cleanup    : curl-7.19.7-37.el6_4.x86_64                               66/108
    ==> default:
      Cleanup    : libcurl-7.19.7-37.el6_4.x86_64                            67/108
    ==> default:
      Cleanup    : 2:postfix-2.6.6-2.2.el6_1.x86_64                          68/108
    ==> default:
      Cleanup    : initscripts-9.03.40-2.el6.centos.x86_64                   69/108
    ==> default:
      Cleanup    : openldap-2.4.23-32.el6_4.1.x86_64                         70/108
    ==> default:
      Cleanup    : e2fsprogs-1.41.12-18.el6.x86_64                           71/108
    ==> default:
      Cleanup    : nss-tools-3.15.1-15.el6.x86_64                            72/108
    ==> default:
      Cleanup    : nss-sysinit-3.15.1-15.el6.x86_64                          73/108
    ==> default:
      Cleanup    : nss-3.15.1-15.el6.x86_64                                  74/108
    ==> default:
      Cleanup    : nss-softokn-3.14.3-9.el6.x86_64                           75/108
    ==> default:
      Cleanup    : util-linux-ng-2.17.2-12.14.el6.x86_64                     76/108
    ==> default:
      Cleanup    : audit-2.2-2.el6.x86_64                                    77/108
    ==> default:
      Cleanup    : libblkid-2.17.2-12.14.el6.x86_64                          78/108
    ==> default:
      Cleanup    : nss-util-3.15.1-3.el6.x86_64                              79/108
    ==> default:
      Cleanup    : e2fsprogs-libs-1.41.12-18.el6.x86_64                      80/108
    ==> default:
      Cleanup    : libss-1.41.12-18.el6.x86_64                               81/108
    ==> default:
      Cleanup    : upstart-0.6.5-12.el6_4.1.x86_64                           82/108
    ==> default:
      Cleanup    : mysql-libs-5.1.71-1.el6.x86_64                            83/108
    ==> default:
      Cleanup    : python-libs-2.6.6-51.el6.x86_64                           84/108
    ==> default:
      Cleanup    : python-2.6.6-51.el6.x86_64                                85/108
    ==> default:
      Cleanup    : wget-1.12-1.8.el6.x86_64                                  86/108
    ==> default:
      Cleanup    : centos-release-6-5.el6.centos.11.1.x86_64                 87/108
    ==> default:
      Cleanup    : openssl-1.0.1e-15.el6.x86_64                              88/108
    ==> default:
      Cleanup    : ca-certificates-2013.1.94-65.0.el6.noarch                 89/108
    ==> default:
      Cleanup    : p11-kit-trust-0.18.5-2.el6.x86_64                         90/108
    ==> default:
      Cleanup    : p11-kit-0.18.5-2.el6.x86_64                               91/108
    ==> default:
      Cleanup    : coreutils-libs-8.4-31.el6.x86_64                          92/108
    ==> default:
      Cleanup    : coreutils-8.4-31.el6.x86_64                               93/108
    ==> default:
      Cleanup    : krb5-libs-1.10.3-10.el6_4.6.x86_64                        94/108
    ==> default:
      Cleanup    : libcom_err-1.41.12-18.el6.x86_64                          95/108
    ==> default:
      Cleanup    : grep-2.6.3-4.el6.x86_64                                   96/108
    ==> default:
      Cleanup    : nss-softokn-freebl-3.14.3-9.el6.x86_64                    97/108
    ==> default:
      Cleanup    : libtasn1-2.3-3.el6_2.1.x86_64                             98/108
    ==> default:
      Cleanup    : audit-libs-2.2-2.el6.x86_64                               99/108
    ==> default:
      Cleanup    : nspr-4.10.0-1.el6.x86_64                                 100/108
    ==> default:
      Cleanup    : libuuid-2.17.2-12.14.el6.x86_64                          101/108
    ==> default:
      Cleanup    : psmisc-22.6-15.el6_0.1.x86_64                            102/108
    ==> default:
      Cleanup    : iproute-2.6.32-31.el6.x86_64                             103/108
    ==> default:
      Cleanup    : 2:ethtool-3.5-1.el6.x86_64                               104/108
    ==> default:
      Cleanup    : glib2-2.26.1-3.el6.x86_64                                105/108
    ==> default:
      Cleanup    : libtirpc-0.2.1-6.el6_4.x86_64                            106/108
    ==> default:
      Cleanup    : libxml2-2.7.6-14.el6.x86_64                              107/108
    ==> default:
      Cleanup    : device-mapper-persistent-data-0.2.8-2.el6.x86_64         108/108
    ==> default:
      Verifying  : centos-release-6-5.el6.centos.11.2.x86_64                  1/108
    ==> default:
      Verifying  : libtasn1-2.3-6.el6_5.x86_64                                2/108
    ==> default:
      Verifying  : 2:ethtool-3.5-1.4.el6_5.x86_64                             3/108
    ==> default:
      Verifying  : nss-util-3.16.1-1.el6_5.x86_64                             4/108
    ==> default:
      Verifying  : tzdata-2014e-1.el6.noarch                                  5/108
    ==> default:
      Verifying  : nspr-4.10.6-1.el6_5.x86_64                                 6/108
    ==> default:
      Verifying  : device-mapper-persistent-data-0.2.8-4.el6_5.x86_64         7/108
    ==> default:
      Verifying  : ca-certificates-2013.1.95-65.1.el6_5.noarch                8/108
    ==> default:
      Verifying  : p11-kit-0.18.5-2.el6_5.2.x86_64                            9/108
    ==> default:
      Verifying  : wget-1.12-1.11.el6_5.x86_64                               10/108
    ==> default:
      Verifying  : nss-3.16.1-4.el6_5.x86_64                                 11/108
    ==> default:
      Verifying  : nss-softokn-freebl-3.14.3-10.el6_5.x86_64                 12/108
    ==> default:
      Verifying  : yum-3.2.29-43.el6.centos.noarch                           13/108
    ==> default:
      Verifying  : curl-7.19.7-37.el6_5.3.x86_64                             14/108
    ==> default:
      Verifying  : upstart-0.6.5-13.el6_5.3.x86_64                           15/108
    ==> default:
      Verifying  : libss-1.41.12-18.el6_5.1.x86_64                           16/108
    ==> default:
      Verifying  : psmisc-22.6-19.el6_5.x86_64                               17/108
    ==> default:
      Verifying  : iproute-2.6.32-32.el6_5.x86_64                            18/108
    ==> default:
      Verifying  : python-libs-2.6.6-52.el6.x86_64                           19/108
    ==> default:
      Verifying  : selinux-policy-3.7.19-231.el6_5.3.noarch                  20/108
    ==> default:
      Verifying  : audit-2.2-4.el6_5.x86_64                                  21/108
    ==> default:
      Verifying  : libtirpc-0.2.1-6.el6_5.2.x86_64                           22/108
    ==> default:
      Verifying  : p11-kit-trust-0.18.5-2.el6_5.2.x86_64                     23/108
    ==> default:
      Verifying  : selinux-policy-targeted-3.7.19-231.el6_5.3.noarch         24/108
    ==> default:
      Verifying  : python-2.6.6-52.el6.x86_64                                25/108
    ==> default:
      Verifying  : openssl-1.0.1e-16.el6_5.14.x86_64                         26/108
    ==> default:
      Verifying  : e2fsprogs-libs-1.41.12-18.el6_5.1.x86_64                  27/108
    ==> default:
      Verifying  : coreutils-libs-8.4-31.el6_5.2.x86_64                      28/108
    ==> default:
      Verifying  : mysql-libs-5.1.73-3.el6_5.x86_64                          29/108
    ==> default:
      Verifying  : krb5-libs-1.10.3-15.el6_5.1.x86_64                        30/108
    ==> default:
      Verifying  : libblkid-2.17.2-12.14.el6_5.x86_64                        31/108
    ==> default:
      Verifying  : libxml2-2.7.6-14.el6_5.2.x86_64                           32/108
    ==> default:
      Verifying  : kernel-devel-2.6.32-431.20.5.el6.x86_64                   33/108
    ==> default:
      Verifying  : e2fsprogs-1.41.12-18.el6_5.1.x86_64                       34/108
    ==> default:
      Verifying  : kernel-2.6.32-431.20.5.el6.x86_64                         35/108
    ==> default:
      Verifying  : nss-tools-3.16.1-4.el6_5.x86_64                           36/108
    ==> default:
      Verifying  : openldap-2.4.23-34.el6_5.1.x86_64                         37/108
    ==> default:
      Verifying  : nss-softokn-3.14.3-10.el6_5.x86_64                        38/108
    ==> default:
      Verifying  : kernel-firmware-2.6.32-431.20.5.el6.noarch                39/108
    ==> default:
      Verifying  : yum-plugin-fastestmirror-1.1.30-17.el6_5.noarch           40/108
    ==> default:
      Verifying  : 1:nfs-utils-1.2.3-39.el6_5.3.x86_64                       41/108
    ==> default:
      Verifying  : audit-libs-2.2-4.el6_5.x86_64                             42/108
    ==> default:
      Verifying  : 2:postfix-2.6.6-6.el6_5.x86_64                            43/108
    ==> default:
      Verifying  : util-linux-ng-2.17.2-12.14.el6_5.x86_64                   44/108
    ==> default:
      Verifying  : grep-2.6.3-4.el6_5.1.x86_64                               45/108
    ==> default:
      Verifying  : nss-sysinit-3.16.1-4.el6_5.x86_64                         46/108
    ==> default:
      Verifying  : 1:grub-0.97-84.el6_5.x86_64                               47/108
    ==> default:
      Verifying  : dracut-kernel-004-336.el6_5.2.noarch                      48/108
    ==> default:
      Verifying  : glib2-2.26.1-7.el6_5.x86_64                               49/108
    ==> default:
      Verifying  : dracut-004-336.el6_5.2.noarch                             50/108
    ==> default:
      Verifying  : libcom_err-1.41.12-18.el6_5.1.x86_64                      51/108
    ==> default:
      Verifying  : initscripts-9.03.40-2.el6.centos.3.x86_64                 52/108
    ==> default:
      Verifying  : libuuid-2.17.2-12.14.el6_5.x86_64                         53/108
    ==> default:
      Verifying  : coreutils-8.4-31.el6_5.2.x86_64                           54/108
    ==> default:
      Verifying  : libcurl-7.19.7-37.el6_5.3.x86_64                          55/108
    ==> default:
      Verifying  : openssl-1.0.1e-15.el6.x86_64                              56/108
    ==> default:
      Verifying  : libtirpc-0.2.1-6.el6_4.x86_64                             57/108
    ==> default:
      Verifying  : libxml2-2.7.6-14.el6.x86_64                               58/108
    ==> default:
      Verifying  : device-mapper-persistent-data-0.2.8-2.el6.x86_64          59/108
    ==> default:
      Verifying  : nss-softokn-3.14.3-9.el6.x86_64                           60/108
    ==> default:
      Verifying  : krb5-libs-1.10.3-10.el6_4.6.x86_64                        61/108
    ==> default:
      Verifying  : dracut-kernel-004-335.el6.noarch                          62/108
    ==> default:
      Verifying  : audit-2.2-2.el6.x86_64                                    63/108
    ==> default:
      Verifying  : nss-softokn-freebl-3.14.3-9.el6.x86_64                    64/108
    ==> default:
      Verifying  : curl-7.19.7-37.el6_4.x86_64                               65/108
    ==> default:
      Verifying  : p11-kit-trust-0.18.5-2.el6.x86_64                         66/108
      Verifying  : nss-sysinit-3.15.1-15.el6.x86_64                          67/108
    ==> default:
      Verifying  : libtasn1-2.3-3.el6_2.1.x86_64                             68/108
    ==> default:
      Verifying  : wget-1.12-1.8.el6.x86_64                                  69/108
    ==> default:
      Verifying  : util-linux-ng-2.17.2-12.14.el6.x86_64                     70/108
      Verifying  : nspr-4.10.0-1.el6.x86_64                                  71/108
      Verifying  : dracut-004-335.el6.noarch                                 72/108
    ==> default:
      Verifying  : p11-kit-0.18.5-2.el6.x86_64                               73/108
    ==> default:
      Verifying  : yum-3.2.29-40.el6.centos.noarch                           74/108
    ==> default:
      Verifying  : nss-util-3.15.1-3.el6.x86_64                              75/108
    ==> default:
      Verifying  : e2fsprogs-1.41.12-18.el6.x86_64                           76/108
    ==> default:
      Verifying  : libblkid-2.17.2-12.14.el6.x86_64                          77/108
    ==> default:
      Verifying  : openldap-2.4.23-32.el6_4.1.x86_64                         78/108
    ==> default:
      Verifying  : grep-2.6.3-4.el6.x86_64                                   79/108
    ==> default:
      Verifying  : selinux-policy-targeted-3.7.19-231.el6.noarch             80/108
    ==> default:
      Verifying  : centos-release-6-5.el6.centos.11.1.x86_64                 81/108
    ==> default:
      Verifying  : ca-certificates-2013.1.94-65.0.el6.noarch                 82/108
    ==> default:
      Verifying  : psmisc-22.6-15.el6_0.1.x86_64                             83/108
    ==> default:
      Verifying  : 2:ethtool-3.5-1.el6.x86_64                                84/108
    ==> default:
      Verifying  : iproute-2.6.32-31.el6.x86_64                              85/108
    ==> default:
      Verifying  : kernel-firmware-2.6.32-431.el6.noarch                     86/108
    ==> default:
      Verifying  : audit-libs-2.2-2.el6.x86_64                               87/108
    ==> default:
      Verifying  : 2:postfix-2.6.6-2.2.el6_1.x86_64                          88/108
    ==> default:
      Verifying  : tzdata-2013g-1.el6.noarch                                 89/108
    ==> default:
      Verifying  : libss-1.41.12-18.el6.x86_64                               90/108
    ==> default:
      Verifying  : coreutils-libs-8.4-31.el6.x86_64                          91/108
    ==> default:
      Verifying  : upstart-0.6.5-12.el6_4.1.x86_64                           92/108
    ==> default:
      Verifying  : mysql-libs-5.1.71-1.el6.x86_64                            93/108
    ==> default:
      Verifying  : 1:grub-0.97-83.el6.x86_64                                 94/108
    ==> default:
      Verifying  : libcom_err-1.41.12-18.el6.x86_64                          95/108
    ==> default:
      Verifying  : e2fsprogs-libs-1.41.12-18.el6.x86_64                      96/108
    ==> default:
      Verifying  : nss-tools-3.15.1-15.el6.x86_64                            97/108
    ==> default:
      Verifying  : yum-plugin-fastestmirror-1.1.30-14.el6.noarch             98/108
      Verifying  : initscripts-9.03.40-2.el6.centos.x86_64                   99/108
    ==> default:
      Verifying  : nss-3.15.1-15.el6.x86_64                                 100/108
    ==> default:
      Verifying  : libuuid-2.17.2-12.14.el6.x86_64                          101/108
    ==> default:
      Verifying  : python-libs-2.6.6-51.el6.x86_64                          102/108
    ==> default:
      Verifying  : selinux-policy-3.7.19-231.el6.noarch                     103/108
    ==> default:
      Verifying  : coreutils-8.4-31.el6.x86_64                              104/108
    ==> default:
      Verifying  : python-2.6.6-51.el6.x86_64                               105/108
    ==> default:
      Verifying  : 1:nfs-utils-1.2.3-39.el6.x86_64                          106/108
    ==> default:
      Verifying  : glib2-2.26.1-3.el6.x86_64                                107/108
    ==> default:
      Verifying  : libcurl-7.19.7-37.el6_4.x86_64                           108/108
    ==> default:
    ==> default:
    ==> default: Installed:
    ==> default:   kernel.x86_64 0:2.6.32-431.20.5.el6 kernel-devel.x86_64 0:2.6.32-431.20.5.el6
    ==> default:
    ==> default: Updated:
    ==> default:   audit.x86_64 0:2.2-4.el6_5                                       
    ==> default:   audit-libs.x86_64 0:2.2-4.el6_5                                  
    ==> default:   ca-certificates.noarch 0:2013.1.95-65.1.el6_5                    
    ==> default:   centos-release.x86_64 0:6-5.el6.centos.11.2                      
    ==> default:   coreutils.x86_64 0:8.4-31.el6_5.2                                
    ==> default:   coreutils-libs.x86_64 0:8.4-31.el6_5.2                           
    ==> default:   curl.x86_64 0:7.19.7-37.el6_5.3                                  
    ==> default:   device-mapper-persistent-data.x86_64 0:0.2.8-4.el6_5             
    ==> default:   dracut.noarch 0:004-336.el6_5.2                                  
    ==> default:   dracut-kernel.noarch 0:004-336.el6_5.2                           
    ==> default:   e2fsprogs.x86_64 0:1.41.12-18.el6_5.1                            
    ==> default:   e2fsprogs-libs.x86_64 0:1.41.12-18.el6_5.1                       
    ==> default:   ethtool.x86_64 2:3.5-1.4.el6_5                                   
    ==> default:   glib2.x86_64 0:2.26.1-7.el6_5                                    
    ==> default:   grep.x86_64 0:2.6.3-4.el6_5.1                                    
    ==> default:   grub.x86_64 1:0.97-84.el6_5                                      
    ==> default:   initscripts.x86_64 0:9.03.40-2.el6.centos.3                      
    ==> default:   iproute.x86_64 0:2.6.32-32.el6_5                                 
    ==> default:   kernel-firmware.noarch 0:2.6.32-431.20.5.el6                     
    ==> default:   krb5-libs.x86_64 0:1.10.3-15.el6_5.1                             
    ==> default:   libblkid.x86_64 0:2.17.2-12.14.el6_5                             
    ==> default:   libcom_err.x86_64 0:1.41.12-18.el6_5.1                           
    ==> default:   libcurl.x86_64 0:7.19.7-37.el6_5.3                               
    ==> default:   libss.x86_64 0:1.41.12-18.el6_5.1                                
    ==> default:   libtasn1.x86_64 0:2.3-6.el6_5                                    
    ==> default:   libtirpc.x86_64 0:0.2.1-6.el6_5.2                                
    ==> default:   libuuid.x86_64 0:2.17.2-12.14.el6_5                              
    ==> default:   libxml2.x86_64 0:2.7.6-14.el6_5.2                                
    ==> default:   mysql-libs.x86_64 0:5.1.73-3.el6_5                               
    ==> default:   nfs-utils.x86_64 1:1.2.3-39.el6_5.3                              
    ==> default:   nspr.x86_64 0:4.10.6-1.el6_5                                     
    ==> default:   nss.x86_64 0:3.16.1-4.el6_5                                      
    ==> default:   nss-softokn.x86_64 0:3.14.3-10.el6_5                             
    ==> default:   nss-softokn-freebl.x86_64 0:3.14.3-10.el6_5                      
    ==> default:   nss-sysinit.x86_64 0:3.16.1-4.el6_5                              
    ==> default:   nss-tools.x86_64 0:3.16.1-4.el6_5                                
    ==> default:   nss-util.x86_64 0:3.16.1-1.el6_5                                 
    ==> default:   openldap.x86_64 0:2.4.23-34.el6_5.1                              
    ==> default:   openssl.x86_64 0:1.0.1e-16.el6_5.14                              
    ==> default:   p11-kit.x86_64 0:0.18.5-2.el6_5.2                                
    ==> default:   p11-kit-trust.x86_64 0:0.18.5-2.el6_5.2                          
    ==> default:   postfix.x86_64 2:2.6.6-6.el6_5                                   
    ==> default:   psmisc.x86_64 0:22.6-19.el6_5                                    
    ==> default:   python.x86_64 0:2.6.6-52.el6                                     
    ==> default:   python-libs.x86_64 0:2.6.6-52.el6                                
    ==> default:   selinux-policy.noarch 0:3.7.19-231.el6_5.3                       
    ==> default:   selinux-policy-targeted.noarch 0:3.7.19-231.el6_5.3              
    ==> default:   tzdata.noarch 0:2014e-1.el6                                      
    ==> default:   upstart.x86_64 0:0.6.5-13.el6_5.3                                
    ==> default:   util-linux-ng.x86_64
    ==> default: 0:2.17.2-12.14.el6_5
    ==> default:   wget.x86_64 0:1.12-1.11.el6_5                                    
    ==> default:   yum.noarch 0:3.2.29-43.el6.centos                                
    ==> default:   yum-plugin-fastestmirror.noarch 0:1.1.30-17.el6_5                
    ==> default: Complete!
    ==> default: Loaded plugins: fastestmirror
    ==> default: Loading mirror speeds from cached hostfile
    ==> default:  * base: ftp.tsukuba.wide.ad.jp
    ==> default:  * extras: ftp.tsukuba.wide.ad.jp
    ==> default:  * updates: ftp.tsukuba.wide.ad.jp
    ==> default: Setting up Install Process
    ==> default: Resolving Dependencies
    ==> default: --> Running transaction check
    ==> default: ---> Package httpd.x86_64 0:2.2.15-31.el6.centos will be installed
    ==> default: --> Processing Dependency: httpd-tools = 2.2.15-31.el6.centos for package: httpd-2.2.15-31.el6.centos.x86_64
    ==> default: --> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-31.el6.centos.x86_64
    ==> default: --> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-31.el6.centos.x86_64
    ==> default: --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-31.el6.centos.x86_64
    ==> default: --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-31.el6.centos.x86_64
    ==> default: --> Running transaction check
    ==> default: ---> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed
    ==> default: ---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed
    ==> default: ---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed
    ==> default: ---> Package httpd-tools.x86_64 0:2.2.15-31.el6.centos will be installed
    ==> default: ---> Package mailcap.noarch 0:2.1.31-2.el6 will be installed
    ==> default: --> Finished Dependency Resolution
    ==> default:
    ==> default: Dependencies Resolved
    ==> default:
    ==> default: ================================================================================
    ==> default:  Package            Arch        Version                      Repository    Size
    ==> default: ================================================================================
    ==> default: Installing:
    ==> default:  httpd              x86_64      2.2.15-31.el6.centos         updates      824 k
    ==> default: Installing for dependencies:
    ==> default:  apr                x86_64      1.3.9-5.el6_2                base         123 k
    ==> default:  apr-util           x86_64      1.3.9-3.el6_0.1              base          87 k
    ==> default:  apr-util-ldap      x86_64      1.3.9-3.el6_0.1              base          15 k
    ==> default:  httpd-tools        x86_64      2.2.15-31.el6.centos         updates       73 k
    ==> default:  mailcap            noarch      2.1.31-2.el6                 base          27 k
    ==> default:
    ==> default: Transaction Summary
    ==> default: ================================================================================
    ==> default: Install       6 Package(s)
    ==> default: Total download size: 1.1 M
    ==> default: Installed size: 3.6 M
    ==> default: Downloading Packages:
    ==> default: --------------------------------------------------------------------------------
    ==> default: Total                                           1.9 MB/s | 1.1 MB     00:00
    ==> default: Running rpm_check_debug
    ==> default: Running Transaction Test
    ==> default: Transaction Test Succeeded
    ==> default: Running Transaction
      Installing : apr-1.3.9-5.el6_2.x86_64                                     1/6
    ==> default:
      Installing : apr-util-1.3.9-3.el6_0.1.x86_64                              2/6
    ==> default:
      Installing : apr-util-ldap-1.3.9-3.el6_0.1.x86_64                         3/6
    ==> default:
      Installing : httpd-tools-2.2.15-31.el6.centos.x86_64                      4/6
    ==> default:
      Installing : mailcap-2.1.31-2.el6.noarch                                  5/6
    ==> default:
      Installing : httpd-2.2.15-31.el6.centos.x86_64                            6/6
    ==> default:
      Verifying  : httpd-2.2.15-31.el6.centos.x86_64                            1/6
    ==> default:
      Verifying  : apr-util-ldap-1.3.9-3.el6_0.1.x86_64                         2/6
    ==> default:
      Verifying  : apr-1.3.9-5.el6_2.x86_64                                     3/6
    ==> default:
      Verifying  : httpd-tools-2.2.15-31.el6.centos.x86_64                      4/6
    ==> default:
      Verifying  : mailcap-2.1.31-2.el6.noarch                                  5/6
    ==> default:
      Verifying  : apr-util-1.3.9-3.el6_0.1.x86_64                              6/6
    ==> default:
    ==> default:
    ==> default: Installed:
    ==> default:   httpd.x86_64 0:2.2.15-31.el6.centos                              
    ==> default:
    ==> default: Dependency Installed:
    ==> default:   apr.x86_64 0:1.3.9-5.el6_2                                       
    ==> default:   apr-util.x86_64 0:1.3.9-3.el6_0.1                                
    ==> default:   apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1                           
    ==> default:   httpd-tools.x86_64 0:2.2.15-31.el6.centos                        
    ==> default:   mailcap.noarch 0:2.1.31-2.el6                                    
    ==> default: Complete!
    ==> default: Starting httpd:
    ==> default: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
    ==> default: [  OK  ]
    

    ウエブサーバーが起動したら、アクセス可能か確認します。

    $ curl http://127.0.0.1:8080/
    
    201407261853VVAW11.png

    以上で、構築したウエブサーバーの動作が確認できました。

  5. Vagrantログイン

    ウエブサーバーが起動できましたので、Vagrant Cloudにログインします。

    $ vagrant login
    

    コマンドを実行すると、ユーザー登録時に指定したメールアドレスとパスワードが訊かれますので、入力します。
    なお、Cygwinターミナル上では、パスワードの隠し入力がサポートされていない旨のメッセージが表示され、標準入力からパスワードを入力せざるを得ないため、パスワードが盗み見られないように配慮する必要があります。

    201407261853VVAW12.png
  6. ローカルBoxを公開する

    Vagrantログインが終了したら、起動中のウエブサーバーを公開します。

    $ vagrant share
    
    201407261853VVAW13.png
    ==> default: Detecting network information for machine...
        default: Local machine address: 127.0.0.1
        default:
        default: Note: With the local address (127.0.0.1), Vagrant Share can only
        default: share any ports you have forwarded. Assign an IP or address to your
        default: machine to expose all TCP ports. Consult the documentation
        default: for your provider ('virtualbox') for more information.
        default:
        default: Local HTTP port: 8080
        default: Local HTTPS port: disabled
        default: Port: 2222
        default: Port: 8080
    ==> default: Checking authentication and authorization...
    ==> default: Creating Vagrant Share session...
        default: Share will be at: itty-bitty-ground-9494
    ==> default: Your Vagrant Share is running! Name: itty-bitty-ground-9494
    ==> default: URL: http://itty-bitty-ground-9494.vagrantshare.com
    ==> default:
    ==> default: You're sharing your Vagrant machine in "restricted" mode. This
    ==> default: means that only the ports listed above will be accessible by
    ==> default: other users (either via the web URL or using `vagrant connect`).
    

    起動すると、17行目にURLが表示されますので、外部からアクセス可能か確認します。

    $ curl http://itty-bitty-ground-9494.vagrantshare.com/
    
    201407261853VVAW14.png

    201407261853VVAW15.png

    公開を終了するには、起動したターミナル上でCTRL-Cを入力します。

    201407261853VVAW16.png

    公開時に付与されるURLはvagrant shareコマンドの実行の度に変わりますので、注意して下さい。

    201407261853VVAW17.png
    ==> default: Detecting network information for machine...
        default: Local machine address: 127.0.0.1
        default:
        default: Note: With the local address (127.0.0.1), Vagrant Share can only
        default: share any ports you have forwarded. Assign an IP or address to your
        default: machine to expose all TCP ports. Consult the documentation
        default: for your provider ('virtualbox') for more information.
        default:
        default: Local HTTP port: 8080
        default: Local HTTPS port: disabled
        default: Port: 2222
        default: Port: 8080
    ==> default: Checking authentication and authorization...
    ==> default: Creating Vagrant Share session...
        default: Share will be at: scorching-aardvark-1415
    ==> default: Your Vagrant Share is running! Name: scorching-aardvark-1415
    ==> default: URL: http://scorching-aardvark-1415.vagrantshare.com
    ==> default:
    ==> default: You're sharing your Vagrant machine in "restricted" mode. This
    ==> default: means that only the ports listed above will be accessible by
    ==> default: other users (either via the web URL or using `vagrant connect`).
    

    なお、公開URLは、恒久的に使用できるURLではありませんが、ちょっとしたデモやプロジェクト内で使用するなど、さまざまな用途に使用できると思います。