fgrehm / vagrant-cachier

Caffeine reducer
http://fgrehm.viewdocs.io/vagrant-cachier
MIT License
1.08k stars 111 forks source link

nfs appears not to work with Vagrant 1.6.3/Cachier 0.7.2 #114

Closed joshbronson closed 10 years ago

joshbronson commented 10 years ago

Hi folks, here's the top of my Vagrantfile:

VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  # misc. config
  config.cache.synced_folder_opts = {
    type: :nfs,
    mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
  }
  # ... etc.
end

Unfortunately, I'm seeing the following:

==> zookeeper0: Exporting NFS shared folders...
==> zookeeper0: Preparing to edit /etc/exports. Administrator privileges will be required...
==> zookeeper0: Mounting NFS shared folders...
==> zookeeper0: Mounting shared folders...
    zookeeper0: /tmp/vagrant-puppet-3/manifests => /Users/joshbronson/Source/test/hosts/manifests
    zookeeper0: /tmp/vagrant-puppet-3/modules-0 => /Users/joshbronson/Source/test/hosts/modules

Each of the hosts has synced nfs folders, which are working. I see this on the guest machine:

10.20.1.1:/Users/joshbronson/Source/test/hosts                                     698G  242G  457G  35% /vagrant
10.20.1.1:/Users/joshbronson/Source/test/hosts/packages                            698G  242G  457G  35% /mnt/packages
10.20.1.1:/Users/joshbronson/Source/test/hosts/files                               698G  242G  457G  35% /etc/puppet/files
10.20.1.1:/Users/joshbronson/Source/test/hosts/.vagrant/machines/zookeeper0/cache  698G  242G  457G  35% /tmp/vagrant-cache
tmp_vagrant-puppet-3_manifests                                                     698G  242G  457G  35% /tmp/vagrant-puppet-3/manifests
tmp_vagrant-puppet-3_modules-0                                                     698G  242G  457G  35% /tmp/vagrant-puppet-3/modules-0

It's entirely possible that I've fat-fingered something, but I thought I'd flag this anyway after trying a few things, including setting enable_nfs = true. I'm trying to launch CentOS machines from OS/X. Here's my setup:

$ vagrant -v
vagrant -v
Vagrant 1.6.3
$ vagrant plugin list
vagrant plugin list
vagrant-cachier (0.7.2)
vagrant-hosts (2.1.5)
vagrant-login (1.0.1, system)
vagrant-share (1.1.0, system)

Cheers, Josh

joshbronson commented 10 years ago

oof, sorry, realizing this morning that I'd misread my mount command.