LoginSignup
3
3

More than 3 years have passed since last update.

vagrant

Last updated at Posted at 2014-08-31

vagrant box

  • bento (officially-recommended box sets by Hashicorp)
    • The Bento boxes are open source and built for a number of providers including VMware, Virtualbox, and Parallels.
  • hashicorp (officially-recommended box sets by Hashicorp)
    • HashiCorp (the makers of Vagrant) publish a basic Ubuntu 12.04 (32 and 64-bit) box that is available for minimal use cases. It is highly optimized, small in size, and includes support for Virtualbox and VMware.
  • ubuntu
    • These boxes only support Virtualbox and do not provide an ideal experience for most users.

operation

install vagrant with brew cask

[13:52:56 - 14-08-31] /Users/toripiyo/program/phantomjs % brew cask install vagrant
==> Downloading https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3.dmg
######################################################################## 100.0%
==> Running installer for vagrant; your password may be necessary.
Password:
==> installer: Package name is Vagrant
==> installer: Upgrading at base path /
==> installer: The upgrade was successful.
?  vagrant installed to '/opt/homebrew-cask/Caskroom/vagrant/1.6.3' (6 files, 78M)

create new centos guest os

[15:00:49 - 14-08-31] /Users/toripiyo/chef-centos-5.10 % vagrant init chef/centos-5.10
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.
[15:09:03 - 14-08-31] /Users/toripiyo/vagrant/chef-centos-5.10 % vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'chef/centos-5.10' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'chef/centos-5.10'
    default: URL: https://vagrantcloud.com/chef/centos-5.10
==> default: Adding box 'chef/centos-5.10' (v1.0.0) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/chef/centos-5.10/version/1/provider/virtualbox.box
==> default: Successfully added box 'chef/centos-5.10' (v1.0.0) for 'virtualbox'!
==> default: Importing base box 'chef/centos-5.10'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'chef/centos-5.10' is up to date...
==> default: Setting the name of the VM: chef-centos-510_default_1409465658258_37886
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 => 2222 (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: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /vagrant => /Users/toripiyo/vagrant/chef-centos-5.10
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3