2014年11月24日 星期一

[VirtualBox][Vagrant] How to install and use vagrant



Install :

1. Go to Vagrant and download suitable package and execute it.
2. Go to VirtualBox and download following package.
VirtualBox platform packages
VirtualBox Extension Pack


Usage:


1. Create a folder
$ mkdir happy-1
$ cd happy-1
2.
Choose box Windows box or Mac OS box or following box
hashicorp/precise64: Ubuntu 12.04 LTS (Precise Pangolin) 64-bit
ubuntu/trusty64: Ubuntu 14.04 LTS (Trusty Tahr) 64-bit
chef/centos-6.5: CentOS 6.5 x64
chef/debian-7.4: Debian 7.4 x64
yungsang/coreos: CoreOSsupport Docker
williamyeh/ubuntu-trusty64-docker: Ubuntu 14.04 LTSsupport Docker
williamyeh/debian-jessie64-docker: Debian Jessiesupport Docker
Choose to practice docker.
$ vagrant init yungsang/coreos
$ vagrant up
After system startup, then ssh into machine and have fun.
vagrant ssh

Reference :
1. Vagrant Tutorial(2)跟著流浪漢把玩虛擬機
2. Windows Boxes for Vagrant Courtesy of Modern.ie
3. Issue tracker for OS X Mavericks Vagrant box