How To Install Vagrant IN Ubuntu
2017-06-03 本文已影响58人
行书以鉴
最近想搞ceph,不得不说ceph-cookbook上的教程是使用Vagrant去进行实验的,本人曾经多次使用kvm上创建的虚拟机进行实验,可是都是因为缺少了某部分的配置而失败,所以打算在ubuntu14.04上搭建vagrant平台进行实验。看到一篇国外的文章非常好,这里推荐一下:https://www.godaddy.com/garage/tech/config/install-vagrant-ubuntu-14-04/
<h5>Installation</h5>
- Install VirtualBox.
sudo apt-get install virtualbox
</br> - 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> - 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]