{"id":842,"date":"2010-11-16T07:00:02","date_gmt":"2010-11-16T12:00:02","guid":{"rendered":"http:\/\/www.gamescheat.ca\/?p=842"},"modified":"2019-09-04T19:57:39","modified_gmt":"2019-09-05T00:57:39","slug":"how-to-map-to-a-remote-nfs-directory-from-a-vmware-esx-4-server","status":"publish","type":"post","link":"http:\/\/www.gamescheat.ca\/?p=842","title":{"rendered":"How to map to a remote NFS directory from a VMware ESX 4 server."},"content":{"rendered":"<div style=\"float: left;\"><div style=\"margin: 15px 15px 15px 15px\";><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-3319935785736004\";\ngoogle_alternate_color = \"FFFFFF\";\ngoogle_ad_width = 200;\ngoogle_ad_height = 200;\ngoogle_ad_format = \"200x200_as\";\ngoogle_ad_type = \"text_image\";\ngoogle_ad_channel =\"\";\ngoogle_color_border = \"cccccc\";\ngoogle_color_link = \"cc0000\";\ngoogle_color_bg = \"ffffff\";\ngoogle_color_text = \"000000\";\ngoogle_color_url = \"008000\";\n\/\/--><\/script>\n<script type=\"text\/javascript\"\n  src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/div><\/div><p>I ran into this error while trying to mount a NFS directory on a remote server from my Vmware ESX4 server.  My Vmware esx server is called esx4-server and the remote NFS server is called remote-server.<br \/>\nI executed the mount commant and got the below error.<br \/>\n<strong>[root@esx4-server \/]# mount -t nfs remote-server:\/home\/andrew\/mnt<br \/>\nmount.nfs: Input\/output error<\/strong><br \/>\nI then decided to use the -v (verbose) option for mount.  This will list the mounting process in verbose, it is better for troubleshooting.<br \/>\n<strong>[root@esx4-server \/]# mount -vt nfs remote-server:\/home\/andrew\/mnt<br \/>\nmount: trying 192.20.66.88 prog 100003 vers 3 prot tcp port 2049<br \/>\nmount: trying 192.20.66.88 prog 100005 vers 3 prot udp port 32794<br \/>\nmount.nfs: Input\/output error<\/strong><\/p>\n<p>I then checked the log files for more information, and below are the messages I saw.<br \/>\n<strong>[root@esx4-server \/]# cat \/var\/log\/messages<br \/>\nOct 26 10:32:30 esx4-server vobd: Oct 26 10:32:30.936: 159470608100us: [esx.problem.vmfs.nfs.mount.connect.failed] Failed to mount to server 192.20.66.88 mount point \/VMLibrary\/. Error: Unable to connect to NFS server.<br \/>\nOct 26 11:36:50 esx4-server kernel: [162970.448490] portmap: server localhost not responding, timed out<br \/>\nOct 26 11:36:50 esx4-server kernel: [162970.453525] RPC: failed to contact portmap (errno -5).<\/strong><br \/>\nFrom the log file I was able to determine that the pormap service was not started. It is required to map to a remote NFS directory.  I then proceeded with starting the protmap service.<br \/>\nservice portmap start<\/p>\n<p>To esure that the service starts automatically when the server reboots use the below command.<br \/>\n<strong>chkconfig portmap on<\/strong><br \/>\nYou may also have to stop the firewall service on the esx server with the command <strong>service firewall stop<\/strong>.  To prevent it from starting after a reboot, <strong>chkconfig firewall off<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I ran into this error while trying to mount a NFS directory on a remote server from my Vmware ESX4 server. My Vmware esx server is called esx4-server and the remote NFS server is called remote-server. I executed the mount&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.gamescheat.ca\/?p=842\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[55,64,35,61],"_links":{"self":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/842"}],"collection":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=842"}],"version-history":[{"count":2,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/842\/revisions"}],"predecessor-version":[{"id":964,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/842\/revisions\/964"}],"wp:attachment":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=842"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}