esxi – Michael Groff /blog Expand or Die Wed, 04 Dec 2019 16:59:20 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 Identify Failed Port and Replace NIC /blog/identify-failed-port-and-replace-nic/ Tue, 26 Feb 2019 02:03:15 +0000 /blog/?p=958

This past week, I had a failed port one one of my C2100’s. The specific part was a Intel PRO/1000 VT Quad Port Gigabit PCI-E Ethernet Network Adapter (HM9JY). Now just one single port failed and I was using all 4 ports for iSCSI from my FreeNAS C2100 to my esxi cluster. Luckily I have 4 ports so naturally MPIO is configured and I didnt notice the failure immediately. I first noticed this in my cluster and also saw the port was failed in FreeNAS. Since there is no OMSA for BSD, I was unable to gather more information about the status of the port.

This is how I noticed the failed port on an esxi host

I went onto ebay and ordered the new part for $20 with free shipping. It came in today and I took some time to replace it this evening. It is a pretty simple process, I will walk you through it below.

The first things I am going to do is power off my server and then remove all the cabling from it. Some people choose to not remove networking when doing this, but I am running PoE switches, and even though PoE has been disable on the ports, I dont trust it. I remove all potential of electricity running through the system other than the CMOS and RAID batteries.

So, Power off your server, remove all the cabling, pull it out of the rack and remove the cover.

The new part looks like this. It will just slide right into a PCIe slot and I will screw it in.

Here we are with the top open.

I am going to pull out that part in the upper left hand corner to replace.

Here is the empty slot that we will plug back into.

The top device  is the one I pulled out and replace.

It is the top device due to the photo orientation and the fact that I pulled it out of the server. When I put it back in the server, it will “on the bottom”. I find placing NIC card below RAID card make it easier to unplug booted cables from the server.

Now that the NIC has been replaced, all iSCSI paths are available!

]]>
Configure and Run vCheck /blog/configure-and-run-vcheck/ Thu, 22 Jun 2017 20:16:50 +0000 /blog/?p=844

vCheck is a PowerShell HTML framework script that started with one guy, but is now a community driven and from what I have seen, it’s pretty neat.

vCheck can be configured to just run once, or as a scheduled task on a Windows box. It also offers the option of sending the report via email. With those two features coupled together, you can set up a daily environment scan to run an hour or two before you get to work each morning and have a nice HTML report in your inbox of what changed and/or broke since you left the night before.This tutorial covers the installation and configuration of the vCheck tool.

Programs Needed:

Download and Extract vCheck with Powershell:

$ZipPath = "C:\vCheck\vCheck-vSphere-master.zip"
$Destination = "C:\vCheck\"

IF (-not (Test-Path -Path "$Destination"))
{
    New-Item -Path $Destination -ItemType Directory -ErrorAction SilentlyContinue
}

iwr https://github.com/alanrenouf/vCheck-vSphere/archive/master.zip -OutFile "$ZipPath"
Add-Type -assembly "system.io.compression.filesystem"
[io.compression.zipfile]::ExtractToDirectory($ZipPath, $Destination)

Load PowerCLI (open the Program)
Login to vCenter Server

Connect-VIServer

– or –

Connect-VIServer VCENTER.DOMAIN.COM -User DOMAIN\Administrator -Password -SaveCredentials

Run vCheck ps1 file

& "C:\vCheck\vCheck-vSphere-master\vCheck.ps1"

- or - 

. "C:\vCheck\vCheck-vSphere-master\vCheck.ps1"

You will then be asked to respond to the following prompts:

# Report header [vCheck]:
# Would you like the report displayed in the local browser once completed ? [$true]:
# Display the report even if it is empty? [$true]:
# Use the following item to define if an email report should be sent once completed [$false]:
# Please Specify the SMTP server address (and optional port) [servername(:port)] [mysmtpserver.mydomain.local]:
# Would you like to use SSL to send email? [$false]:
# Please specify the email address who will send the vCheck report [me@mydomain.local]:
# Please specify the email address(es) who will receive the vCheck report (separate multiple addresses with comma) [me@mydomain.local]:
# Please specify the email address(es) who will be CCd to receive the vCheck report (separate multiple addresses with comma) []:
# Please specify an email subject [$Server vCheck Report]:
# Send the report by e-mail even if it is empty? [$true]:
# If you would prefer the HTML file as an attachment then enable the following: [$false]:
# Set the style template to use. [VMware]:
# Do you want to include plugin details in the report? [$true]:
# List Enabled plugins first in Plugin Report? [$true]:
# Set the following setting to $true to see how long each Plugin takes to run as part of the report [$true]:
# Report on plugins that take longer than the following amount of seconds [30]:

Connection settings for vCenter
# Please Specify the address (and optional port) of the vCenter server to connect to [servername(:port)] [192.168.0.0]:
# Maximum number of samples to gather for events [100000]:

General Information
# Set the number of days of DRS Migrations to report and count on [1]:
# Set the number of days of Storage DRS Migrations to report and count on [1]:

Windows vCenter Error Event Logs
# Set the number of days of VC Events to check for errors [1]:
# Set the number of days of VC Event Logs to check for warnings and errors [1]:

vCenter Sessions Age
# Enter maximum vCenter session length in hours [48]:
# Enter minimum vCenter session length in minutes (IdleMinutes) [10]:
# Do not report on usernames that are defined here (regex) [DOMAIN\\user1|DOMAIN\\user2]:

vCenter License Report
# Enable License Reporting? [$true]:

HA configuration issues
# HA Configuration Issues, do not report on any Clusters that are defined here [Example_Cluster_*|Test_Cluster_*]:
# HA should be set to ... [$true]:
# HA host monitoring should be set to ... [$true]:
# HA Admission Control should be set to ... [$true]:

HA VMs restarted
# HA VM restart day(s) number [5]:

DRS & SDRS Migrations
# Set the number of days of DRS Migrations to report and count on [1]:
# Set the number of days of Storage DRS Migrations to report and count on [1]:

Cluster Slot Sizes
# Number of slots available in a cluster [10]:

Datastore Consistency
# Do not report on any Datastores that are defined here (Datastore Consistency Plugin) [local*|datastore*]:

Clusters with DRS disabled
# Clusters with DRS Disabled, do not report on any Clusters that are defined here [VM1_*|VM2_*]:

QuickStats Capacity Planning
# Max CPU usage for non HA cluster [0.6]:
# Max MEM usage for non HA cluster [0.6]:

s/vMotion Information
# Set the number of days to go back and check for s/vMotions [5]:
# Include vMotions in report [$true;]:
# Include Storage vMotions in report [$true;]:

DRS Rules
# Display VM affinity rules? [$true]:
# Display VM anti-affinity rules? [$true]:
# Display HOSTaffinity rules? [$true]:
# Set DRS Rule name exception (regex) [ExcludeMe]:

Hosts Overcommit state
# Return results in GB or MB? [GB]:

NTP Name and Service
# The NTP server which should be set on your hosts [pool.ntp.org|pool2.ntp.org]:

VMKernel Warnings
# Disabling displaying Google/KB links in order to have wider message column [$true]:

Syslog Name
# The Syslog server which should be set on your hosts [syslogserver]:

Disk Max Total Latency
# Disk Max Total Latency Settings in Milliseconds [50]:
# Disk Max Total Latency range to inspect (1-24) [24]:

Lost Access to Volume
# Set the number of days of Lost Action Volume to report and count on [1]:

Check LUNS have the recommended number of paths
# Set the Recommended number of paths per LUN [2]:

ESXi Inode Exhaustion
# Set the ESXi filesystem free Inode threshold in percent [40]:

Host Profile Compliance
# Show detailed information in report [$true]:
# Show compliant servers [$false]:

Hosts with Upcoming Certificate Expiration
# How many days to warn before cert expiration (Default 60) [60]:

Datastore Information
# Set the warning threshold for Datastore % Free Space [25]:
# Do not report on any Datastores that are defined here (Datastore Free Space Plugin) [local]:

Number of VMs per Datastore
# Max number of VMs per Datastore [5]:
# Exclude these datastores from report [ExcludeMe]:

Datastore OverAllocation
# Datastore OverAllocation % [50]:
# Exclude these datastores from report [ExcludeMe]:

Datastores with Storage IO Control Disabled
# Do not report on any Datastores that are defined here (Storage IO Control disabled Plugin) [local]:

VSAN Datastore Capacity
# Set the warning threshold for VSAN Datastore % Free Space [85]:

VSAN Configuration Maximum Disk Group Per Host Report
# Enable VSAN Config Max Disk Group Per Host Reporting? [$true]:
# Percentage threshold to warn? [80]:

VSAN Configuration Maximum Magnetic Disks Per Disk Group Report
# Enable VSAN Config Max Magnetic Disks Per Disk Group Reporting? [$true]:
# Percentage threshold to warn? [50]:

VSAN Configuration Maximum Total Magnetic Disks In All Disk Groups Per Host Report
# Enable VSAN Config Max Total Magnetic Disks In All Disk Groups Per Host Reporting? [$true]:
# Percentage threshold to warn? [50]:

VSAN Configuration Maximum Components Per Host Report
# Enable VSAN Config Max Components Per Host Reporting? [$true]:
# Percentage threshold to warn? [50]:

VSAN Configuration Maximum Hosts Per VSAN Cluster Report
# Enable VSAN Config Max Hosts Per VSAN Cluster Reporting? [$true]:
# Percentage threshold to warn? [45]:

VSAN Configuration Maximum VMs Per Host Report
# Enable VSAN Config Max VMs Per Host Reporting? [$true]:
# Percentage threshold to warn? [50]:

VSAN Configuration Maximum VMs Per VSAN Cluster Report
# Enable VSAN Config Max VMs Per VSAN Cluster Reporting? [$true]:
# Percentage threshold to warn? [50]:

Checking Standard vSwitch Ports Free
# vSwitch Port Left [5]:

Checking Distributed vSwitch Port Groups for Ports Free
# Distributed vSwitch PortGroup Ports Left [10]:

vSwitch Security
# Enable Checking of vSwitch security settings? [$true]:
# Warn for AllowPromiscuous enabled? [$true]:
# Warn for ForgedTransmits enabled? [$true]:
# Warn for MacChanges enabled? [$true]:

Snapshot Information
# Set the warning threshold for snapshots in days old [14]:
# Set snapshot name exception (regex) [ExcludeMe]:
# Set snapshot description exception (regex) [ExcludeMe]:
# Set snapshot creator exception (regex) [ExcludeMe]:

Created or cloned VMs
# Set the number of days to show VMs created for [5]:

Removed VMs
# Set the number of days to show VMs removed for [5]:

VMs with over $vCPU vCPUs
# Define the maximum amount of vCPUs your VMs are allowed [2]:

VMs restarted due to Guest OS Error
# HA VM reset day(s) number due to Guest OS error [5]:

Guests with less than $MBFree MB
# VM Disk space left, set the amount you would like to report on MBFree [1024]:
# VM Disk space left, set the amount you would like to report on MBDiskMinSize [1024]:

Checking VM Hardware Version
# Hardware Version to check for at least [8]:
#Adding filter for dsvas, vShield appliances or any other vms that will remain on a lower HW version [vShield*|dsva*]:

VMs in inconsistent folders
# Specify which Datastore(s) to filter from report [local]:

No VM Tools
# Do not report on any VMs who are defined here (regex) [VM1_*|VM2_*]:

VM Tools Issues
# VM Tools Issues, do not report on any VMs who are defined here [VM1_*|VM2_*]:

Removable Media Connected
# VMs with removable media not to report on [APP*|ETC*]:

Single Storage VMs
# Local Stored VMs, do not report on any VMs who are defined here [Template_*|VDI*]:

VM CPU %RDY
# CPU ready on VMs should not exceed [10.0]:

VM CPU Usage
# VM Not to go over the following amount of CPU [75]:
# VM CPU not allowed to go over the previous amount for how many days? [1]:

Find VMs with thick or thin provisioned vmdk
# Report on disk formats that are not "thin" or "thick", which format is not allowed? [thick]:
# Specify Datastores to filter from report [local]:

Virtual machines with incorrect OS configuration
# VMs with incorrect OS Configuration, do not report on any VMs who are defined here [VM1_*|VM2_*]:

Powered Off VMs
# VMs not to report on [Windows7*]:

Unwanted virtual hardware found
# Find unwanted virtual hardware [VirtualUSBController|VirtualParallelPort|VirtualSerialPort]:

Mis-named virtual machines
# Misnamed VMs, do not report on any VMs who are defined here [VM1_*|VM2_*]:

VM - is my network connected?
# Only show NICs that are set to Connect at Startup [$true]:

Reset VMs
# Set the number of days to show reset VMs [1]:

Snapshot activity
# Set the number of days to show Snapshots for [5]:
# User exception for Snapshot removed [s-veeam]:

VMs with CPU or Memory Reservations Configured
# VMs with CPU or Memory Reservations, do not report on any VMs who are defined here [VM1_*|VM2_*]:

VM Logging
# The number of logs to keep for each VM [10]:
# The size logs can reach before rotating to a new log (bytes) [1000000]:

VM Tools Not Up to Date
# Do not report on any VMs who are defined here (regex) [VM1_*|VM2_*]:
# Maximum number of VMs shown [30]:

NonPersistent Disks
# Exclude all desktop virtual machines [^DV-|^MLB-]:

VMs Memory/CPU Hot Add configuration
# Should CPU hot plug be enabled [$true]:
# Should Memory hot add be enabled [$true]:

Site Recovery Manager - RPO Violation Report
# SRM RPO Violations: Set the number of minutes an RPO has exceeded to report on [240]:
# SRM RPO Violations: Only look for RPO events on VMs with these names: (regex) []:
# SRM RPO Violations: Report on unresolved RPO violations only? [$true]:

Once you have completed the prompts, the scan will run and a report will be generated.



		
]]>
Cmdlet for PowerCLI to load vCenter & esxi Hosts /blog/cmdlet-for-powecli-to-load-vcenter-esxi-hosts/ Wed, 24 May 2017 20:46:53 +0000 /blog/?p=822

Powershell & PowerCLI Prep

#Set Execution Policy

Set-ExecutionPolicy RemoteSigned

#Ignore SSL Certificates warnings

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -WarningAction SilentlyContinue

#Connecting to server & save creds:

Connect-VIServer vCenter.DOMAIN.com -User DOMAIN\Administrator -Password -SaveCredentials

#Location to open up PowerCLI normally:

. "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1"

CMDLET

function Load-PowerCLI
{
Add-PSSnapin VMware.VimAutomation.Core -ErrorAction SilentlyContinue
Add-PSSnapin VMware.VumAutomation -ErrorAction SilentlyContinue
Add-PSSnapin VMware.DeployAutomation -ErrorAction SilentlyContinue
Add-PSSnapin VMware.DeployAutomation -ErrorAction SilentlyContinue
& "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1"
Write-Host "================================================" -ForegroundColor White
Write-Host "
...connecting to vCenter servers
"
Connect-VIServer vCenter0.groffbox.com
}

BONUS:

Set the VMConsole to open correctly with Open-VMConsole Window

#Download and Install 32-bit Firefox, you NEED 32-bit
#Run:

Set-PowerCLIConfiguration –VMConsoleWindowBrowser “C:\Program Files (x86)\Mozilla Firefox\firefox.exe”

Now you can run Open-VMConsoleWindow

]]>
Set a Static IP on your ESXi Host /blog/set-a-static-ip-on-your-esxi-host/ Thu, 17 Sep 2015 07:09:19 +0000 /blog/?p=384 Set a Static IP on your ESXi Host V5.5

Assigning a static IP to your ESXi host is extremely easy to do, and is highly recommended as you will always want your host to have the same IP.

  • Notes:
    • If your network is set up without DHCP, then you will have to do this from the physical server itself, or the KVM.
    • When assigning a static IP to the host, make sure that you do not assign an IP that has already been used if your network does have DHCP enabled.
    • If you do not set up a static IP, you will likely have issues when you reboot the host or your router reboots.

 

For this tutorial, I am making the changes from the host’s console itself, as setting a Static IP is one of the first things to do in the configuration of a new host  

First Click on F2 Customize System/View Logs:

Set a Static IP on your ESX Host_01

Enter the password for the root user when prompted and hit Enter:

Set a Static IP on your ESX Host_02

 

Choose the third option, Configure Management Network, and hit Enter:

Set a Static IP on your ESX Host_03

 

Again, choose the third option, IP Configuration, and hit Enter.
Here you will change the option to Set static IP address and network configuration: and hit the Spacebar to apply that option. Then enter the fields for the IP address appropriately and hit Enter to apply those settings:

Set a Static IP on your ESX Host_04

 

Next scroll down to the DNS Configuration option and hit Enter.
Here enter the appropriate DNS information for your server:

Set a Static IP on your ESX Host_05

 

Hit Escape to exit this screen and then hit Y to apply the changes and restart the management network:

Set a Static IP on your ESX Host_06

 

Now hit Escape again and you will be back at the main screen and you will now see the Static IP and some of the DNS information that you just configured:

Set a Static IP on your ESX Host_07

 

You’re done, now you can go back to your computer, and access your ESXi host from the newly assigned IP.

]]>
VMware ESXi 5.5.0 on Dell C2100 FS12-TY /blog/vmware-esxi-5-5-0-on-dell-c2100-fs12-ty/ Thu, 17 Sep 2015 06:18:09 +0000 /blog/?p=41

The Installation and Basic Configuration of VMware ESXi 5.5.0 on Dell C2100 FS12-TY

Server Specs:

  • Dell PowerEdge C2100 FS12-TY
  • 2 x 2.13GHz Intel(R) Xeon(R) CPU E5506
  • 6 x 4GB RAM – Total 24GB’s of RAM
  • RAID Controller – SAS 6iR
    • 4 x 250GB WD RE 4 HDD’s

I have already set up my RAID Array as follows:

  • 2 x RAID-1 (mirror) Virtual Disks setup

For this install I am using the Dell Customized Image of ESX as it fixes known issues and loads drivers for Dell PowerEdge systems. Google if you don’t have the customized Image.

First you need to install the Dell Customized Image onto a USB. I use Rufus on a Windows PC to do so. See the settings I chose for Rufus below:

(Download Rufus)

ESX_Install_Dell_C2100_1

 

Eject the USB from your OS and go plug it into your C2100 and boot it up.

The first thing you will see when your USB is finally booting, after the BIOS and RAID controller info, is the following image:

Hit (Enter) on the Installer:

ESX_Install_Dell_C2100_2

 

Next ESX will proceed to boot into the installer, you will see the following two screens load all the way through and disappear:

ESX_Install_Dell_C2100_3

 

ESX_Install_Dell_C2100_4

 

Once those two screens finish loading we will begin the installation.

On the following screen hit (Enter):

ESX_Install_Dell_C2100_5

 

Then you will need to read through and agree to the EULA by hitting (F11) to proceed with the installation:

ESX_Install_Dell_C2100_6

 

ESX will then scan attached devices that it can install on:

ESX_Install_Dell_C2100_7

 

Select the USB drive that you inserted, not your Virtual Disks, and hit (Enter):

ESX_Install_Dell_C2100_8

 

ESX will scan the drive again and then hit (Enter) to confirm the USB drive will be overwritten:

ESX_Install_Dell_C2100_9

 

ESX_Install_Dell_C2100_10

 

Next select your keyboard layout and hit (Enter):

ESX_Install_Dell_C2100_11

 

Type in the password for the root user twice and hit (Enter):

ESX_Install_Dell_C2100_12

ESX will scan yet again, and when that is finished hit (F11) to initiate the installation of ESX onto the USB:

ESX_Install_Dell_C2100_13

 

ESX_Install_Dell_C2100_14

 

ESX will begin to install and once it is finished hit (Enter) to reboot the server and complete the installation:

This may take a couple minutes.

ESX_Install_Dell_C2100_15

 

ESX_Install_Dell_C2100_16

 

ESX_Install_Dell_C2100_17

 

After the reboot, ESX will boot into the following screen:

NOTE: For this tutorial I have DHCP enabled so ESX already has an IP issued to it, but you will want to set this to a static IP for many reasons, so I have covered this in my post: Set a Static IP on your ESX Host

ESX_Install_Dell_C2100_18

Now go back to your computer, open a web browser, and browse to the IP that we saw in the previous step and you will see the following page:

ESX_Install_Dell_C2100_19

 

Click on the “Download vSphere Client” link and Install that on your local computer.

Once VMware vSphere Client is installed, open it, and fill in the fields appropriately.

  • IP address / Name: IP of ESX Host
  • User name: root
  • Password: Password you created

ESX_Install_Dell_C2100_20

 

You will be prompted by a Security Warning, check the check-box for Install this certificate and do not display security warnings for “Your IP”. Then click Ignore

ESX_Install_Dell_C2100_21

 

Next you will come to a screen like the following:

First thing you will need to do, is create a datastore. To do so, click on the blue link, click here to create a datastore…:

ESX_Install_Dell_C2100_22

This will bring up the following window, where you will choose the Disk/LUN option and click Next:

ESX_Install_Dell_C2100_23

 

Select one of the disks that you would like to create a datastore out of and click Next:

NOTE: I selected one of the two RAID-1 Arrays I set up prior to this tutorial

ESX_Install_Dell_C2100_24

 

On the next screen leave the VMFS-5 option selected and then click Next:

ESX_Install_Dell_C2100_25

 

Confirm the disk layout settings by clicking Next:

 

ESX_Install_Dell_C2100_26

Name your datastore with a naming scheme that you see fit. I have named mine VM1-RAID1. Then click Next:

ESX_Install_Dell_C2100_27

Leave Maximum available space selected, unless for some reason you are not applying all the RAID-1 to this host, and click Next:

ESX_Install_Dell_C2100_28

Click Finish to create the datastore:

ESX_Install_Dell_C2100_29

 

Next we are going to add an image to the datastore so we can create Virtual Machines off of that image.

In the VMware vSphere Client click on the Configuration tab and then click on Storage under the Hardware Section.
Here you will right click on your new datastore and click Browse Datastore…:

ESX_Install_Dell_C2100_30

 

Create a folder in the root of that drive named Images and then click the Upload Icon and choose Upload File…:

NOTE: You can also choose to set up an NFS datastore to store your .iso and other bootable files. If you choos to go that route you can skip this step. I have already covered how to accomplish this in my tutorial: How to create and ESX Datastore from a Windows NFS Share

ESX_Install_Dell_C2100_31

 

Once the .iso, for whatever OS you have chosen, has finished uploading, you will simply right-click on your host and select New Virtual Machine…, and proceed to set up your VM according the the specs that you need.

ESX_Install_Dell_C2100_32

 

In the last step of creating the VM, where the tab on the left reads Ready To Complete and you have a Finish option, check the check box for “Edit the virtual machine settings before completion” and then click Continue.

In the popup window you will need to browse to the New CD/DVD (Adding) section and then select Datastore ISO File to Connect at power on. You are going to want to click Browse… and browse to the .iso that you previously uploaded, then click Finish.

ESX_Install_Dell_C2100_33

That is it, wait for your VM to create and then power it on.

Once you power it on, you can open the console and set up network connectivity to the server as it meets your needs.

NOTE: After you complete the installation of whatever OS you chose, you will want to go back into setting, and set either set this setting to “Client Device” or remove the check next to “Connect at power on”.

 

If you have any questions, please contact me through the site.

]]>
How to create an ESX Datastore from a Windows NFS Share /blog/how-to-create-an-esx-datastore-from-a-windows-nfs-share/ Sun, 16 Aug 2015 00:21:07 +0000 /blog/?p=259

Would you like to be able to have a Datastore full of all your .iso’s and other bootable files?

Well we can accomplish that by setting up an NFS Share in Windows!

First off we are going to need to set up an NFS Share on your Windows Server. To do this you need to make sure that you have the Server for NFS Role Installed, it is listed under the File and Storage Services > File and iSCSI Services Role. If you do not already have this installed. Install it now, it will not need a reboot.

NFShowto1Now to set up the NFS Share.

I created a new folder on the C:\ Drive labeled: NFS-VMstorage. Right click on the Folder and chooseNFS Sharing tab > Manage NFS Sharing. Here you just simply need to check the Share this folder check box and click Apply.

NOTE: Do not use SPACES in your NFS Directories Name, you will get an error and it will not share.

NFShowto2
*1 And then I created a Text File in that Directory for testing, you will see this at the end.

Now get into yor vSphere Client and navigate to the Host’s Configuration tab

NFShowto8
You are going to want to choose Network File System and click Next

NFShowto3
And here you will put in the servers IP for the Server: field and the folder name that you created on your C:\ Drive in the Folder: field. Datastore Name is totally up to you, I use the same as the folder name for easy identification.

NFShowto4Verify all your settings and click Finish

NFShowto5Now browse the Datastore from your vSphere Client and you will be able to READ anything from that share, so your VM’s will be able to use this files to boot from, etc.

NOTE: If you want to be able to write to this folder from esx, you will need to go back and change the permissions in the NFS Sharing tab

NFShowto7 NFShowto6
*1 And now you can see the test text file that I created previously. Baaaaaaaaaaaaaaaaaaaaaammmm!.txt

Or you could just avoid all of this GUI stuff, SSH in and run the following command:

Generic: esxcli storage nfs add -H NFS_IP|NFS_HOSTNAME -s Share_mount_point_on_the_NFS -v DatastoreName

My Command: esxcli storage nfs add -H 192.168.0.168 -s NFS-VMstorage -v NFS-VMstorage

EXTRA: Set up NFS with Read-WRITE Permission for ESXi Host

NOTE: I have only tested sharing with restrictive permissions (to a single box) while both the ESXi Host and the Windows 2012 Server are joined to the same Domain. I’m sure if you can get DNS to resolve, you should be fine. 
NOTE II: This part did require a reboot for me.

After you have followed the steps above, log back into the server that your NFS share is on and browse to the share directory and select Properties > NFS Sharings > Manage NFS Sharing >Permissions > Add then add the esxi host with Read-Write Permissions.
NFShowto-Bonus

After doing this I was able to move data to this datastore from other datastores.  I mainly used this to house my Template VM’s for labs, but there are plenty of scenarios in which it can be useful.

]]>