In this article, we will take a detailed look at how to mount a good trusted Windows 2012 R2 Server or higher network share as a data store to our VMware ESXi host and use it to store your actual machine (VM) files or ISO images. VMWare ESXi cannot be used directly for Windows shares (via SMB), so my husband and I must use it differently.

< p>An ESXi host can use two types of storage as data storage:

< st>

  • Local disk or LUN from an external storage device connected via Fiber Channel or possibly iSCSI
  • Network File System (NFS) is a network power source for remote access to data file systems commonly used in Unix/Linux environments.
  • Firstly, Microsoft implemented a basic NFS server service on Windows. Server 2003 R2 and therefore predates Windows Server 2012 R2.

    Tip. The advantage of Directory nfs as storage for VMWare VM files should only be considered when working with a non-critical test or production environment.

    So we need to first set up an NFS share on Windows next year R2. , hthen connect it to the datastore on the ESXi host. We already have a server with file and storage services configured. To install the NFS server role:

    1. Open the Server Manager Console and select Manage -> Add Roles and Features.
    2. On the Server Roles tab, expand File and Storage Services -> File and iSCSI Services
    3. Select NFS server
    4. When maintenance is complete, click Close

    Tip: You can install server features for NFS even easier with a single powershell command:

    Add-WindowsFeature You must install "fs-nfs-service"

    Next Try creating a new Windows directory to use as an NFS hardpoint, in this example we all created the c:nfs folder and this is often not the best practice :).

    Change the Open Server Console Manager and go to File and Storage Services -> Shares ‘http://www.w3.org/2000/svg’%20viewBox=’0%200%20650%20461’%3E% 3C/svg%3E”>

    < p> Specify the desired share path and details. In this example, we are buying nfs stock. Under such circumstancessrv_fs01:/nfs

    In the validation method, turn off checking Kerberos validation methods and select only ‘No Server Authentication’ and “Enable unattributed Dieter access”.

    To configure sharing permissions, enter ESXi with all host FQDNs/IP addresses, select read/write permissions, and check Allow root access.< /p>

    Tip: You can also use the Windows Firewall to restrict access to NFS, denying access unless it’s necessary IP address required or subnet required

    how to mount hfs file system in vmware

    You can create an NFS share and access it via PowerShell:

    New-NfsShare -Name "NFS" -Path "c:nfs" -AllowRootAccess $true -Permission Readwrite -Authentication sys

    < pre>Grant -NfsSharePermission -Name “NFS” -ClientName 192.168.1.111 -ClientType host -LanguageEncoding ANSI

    So we have a new Sharing NFS Web built on Windows Server in 2012 R2. Remaining connectUse this tool as a data store to a VMWare host.

    Tip. Make sure the vmkernel port is configured on your ESXi host.

    1. Login with your vSphere server or ESXi device and select your host. From the action menu, select Storage – New > Datastore
      .
    2. Select NFS as datastore type
    3. Select NFS 4.1 (supported on Windows Server 2012 and later)
    4. Specify the storage name (WindowsNFS), enter the NFS folder (/nfs) and NFS server information (IP address or DNS name)

    After successfully integrating the NFS machine datastore, you can use this datastore (still empty) to host VM machine data or OS ISO images for storage.

    < /p >

    • Author
    • Recent posts

    < div>< p>I’m into technologyI managed several private sites this year, shared useful joys in gadgets, PC administration and website promotion.

    < /section>

    Recent posts by Kirill from Kardashevsky (show all)

    < /section>