I have not had a chance to verify the box scope, but it looks like the machine one does not seem to be working at all.
My Vagrantfile is pretty simplezzz:
Vagrant.configure("2") do |c|
c.vm.box = "precise64"
c.vm.box_url = "http://files.vagrantup.com/precise64.box"
if Vagrant.has_plugin?("vagrant-cachier")
c.cache.scope = :machine
end
c.omnibus.chef_version = "11.16.4"
c.omnibus.cache_packages = true
c.vm.hostname = "default-ubuntu-1204.vagrantup.com"
c.vm.synced_folder ".", "/vagrant", disabled: true
c.vm.provider :virtualbox do |p|
p.customize ["modifyvm", :id, "--memory", "1024"]
end
end
After noticing zero change when using cachier, I started looking around and I checked ~/.vagrant.d/ and found out there was ZERO track of any cache ?:
user@moj ~/.vagrant.d $ ll
total 24
drwxr-xr-x 3 user staff 102 14 Oct 00:10 boxes
drwxr-xr-x 7 user staff 238 18 Oct 01:36 data
drwxr-xr-x 9 user staff 306 17 Oct 16:55 gems
-rw------- 1 user staff 1675 13 Oct 23:51 insecure_private_key
-rw-r--r-- 1 user staff 253 18 Oct 00:54 plugins.json
drwxr-xr-x 3 user staff 102 13 Oct 23:51 rgloader
-rw-r--r-- 1 user staff 3 13 Oct 23:51 setup_version
drwxr-xr-x 2 user staff 68 14 Oct 00:10 tmp
user@moj ~/.vagrant.d $ ls -ltr
total 24
-rw-r--r-- 1 user staff 3 13 Oct 23:51 setup_version
drwxr-xr-x 3 user staff 102 13 Oct 23:51 rgloader
-rw------- 1 user staff 1675 13 Oct 23:51 insecure_private_key
drwxr-xr-x 2 user staff 68 14 Oct 00:10 tmp
drwxr-xr-x 3 user staff 102 14 Oct 00:10 boxes
drwxr-xr-x 9 user staff 306 17 Oct 16:55 gems
-rw-r--r-- 1 user staff 253 18 Oct 00:54 plugins.json
drwxr-xr-x 7 user staff 238 18 Oct 01:36 data
user@moj ~/.vagrant.d $ ls -l boxes/
total 0
drwxr-xr-x 3 user staff 102 14 Oct 00:10 precise64
user@moj ~/.vagrant.d $ ls -l boxes/precise64/
total 0
drwxr-xr-x 3 user staff 102 14 Oct 00:10 0
user@moj ~/.vagrant.d $ ls -l boxes/precise64/0/
total 0
drwxr-xr-x 6 user staff 204 14 Oct 00:10 virtualbox
user@moj ~/.vagrant.d $ ls -l boxes/precise64/0/virtualbox/
total 626328
-rw-r--r-- 1 user staff 505 14 Oct 00:10 Vagrantfile
-rw------- 1 user staff 320654336 14 Oct 00:10 box-disk1.vmdk
-rw------- 1 user staff 14108 14 Oct 00:10 box.ovf
-rw-r--r-- 1 user staff 25 14 Oct 00:10 metadata.json
user@moj ~/.vagrant.d $
I have not had a chance to verify the box scope, but it looks like the machine one does not seem to be working at all.
My Vagrantfile is pretty simplezzz:
After noticing zero change when using cachier, I started looking around and I checked
~/.vagrant.d/
and found out there was ZERO track of any cache ?:Yes, I do have the plugins installed: