Slide 27
Slide 27 text
$ gem install vagrant-persistent-storage
# github.com/kusnier/vagrant-persistent-storage
Vagrant::Config.run do |c|
c.vm.share_folder "v-root", "/vagrant", ".", nfs: true
c.vm.customize [ "setextradata", :id,
"VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", 1 ]
# gem vagrant-persistent-storage
c.persistent_storage.location = "~/dev/pkgs.vdi"
c.persistent_storage.size = 5000
end
# require "ffi"
# share_folder ..., :nfs => (FFI::Platform::IS_WINDOWS ? false : true)
# shared /var/cache/apt
$ gem install vagrant-apt_cache # github.com/avit/vagrant-apt_cache
Vagrantfile
mount disks