On Fedora 19 vagrant is unable to mount NSF shares by default #2447
Comments
jephir
commented
Nov 1, 2013
|
I was having this same issue. Thanks for the solution! If you only restart nfs, but not stop firewalld, Vagrant will hang at |
gregelin
referenced
this issue
in GitMachines/statedecoded-gm-centos6
Nov 1, 2013
Open
On Fedora 19 vagrant is unable to mount NSF shares by default #24
mareg
commented
Nov 4, 2013
|
@jephir it's not a solution, it's a dirty workaround - it's bad that firewall has to be disabled in order to make the vagrant work. while it's ok at work place, it's not if you work at the cafe or connected to the public wifi network. |
nexusVI
commented
Nov 5, 2013
|
Example for easily configuring firewalld using the "firewall-config" GUI:
NFS mounts now work correctly from within the VM and you can leave firewalld enabled. |
dheche
commented
Nov 16, 2013
|
or if you want using cli, you can use firewall-cmd like this (example below using "public" zone) firewall-cmd --permanent --zone public --add-service mountd
firewall-cmd --permanent --zone public --add-service rpc-bind
firewall-cmd --permanent --zone public --add-service nfs
firewall-cmd --reload |
|
After running firewall-cmd alone, this wouldn't work for me. From looking at the rules, this only opens the TCP ports. In any case, what I had to do to get this to work was:
I had to specify all the options that get used because if you add even one option to mount_options, it erases the defaults. By default it uses UDP. I wanted to use TCP. It might make sense to have a merge option. I'm running Vagrant 1.3.5 on Fedora 19 using vagrant-libvirt Looking forward to getting all the missing pieces fixed. Cheers |
|
This should be fixed now |
mareg commentedNov 1, 2013
Vagrant 1.3.5 x86_64 installed from the rpm.
When I try to boot a vagrant box, I get the following error:
Simple solution is to run the following two options:
Then it works just fine.
I guess, vagrant should work out of the box without having to restart nfs-server and disable firewall on every login.