VMware vSphere

 View Only
  • 1.  Can ESXi mount NFS from hosted VM

    Posted Jun 27, 2022 10:31 AM

    Hello,

    I am doing some testing with ESXi 6.7 / vSphere vCenter Server and I have a linux vm on my ESXi host that presents 2 nfs shares. I can mount the nfs shares as volumes in ESXi / vCenter Server, but they do not survive a reboot. The mounts appear in the Storage list, but they do not ever reconnect. I can delete and re-create the storage without issue. I think this is a timing / configuration issue where ESXi boots up, can't find the NFS shares because the linux vm has not had time to start up (it is first in the list to start when ESXi comes up). I've tried changing some of the NFS service settings in ESXi to increase the number of times it tries to restore the mounts, but nothing seems to work.

    Is there a way to do this with just one ESXi host? I need to share data between virtual integrated containers and the only way to do that is to use NFS.

    Thankyou 



  • 2.  RE: Can ESXi mount NFS from hosted VM

    Broadcom Employee
    Posted Jun 27, 2022 11:45 AM

    I've reported your thread to moderators, it should be moved to the area for vSphere so it gets the best audience.

     



  • 3.  RE: Can ESXi mount NFS from hosted VM
    Best Answer

    Broadcom Employee
    Posted Jun 28, 2022 10:50 AM

    No, during ESXi boot vSphere will try to mount the volumes first. But as you mention, the VMs aren't running, so it will time out on the mount process and give up. Why don't you mount the volumes directly to the VMs/Containers?



  • 4.  RE: Can ESXi mount NFS from hosted VM

    Posted Jun 28, 2022 11:51 AM

    Thanks for confirming my suspicions. I am lazy and didn't want to have to mount the shares to each VCH/container at run time. I'd hoped to add it as a volume-store to the VCH config and be done with it.

    Thank you for the reply