How To Install Vagrant IN Ubuntu14.04

weixin_34116110發表於2017-06-03

最近想搞ceph,不得不說ceph-cookbook上的教程是使用Vagrant去進行實驗的,本人曾經多次使用kvm上建立的虛擬機器進行實驗,可是都是因為缺少了某部分的配置而失敗,所以打算在ubuntu14.04上搭建vagrant平臺進行實驗。看到一篇國外的文章非常好,這裡推薦一下:https://www.godaddy.com/garage/tech/config/install-vagrant-ubuntu-14-04/
<h5>Installation</h5>

  1. Install VirtualBox.
    sudo apt-get install virtualbox
    </br>
  2. Install Vagrant.
    sudo apt-get install vagrant
    (注:The Terminal will indicate that the following new packages will be installed on your machine:)
    bsdtar curl libruby1.9.1 libyaml-0-2 ruby ruby-childprocess ruby-erubis
    ruby-ffi ruby-i18n ruby-log4r ruby-net-scp ruby-net-ssh ruby1.9.1 vagrant
    </br>
  3. Start Vagrant.
    vagrant init
    NOTE: The “vagrant init” command sets up a Vagrant environment by placing a Vagrant file in the appropriate directory on your machine.

vagrant up

提供一個下載映象比較快的網址給你們:http://www.vagrantbox.es/

使用:vagrant box add <name> <url> [--provider provider] [-h]

相關文章