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

Archlinux: :

pacman -S --noconfirm virtualbox
pacman -S --noconfirm vagrant

Usage:


1. Create a folder
$ mkdir happy-1
$ cd happy-1

2.
Method 1:
vagrant box(image) search

Search the image which you want to.

Method 2:
Choose box Windows box or Mac OS box or following box
Windows 7 box - Simplified Chinese
[Vagrant] How to use vagrant 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.
Method 1:
vagrant box add terrywang/archlinux

Method 2:
$ vagrant init yungsang/coreos
$ vagrant up

After system startup, then ssh into machine and have fun.
vagrant global-status (will show id)

vagrant ssh <vagrant-id>


Reference :

0 意見:

張貼留言