Skip to main content

Making your Mac OS X as the NFS server

I'm trying to setup a shared storage for ESXi HA and vMotion demo purpose on VMware Fusion. I guess the easiest way with be enabling the native NFS in Mac rather than powering another iSCSI storage such as OpenFiler, FreeNAS, Lefthand VSA, VMware VSA, etc.. 


To view your VMnet, type ifconfig in Terminal.


  1. Edit /etc/exportssudo vi /etc/exports Add a line like the following (I'm using NAT network for my ESXi network, hence using the VMnet8 interface with the range of 172.16.17.0/24.):
    /Users -maproot=root -network 172.16.17.0 -mask 255.255.255.0
  2. Enable nfsdsudo nfsd enable
  3. Test your work: showmount -e
  4. You can view the nfsd status: sudo nfsd status
  5. To restart the nfsdsudo nfsd restart
You can now try to connect ESXi to the NFS or using Mac's Finder to test the connection. Try this... Launch Finder, and press "Shift+Command+G" and type "/net/YourComputerIP/Users".



Other method, you can refer to http://support.apple.com/kb/TA22243


Comments

  1. On ML 10.8.4 -mask in exports gives an error in Console "getaddrinfo for -mask failed"

    Removing both -network & -mask makes NFS server work

    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/exports.5.html

    ReplyDelete
  2. However, they have reportedly come to some agreement with certain apps available for the Android, I suppose to challenge the growing presence of Apple's power. Togel Singapore

    ReplyDelete
  3. In the Grand Theft Auto series (with the latest installment being The Ballad of Gay Tony), you do just that. Bandar Q

    ReplyDelete

Post a Comment

Popular posts from this blog

VMware VRNI 3.5 NTP is working but not healthy

We have experienced this problem where some of the major services not started. You will not be able to connect to the vRNI via web -> https://<ip_address_of_vrni_platform>>. This probably caused by NTP insync. You need to manually start these services. Login with Consoleuser / and default password if not changed before via venter web console. Run services restart and wait for couple minutes (it took me 5-6 mins). Types of Users  User name  Password  Admin UI  admin@local Set this password in the Activate License window during installation. SSH User  support ark1nc0113ct0r CLI User  consoleuser ark1nc0ns0l3 Note It is recommended that the users change the default passwords immediately after the deployment.  Procedure 1 Navigate to  https://<vRealize Network Insight Platform IP address> .  2 Log in to the product UI with the corresponding user name and password. Troubleshoot NTP - https://kb.vmware.com

vSphere Replication - checking the replication status

Enable SSH on ESXi host (you can do this using vCenter) Download putty or any SSH client and log in with root access vim-cmd vmsvc/getallvms ~ # vim-cmd hbrsvc Commands available under hbrsvc/: vmreplica.abort vmreplica.pause vmreplica.create vmreplica.queryReplicationState vmreplica.disable vmreplica.reconfig vmreplica.diskDisable vmreplica.resume vmreplica.diskEnable vmreplica.startOfflineInstance vmreplica.enable vmreplica.stopOfflineInstance vmreplica.getConfig vmreplica.sync vmreplica.getState  See more at: http://www.virtuallyghetto.com/2011/07/hbr-host-based-replication-cli-for-srm.html#sthash.mpqbyGmw.dpuf http://www.virtuallyghetto.com/2011/07/hbr-host-based-replication-cli-for-srm.html

Editing hosts file in iPhone/iPAD

You can now edit the hosts file with a jailbroken iPhone/iPad. Download the hosts file using tool like FileZilla. Default location is /etc/hosts. Download Notepad++ and edit the file. I've edit the file and convert it to ANSI under the Encoding menu. Once completed, upload the file back to the default location.  Try to ping the DNS... It should works!