Skip to content

Vagrant

Vagrant is free and open-source software for creating and configuring virtual development environments. It can be seen as a wrapper around virtualization software such as VirtualBox, KVM, VMware and around configuration management software such as Chef, Salt or Puppet.

Docker vs Vagrant

Check out this infographic comparing Vagrant and Docker:

Infographic_docker-vs-vagrant-600px.jpg

  • 메인환경에 대한 격리가 필요하고 빠르게 여러 VE 이미지 생성이 필요한 경우 Docker를 추천.
  • 테스트 및 디버깅, 다양한 시나리오를 원할 경우 Docker를 추천.
  • 가상환경 전체를 분리해야할 경우 Vagrant를 추천.

Simple example

$ vagrant init
## edit Vagrantfile
$ vagrant up

Disable VT-X in Vagrantfile

config.vm.provider :virtualbox do |vb|  
  vb.customize ["modifyvm", :id, "--hwvirtex", "off"]     
end

See also

Favorite site

Preview

Guide