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 virtualboxpacman -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: CoreOS,support Docker。
williamyeh/ubuntu-trusty64-docker: Ubuntu 14.04 LTS,support Docker。
williamyeh/debian-jessie64-docker: Debian Jessie,support 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 :
- Vagrant Tutorial(2)跟著流浪漢把玩虛擬機
- Windows Boxes for Vagrant Courtesy of Modern.ie
- Issue tracker for OS X Mavericks Vagrant box
- Getting Started with Vagrant on OSX 10.10 Yosemite
0 意見:
張貼留言