How to Access VMFS Datastore from Linux, Windows, or ESXi | Windows OS Hub (2024)

Let’s look at several ways to access data stored on the datastore with the VMFS file system of the ESXi host (these are configuration files, data files, and snapshots of virtual machines) from Linux, Windows, and VMware hypervisor. Actually, this article is based on a real case of our client when a single VMware ESXi host has suddenly crushed.

If your ESXi host crashes, but the local disks (or LUNs) are still functional, you can copy the virtual machine files and run the VMs on another host (on VMware Workstation or even on Hyper-V). Common operating systems (Windows and Linux) by default won’t see data on a partition with a VMFS file system, because they don’t have a VMFS driver

Let’s consider three scenarios of accessing data on the VMFS datastore.

How to Mount VMFS File System on Linux (Ubuntu)?

Let’s look at how to mount a partition with the VMFS file system on a computer running Ubuntu 20.04 LTS installed. Install the vmfstools package depending on the version of the VMFS file system:

  • vmfs-tools – supports VMFS 3 (ESXi 3.x, 4x) andVMFS 5 (ESXi 5.x)
  • vmfs6-tools – VMFS 6 (used by default in modern versions of ESXi since vSphere 6.5)

In our example, the disk was connected to an ESXi 7.1 host, so you need to install vmfs6-tools to access data on a VMFS6 file system:

# apt-get -y install vmfs6-tools

Create a mount directory:

# mkdir /mnt/vmfs

Get the disk name and partition type:

# fdisk -l

In our example, you can see that the /dev/sdb drive has an sdb1 partition with the VMware VMFS file system.

Note. To access the GPT partition table on disks larger than 2 TB, use the parted command instead of fdisk:

# parted -l

To mount this VMFS partition on Linux, run the command:

# sudo vmfs6-fuse /dev/sdb1 /mnt/vmfs

The command returned that the specified partition contained a VMFS6 file system and mounted it to the target directory.

Virtual machine files on a VMFS disk are available for you in read-only mode and you can copy them or quickly run them with VMware Player/Workstation.

An error may occur while mounting a partition:

VMFS Unsupported version 5Unable to openfilesystem

In this case, you need to install vmfs-tools which supports VMFS3 and VMFS5:

# apt-get install vmfs-tools

It remains to mount the disk partition with VMFS 5 datastore:

#vmfs-fuse /dev/sdb1 /mnt/vmfs

Mounting VMFS Partition on a New VMware ESXi host

Above, we looked at how to mount VMFS partition using third-party VMFS drivers. However, the most universal way to access data on a VMFS data store of a failed server is to connect its disks to a new ESXi server (you can install ESXi on a new host in less than an hour). I think this is the easiest way to mount a VMFS volume from a physical hard drive or LUN on a storage array device (connected via Fiber Channel or iSCSI).

Follow the steps below to mount an existing VMFS datastore on a new ESXi host without formatting it:

  1. Connect to the new ESXi server (ESXi 6.7 in this example) using the vSphere Web Client;
  2. Connect the disk to the new host and perform Storage rescan (if your VMFS is located on an iSCSI LUN, you connect it according to the guide);
  3. Go to the Devices tab, and find your LUN in the list. Make sure ESXi sees the VMFS partition there;

    If the VMFS datastore has been removed from the storage device, check the post “How to recover an accidentally deleted VMFS datastore?

  4. Connect to the console of the ESXi host via SSH and run the command: vmkfstools -V
  5. This command should find available VMFS partitions on disks and mount them;
  6. Open vSphere Client and make sure your VMFS storage is now available. Click on it and select Mount;
  7. Open the Datastore Browser. Now you can access all files on VMFS datastore. You can find the necessary vmx files, register them on the current ESXi host, and immediately run critical virtual machines.

In previous versions of ESXi (6.5, 6.0, 5.x), it was possible to mount an existing VMFS volume from the vSphere Client GUI. To do this, select the Keep the existing signature option when adding a new VMFS datastore.

Accessing VMFS Datastore from Windows

In order to mount the VMFS partition and access virtual machine files from Windows, you’ll need a special Java driver – Open Source VMFS Driver. This driver requires Java version 6 or later and allows to mount VMFS volumes in a read-only mode.

You can download Open Source VMFS Driver here: https://code.google.com/archive/p/vmfs/. This project has not been updated since 2010 andthe latest version of the driver that is available on the site is VMFS Driver r95, which supports only VMFS 3 (< VMware ESXi 5.x).

Note. If you try to mount to a newer version of VMFS, you will receive an error message: No VMware File System detected.

  1. Download Open Source VMFS Driver (fvmfs_r95_dist.zip) and extract it to any directory (e.g., C:\vmfs);
  2. You can check the operation ofthe java-application fvmfs.jar as follows:
    cd \vmfs
    java -jar fvmfs.jar
  3. Next, you need to determine the number of the disk containing the VMFS datastore connected to your Windows computer. You can find the disk number in the Disk Management Console or using diskpart (in our example, the connected disk has the index 1 – Disk1. For fvmfs driver, this disk has the following name \\.\PhysicalDrive1);
  4. Try to get information about this disk:
    java -jar fvmfs.jar \\.\PhysicalDrive1 info

  5. Share this disk with WebDAV:
    java -jar fvmfs.jar \\.\PhysicalDrive1 webdav
  6. Make sure that the WebClient service is started. If the service is disabled, run it;
  7. Mount the shared disk:
    net use * http://localhost:50080/vmfs
  8. A new disk containing read-only VMFS datastore will appear in Windows;
  9. Do not close the command prompt window while working with files on the VMFS datastore.
How to Access VMFS Datastore from Linux, Windows, or ESXi | Windows OS Hub (2024)

FAQs

How to Access VMFS Datastore from Linux, Windows, or ESXi | Windows OS Hub? ›

Accessing VMFS Datastore from Windows

How do I access ESXi datastore from Windows VM? ›

To access VMFS (Virtual Machine File System) Datastore from Windows with DiskInternals VMFS Recovery, follow these steps:
  1. Download and Install DiskInternals VMFS Recovery: ...
  2. Launch DiskInternals VMFS Recovery: ...
  3. Connect the Storage Device: ...
  4. Select the Storage Device: ...
  5. Scan for VMFS Datastores: ...
  6. Explore VMFS Datastores:
Jul 15, 2024

How do I browse datastore in ESXi? ›

In the vSphere Client, navigate to the folder of the virtual disk you want to inflate.
  1. Navigate to the virtual machine.
  2. Click the Datastores tab. The datastore that stores the virtual machine files is listed.
  3. Right-click the datastore and select Browse Files. The datastore browser displays contents of the datastore.
Jun 1, 2023

How to connect VM to datastore? ›

To add a datastore to a VM:
  1. Right-click the VM and click Edit Settings.
  2. Click Add Device.
  3. Select New Hard Disk.
  4. Browse to the location of the datastore and select the datastore.
  5. Change the disk capacity to 900 GB.
  6. Change the sharing to No Sharing.
  7. Change the disk mode to Independent Persistent.

How to add VMFS datastore to ESXi? ›

From the vSphere client, right-click the Workload cluster. Select Storage > New Datastore. Select the datastore type. In this example, VMFS is selected.

How do I check my VM Datastore? ›

View the datastore files for VMs
  1. Click the Infrastructure, Applications, or Storage tab.
  2. Select a VM.
  3. On the Summary tab, in the General section, find VM Files, then click the Click to View link.
Jun 19, 2024

How do I access VM files from host VMware? ›

Locating VMware Workstation and VMware Server configuration and log files
  1. Select the virtual machine from the VMware application window.
  2. Click VM > Settings.
  3. Click Options.
  4. Click Advanced. Under File locations you will see Configuration and Log . You can find the files in those directories.
Mar 20, 2024

Can Linux read vmfs? ›

However, you can mount VMFS in Linux in the read-only mode, including the latest VMFS 5 and VMFS file systems. VMFS tools and VMFS 6 tools are used for this purpose. As for Windows, VMFS support is quite limited for existing tools and doesn't allow you to mount the latest VMFS versions in Windows.

How to list dataStore in ESXi command line? ›

Run the esxcli storage vmfs extent list command to generate a list of extents for each volume and mapping from device name to UUID. Alternatively, execute the "esxcfg-scsidevs -m" command to list out all the VMFS backed datastores that are currently active/mounted on the host along with their UUID information.

Can Windows read a vmfs partition? ›

Accessing VMFS Datastore from Windows

In order to mount the VMFS partition and access virtual machine files from Windows, you'll need a special Java driver – Open Source VMFS Driver. This driver requires Java version 6 or later and allows to mount VMFS volumes in a read-only mode.

How do I connect to datastore? ›

  1. In the Google Cloud console, go to the VM Instances page.
  2. Click the Create instance button.
  3. In the Identity and API access section, set Access scopes to provide access for Datastore. ...
  4. Click the Create button to create the VM instance.
  5. Confirm that your instance is running.

What is VMFS datastore? ›

The datastores are logical containers that hide specifics of physical storage from virtual machines and provide a uniform model for storing the virtual machine files. The datastores that you deploy on block storage devices use the native vSphere Virtual Machine File System (VMFS) format.

How many datastores per ESXi host? ›

1 datastores per host are supported. E.g: same ESXi host can have 256 NFS3 and 256 NFS4. 1 datastores mounted. But individual limit of 256 NFS datastores is to be maintained per protocol version.

How do I know which datastore ESXi is installed? ›

To locate where your ESXi is installed, you can check the boot device or the storage device where ESXi is installed. You can also log in to the ESXi host using a console or SSH and run the "vmware -v" command to check the version and build number of ESXi, which will include the location information.

What is the datastore in ESXi? ›

A datastore is a manageable virtual storage entity created by VMware ESX/ESXi hosts, usually used as a repository for virtual machine files including log files, scripts, configuration files, virtual disks, and so on.

How to connect datastore to host? ›

Right-click the host and then select ONTAP tools > Mount Datastores. Select the datastores that you want to mount, and then click OK.

How do I find my ESXi host on Windows VM? ›

Open SQL Management Studio. Right-click the database that vCenter Server is using. Open a new query window and ensure that the vCenter Server database is selected. This query returns the virtual machine ID, virtual machine name, host ID, and host name.

Can Windows read vmfs? ›

In such cases, you might need to mount a VMware VMFS file system on another ESXI server or on a Linux machine to copy VM data during disaster recovery. You can also mount VMFS on Windows but this is limited to VMFS 3, which is outdated and no longer used in modern vSphere environments.

How do I access ESXi management console? ›

After enabling the ESXi shell, press Alt+F1 to open the console on the machine running ESXi. You should enter your login and password after that (the credentials of the root user can be used). You can execute ESXi shell commands. If you need to go back to the ESXi DCUI, press Alt+F2.

How do I access ESXi host directly? ›

Follow the steps to log in to the vSphere ESXi Host:
  1. Open the vSphere Client.
  2. Enter the IP address or name of the vSphere Hypervisor in the IP address / Name field.
  3. Enter the user name in the User name field.
  4. Enter the password in the Password field.
  5. Click Login.

Top Articles
Latest Posts
Article information

Author: Ms. Lucile Johns

Last Updated:

Views: 6371

Rating: 4 / 5 (61 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Ms. Lucile Johns

Birthday: 1999-11-16

Address: Suite 237 56046 Walsh Coves, West Enid, VT 46557

Phone: +59115435987187

Job: Education Supervisor

Hobby: Genealogy, Stone skipping, Skydiving, Nordic skating, Couponing, Coloring, Gardening

Introduction: My name is Ms. Lucile Johns, I am a successful, friendly, friendly, homely, adventurous, handsome, delightful person who loves writing and wants to share my knowledge and understanding with you.