$ wget -qO ~/.vagrant.d/Vagrantfile https://raw.githubusercontent.com/patleb/ext_vagrant/master/Vagrantfile
In your project Vagrantfile
:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure_machines(
db: { active: true }
)
Vagrant.configure(2) do |config|
...
end
or
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure_machines(db: { active: true }) do |config|
...
end
web: { active: true, memory: '1024', hostname: 'vagrant.web'},
db: { active: false, memory: '512', hostname: 'vagrant.db'}
$ VBoxManage snapshot "web-$(cat .vagrant/web_ip)" take <snapshot name>
$ VBoxManage snapshot "web-$(cat .vagrant/web_ip)" restorecurrent