Install Vagrant

Vagrant背後用的是Virtual Box作為虛擬機器,Vagrant只是一個讓你可以方面做設定來開你想要的虛擬機器的方便工具,所以你必須先安裝Vagrant和Virtual Box。雖然在Vagrant 1.8 之後,若你沒有先裝Virtualbox,Vagrant 會自動幫你安裝,但還是建議自行安裝Virtual Bpx,比較保險。


  • 下載 Git 並安裝 (Git Bash + Command Prompt、Checkout as-is / Commit Unix-style),安裝完記得執行下列指令:
git config --global "your name"
git config --global "your email"
  • 安裝VirtualBox
    • 安裝VirtualBox Extension Pack
  • 安裝Vagrant:使用Windows(Universal版本)
// in Git Base
vagrant --version

Mac OS X

  • 確認系統已經有安裝Git,執行下列指令:
git config --global "your name"
git config --global "your email"
  • 指定文書處理軟體,例如:TextMate
git config --global core.editor "mate -w"
// 測試
git config --global -e
  • 安裝VirtualBox及VirtualBox Extension Pack
  • 安裝Vagrant:使用Windows(Universal版本)


  • 在 Linux 上,如果想使用 Vagrant 的話,需依序安裝以下軟體:
    • VirtualBox
    • VirtualBox Extension Pack
    • Vagrant
sudo apt-get install virtualbox vagrant


vagrant --version
VBoxManage --version


Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxsf" is not available. This filesystem is made available via the VirtualBox Guest Additions and kernel module. Please verify that these guest additions are properly installed in the guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000 vagrant_data /vagrant_data
The error output from the command was:
mount: unknown filesystem type 'vboxsf'

// 解決
vagrant plugin install vagrant-vbguest