Learn how to add an NFS 4.0 datastore to the ESXi hosts.
- [Instructor] Before I can mount an NFS data store, I need to make a couple of changes to the NFS server on the control center VM. I still have the PuTTY session open. But if you don't have one, just go ahead and reopen a new PuTTY session and log back in to the control center VM. I want to launch YaST to configure the VM. And go down to Networking Services and NFS Server. Notice that my NFS server is started. Ports are open on the firewall. And it is enabled for NFS version four.
As of ESXI six dot oh, NFS version four is now supported. Click on next and I can see that I'm sharing out a home NFS directory. Notice the options currently for that directory, however, are read only and root squash. Those two need to be changed in order for me to be able to store virtual machines on that data store. Alt-I to edit those. Tab down. And I want to change this one to no root squash and read right.
Click on okay. And then alt-F to finish. And alt-Q to quit. Now anytime we want to make changes to the NFS server, it takes about 90 seconds for that change to take effect. So I don't want to immediately try to mount that NFS data store, I need to give it a moment. Let's go back to our ESXI host. Select one of the hosts inside of the VSAN Cluster.
Once it's been at least 90 seconds, then you should be able to add the data store. We'll click on New Datastore. Select NFS, NFS version four. It is very important that you don't combine NFS version three and NFS version four connections to the same datastore. If one host is using NFS version four, then they all need to be using NFS version four. The two different versions use different locking mechanisms so you look at data corruption if you mix and match them.
We're going to call this NFS-Datastore. Specify the folder, home nfs. And then our control center IP address. Click on the plus. We're not using Kerberos for authentication, that's why we had to specify no root squash. If we did have active directory set up, we could add all of the ESXI host to active directory and then we could use Kerberos space authentication. Click on finish.
We should now see a new datastore. Now when I go to that datastore, we'll see that it's currently only mounted on a single ESXI host. So I can right click on it, mount the datastore to additional hosts. I can select the other hosts of my VSAN-cluster as well as the physical cluster host.
Now if I go to that data store, see that all four hosts are connected to it. Now that we have multiple options for where we can place our virtual machine, let's go create some.
- Virtual machine benefits
- Building a lab environment with a mini PC
- Working with ESXi and vCenter Server
- Installing a control center VM
- Using the HTML5 client and the web client
- Adding an ESXi host and use Remote Console
- Configuring vSAN and storage profiles
- Adding NFS datastore
- Deploying a virtual machine from OVA
- Performing a cloning operation
- Using templates
- Performing a vMotion migration
- Working with snapshots