Allow nfs, rpcbind and mountd service on server firewall

In order to slove the problem of running `vagrant up` hangs on
NFS mounting, we can allow these services on server firewall.

Change-Id: I70fb072b6103fa662fcfaaafd0f8f57e45193798
Closes-Bug: #1675378
This commit is contained in:
Cady_Chen 2017-03-29 14:35:05 +08:00 committed by chenyingnan
parent b46144573d
commit 1f3ac2a5c7

View File

@ -74,10 +74,15 @@ method, NFS allows both way synchronization and offers much better performance
than VirtualBox shared folders. On Fedora 22::
sudo systemctl start nfs-server
sudo systemctl start rpcbind.service
sudo systemctl start mountd.service
firewall-cmd --permanent --add-port=2049/udp
firewall-cmd --permanent --add-port=2049/tcp
firewall-cmd --permanent --add-port=111/udp
firewall-cmd --permanent --add-port=111/tcp
firewall-cmd --permanent --add-service=nfs
firewall-cmd --permanent --add-service=rpcbind
firewall-cmd --permanent --add-service=mountd
sudo systemctl restart firewalld
Ensure your system has libvirt and associated software installed and setup