well, the issue there is a security feature.. not always is possible to
share a folder and mount from a different level..

say you share /folder/path1/subdir

in some unixes you can mount /folder/path1/subdir/my_folder_I_want bit is
not always possible, i can't remember where it works, my impression is on
linux it does.. but I have tried for different reason on osx and did hit
the same wall you are seeing

so here the issue is one folder is included in the other, that osx is not
allowing you to mount one..

Can you try to share the same folder up to the same level?

in both cases : /Users/username/Code/app

or in both cases /Users/username/Code

?


On Sat, Oct 25, 2014 at 4:36 PM, David S <[email protected]> wrote:

> Here is my exports. They are diff private ips.
>
> https://www.dropbox.com/s/a88smfrfxfmxuxn/exports-from-vagrant.txt?dl=0
>
>
>
> On Thursday, October 23, 2014 3:15:40 PM UTC-5, Alvaro Miranda Aguilera
> wrote:
>>
>> can you paste a bad /etc/exprorts?
>>
>> are you in the last vagrant version?
>>
>> What I am understand now is this.
>>
>> vagrant setup /etc/exports for a folder, and secure by guest ip access.
>>
>> a new guest came in, and /etc/exports gets updated, and having multiple
>> entires cause trouble.
>>
>> I will like to see one /etc/exports first since I would assume all the
>> vms are having the same ip, so the same /etc/exports should work
>>
>> if each guest is getting different ip, then /etc/exports should be like
>>
>> /folder machine1(permissions) machine2(permissions)
>>
>> instead of
>>
>> /folder machine1(permissions)
>> /folder machine2(permissions)
>>
>> Thanks
>> On Thu, Oct 23, 2014 at 5:28 PM, David S <[email protected]> wrote:
>>
>>> Here is a thread that goes nowhere of people talking about the same
>>> issue.  People end up just clearing out their exports or commenting it
>>> out.
>>>
>>> https://github.com/mitchellh/vagrant/issues/1744
>>>
>>>
>>>
>>> On Wednesday, October 22, 2014 11:14:17 PM UTC-5, David S wrote:
>>>>
>>>> I keep getting nfs conflicts if i have nfs shares using the same
>>>> directories.
>>>>
>>>> I often have these as nfs shares.
>>>> "/Users/username/Code", "/home/vagrant/code".
>>>>
>>>> If i run one vagrant box...it add this to my exports.
>>>>  # VAGRANT-BEGIN: 501 5b85e6ec-04ac-4b0d-b7cd-a36b57a39bdd
>>>> "/Users/username/Code" 192.168.22.10 -alldirs -mapall=501:20
>>>> # VAGRANT-END: 501 5b85e6ec-04ac-4b0d-b7cd-a36b57a39bdd
>>>>
>>>> Then when I suspend or halt that one and run another one.  It gives me
>>>> a conflict error. In order for me to fix this, i have to remove the
>>>> conflicting share and do vagrant reload.
>>>>
>>>>  The following SSH command responded with a non-zero exit status.
>>>> Vagrant assumes that this means the command failed!
>>>> mount -o 'vers=3,udp' 192.168.10.1:'/Users/username/Code/app'
>>>> /home/vagrant/app
>>>> Stdout from the command:
>>>> Stderr from the command:
>>>> stdin: is not a tty
>>>> mount.nfs: access denied by server while mounting 192.168.10.1:
>>>> /Users/username/Code/app
>>>>
>>>>
>>>> On Tuesday, October 21, 2014 5:24:19 PM UTC-5, David Salazar wrote:
>>>>>
>>>>> So I was shocked to realize that vagrant doesn't cleanup its exports
>>>>> to nfs via /etc/exports when I halt the machine. Is this expected or 
>>>>> normal
>>>>> behavior. Is there anyway I can make vagrant clean it up so that when i
>>>>> halt it and launch another vagrant setup that uses nfs there aren't any
>>>>> conflicts with nfs shares. I have to do this manually right now.
>>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Vagrant" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to