77 lines
3.1 KiB
Raw Permalink Normal View History

2023-02-21 10:29:07 +00:00
🟢 We plan to support and maintain vagrant-lxc, as well as clean it up.<br/>
🟢 Please feel free to contribute Issues and pull requests.<br/>
🟢 P.S: Thanks [Fabio Rehm]( for the amazing initial project.
2022-12-05 22:16:03 +00:00
2022-11-22 21:14:16 +00:00
# vagrant-cachier
2015-05-08 22:50:53 +00:00
[![Gem Version](]( [![Gitter chat](](
2014-02-21 00:58:13 +00:00
A [Vagrant]( plugin that helps you reduce the amount of
coffee you drink while waiting for boxes to be provisioned by sharing a common
2015-04-07 07:19:26 +00:00
package cache among similar VM instances. Kinda like [vagrant-apt_cache](
or [this magical snippet]( but targeting
multiple package managers and Linux distros.
## Installation
Make sure you have Vagrant 1.4+ and run:
vagrant plugin install vagrant-cachier
2013-12-07 14:36:38 +00:00
## Quick start
Vagrant.configure("2") do |config| = 'your-box'
if Vagrant.has_plugin?("vagrant-cachier")
# Configure cached packages to be shared between instances of the same base box.
# More info on
config.cache.scope = :box
# OPTIONAL: If you are using VirtualBox, you might want to use that to enable
# NFS for shared folders. This is also very useful for vagrant-libvirt if you
# want bi-directional sync
config.cache.synced_folder_opts = {
type: :nfs,
# The nolock option can be useful for an NFSv3 client that wants to avoid the
# NLM sideband protocol. Without this option, apt-get might hang if it tries
# to lock files needed for /var/cache/* operations. All of this can be avoided
# by using NFSv4 everywhere. Please note that the tcp option is not the default.
2014-02-05 21:01:30 +00:00
mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
# For more information please check
2013-12-07 14:36:38 +00:00
For more information please read the documentation available at
## Providers that are known to work
2014-05-14 00:24:48 +00:00
* Vagrant's built in VirtualBox and Docker providers
* [vagrant-lxc](
* [VMware providers]( with NFS enabled (See
[GH-24]( for more info)
* [vagrant-parallels](
2014-06-23 21:00:32 +00:00
* [vagrant-libvirt](
* [vagrant-kvm](
2014-05-14 00:24:48 +00:00
* _[Let us know if it is compatible with other providers!](
_Please note that as of v0.6.0 the plugin will automatically disable any
previously defined configs for [cloud providers](lib/vagrant-cachier/plugin.rb#L19-22)_
2013-08-15 03:46:28 +00:00
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request