0% found this document useful (0 votes)
5 views5 pages

Verifying That ESX - ESXi Virtual Machine Storage Is Accessible

This article provides guidance on verifying the accessibility of the storage system for ESX/ESXi virtual machine files, which is crucial to prevent issues like virtual machine failures or unresponsive guest operating systems. It outlines steps to determine the location of virtual machine files, verify access to those locations, and confirm the ability to create new files. The article also includes troubleshooting tips for identifying shared storage issues and ensuring proper permissions are in place.

Uploaded by

kushika
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views5 pages

Verifying That ESX - ESXi Virtual Machine Storage Is Accessible

This article provides guidance on verifying the accessibility of the storage system for ESX/ESXi virtual machine files, which is crucial to prevent issues like virtual machine failures or unresponsive guest operating systems. It outlines steps to determine the location of virtual machine files, verify access to those locations, and confirm the ability to create new files. The article also includes troubleshooting tips for identifying shared storage issues and ensuring proper permissions are in place.

Uploaded by

kushika
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Verifying that ESX/ESXi virtual machine storage is accessible https://knowledge.broadcom.com/external/article?

articleNumber=344288

MENU

 Search  Search

Verifying that ESX/ESXi virtual machine storage is accessible

 Article ID: 344288  Updated On: 03-24-2025

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

This article guides you through determining if the storage system on which your virtual
machine files reside is accessible. If the storage system becomes unavailable, unexpected
behavior may occur, including the virtual machine failing to power on, the guest operating
system failing, or applications in the guest operating system may not work.

Symptoms:

• Cannot power on a virtual machine.


• Guest operating system fails or stops responding.
• Guest operating system application fails to work.
• Guest operating system file copy or move operation fails.
• Guest operating system disk related error.

1 de 5 21/04/2025, 21:31
Verifying that ESX/ESXi virtual machine storage is accessible https://knowledge.broadcom.com/external/article?articleNumber=344288

Environment

ESXi

Resolution

To determine if the storage system on which your virtual machine files reside is accessible:

1. Determine the location of all your virtual machine files.


2. Verify that you can access the location of the virtual machine files.
3. Confirm that you are able to create a new file in that location.

D e t e r m i n i n g t h e l o ca t i o n o f a l l y o u r v i r t u a l m a ch i n e f i l e s
You can determine the location of all your virtual machine files graphically using the vSphere
Client or vSphere Web Client, or from the command line.

G r a p h i ca l l y
U s i n g th e v S p h e r e C l i e n t:

To determine the location of all your virtual machine files graphically:

1. Using the vSphere Client connect directly to your ESX/ESXi host or to your vCenter Server.
2. Select the virtual machine you have to troubleshoot from the inventory.
3. Right-click the virtual machine and choose Ed it S ettin g s . From the screen that is shown
you can see where the hard disk data for your virtual machine is stored.

No te: This data is stored in .vmdk files.

4. This image shows how you can obtain the location of the .vmdk files:

By selecting the hard disk under the H a r d wa r e tab, the location of the .vmdk file is shown
in the top right, under Disk File. The location of the .vmdk file in the example is
[storage3]vm1/vm1-000001.vmdk.

2 de 5 21/04/2025, 21:31
Verifying that ESX/ESXi virtual machine storage is accessible https://knowledge.broadcom.com/external/article?articleNumber=344288

By choosing each Hard Disk associated with the virtual machine under the H a r d wa r e
tab, you can note the file locations.

5. From this screen it is also possible to find the location of the configuration file and the
working directory of the virtual machine. By selecting the O p tio n s tab, a screen similar to
the one below is shown:

On the right side the location of the Virtual Machine Configuration File (in this example,
[storage3] vm1/vm1.vmx) is shown along with the Virtual Machine Working Location (in
this example, [storage3] vm1). By noting these location, you have now determined the
location of your virtual machine files.

U s i n g th e v S p h e r e W e b C l i e n t:

1. Log in to the vSphere Web Client with your user.


2. Click V M 's a n d Temp la tes .
3. Expand the datacenter.
4. Right-click the virtual machine and select Ed it S ettin g s . . .
5. Expand the drive you have to determine the location of the .vmdk file.
6. The location will be under the Disk File field.

Fr om t h e C om m a n d L in e
To determine the location of all your virtual machine files from the command line:

1. Log in to the VMware ESX/ESXi host as the root user.


2. Run vmware-cmd -l to list the location of the configuration files for the virtual machines
registered on an ESX host.
3. Run vim-cmd vmsvc/getallvms to list the location of the configuration files for the virtual
machines registered on an ESXi host.
4. Record the location of the .vmx file (configuration file) for the virtual machine that you
are troubleshooting. For example:

/vmfs/volumes/########-####-########3333/vm1/vm1.vmx

5. If the virtual machine is not registered on the ESX host and you have to search its
configuration file, run this command and press En ter :

3 de 5 21/04/2025, 21:31
Verifying that ESX/ESXi virtual machine storage is accessible https://knowledge.broadcom.com/external/article?articleNumber=344288

find / -name "*.vmx"

6. The results of step 4 list all virtual machine configuration files. Search the results for the
name of a virtual machine file you are interested in locating. The results also list the path
to the directory where these files are located.
7. By viewing the configuration file of a virtual machine, you can tell where all of its
associated files, including .vmdk files, are located. If a file is not in the same directory as
the configuration file the complete path is shown in the configuration file. For example, a
second hard disk may have an entry such as the one shown below:

scsi0:1.present = "true"
scsi0:1.fileName = "/vmfs/volumes/########-####-########bb44/diskStore/
secondHardDisk.vmdk"

V e r i f y i n g t h a t y o u ca n a cce s s t h e l o ca t i o n o f t h e v i r t u a l m a ch i n e f i l e s
Using the file locations you retrieved in part 1 of this article, navigate to the virtual machine file
location and confirm if you can see the files located there.

1. Log in to the VMware ESX/ESXi host as the root user.


2. Use the ls command to navigate to the relevant locations. For example:

ls /vmfs/volumes/########-####-########3333/vm1/

If the files associated with your virtual machine (vmdk, vmx, nvram) are listed, you are able
to access the storage hosting of your virtual machine. If not, see Identifying shared
storage issues with ESX and ESXi.

N o te s :
◦ If you have virtual machine resources located in more than one location, such as a
second hard disk, repeat step 2 for each location.
◦ If a storage system is unavailable, you experience different symptoms depending
on which virtual machine resource is located on that storage system.

C o n f i r m t h a t y o u a r e a b l e t o cr e a t e a n e w f i l e i n t h a t l o ca t i o n
If you can view existing files but you cannot create a new file, then you are either not logged in
as a user with the correct permissions to the directory or the directory permissions have
changed.

Be sure to delete the new file after you have created it.

No te: If the virtual machine's storage is inaccessible, check third party storage connectivity to
your ESX hosts. For more information about fiber channel storage, see Troubleshooting fibre
channel storage connectivity.

4 de 5 21/04/2025, 21:31
Verifying that ESX/ESXi virtual machine storage is accessible https://knowledge.broadcom.com/external/article?articleNumber=344288

Feedback

Was this article helpful?

 Yes
 No

Powered by

PRODUCTS

5 de 5 21/04/2025, 21:31

You might also like