Using ESXi 4.x installation media for access to virtual machine files
search cancel

Using ESXi 4.x installation media for access to virtual machine files

book

Article ID: 309825

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article provides guidelines for accessing virtual machines on local storage when the ESXi server installation is unable to boot successfully. This article uses the ESXi 4.x Install DVD as a live environment for troubleshooting, but can be used to recover data written by ESX/ESXi 3.x or 4.x.

The process can also be performed using the ESX 4.x Install DVD. For more information see Using ESX installation media for access to virtual machine files (1030778).

You may require access to your virtual machine files if:

  • A VMware ESX/ESXi server is unable to boot and a re-installation is required.
  • There are virtual machines residing on, or only accessible by, the downed server (such as on local VMFS storage).

Notes:

  • The ESX/ESXi installation process already provides the capability to reinstall the operating system while retaining existing VMFS partition contents, including contained virtual machines. This article assumes that virtual machine recovery or access is still desired prior to re-installation.
  • If the VMFS Datastore is shared and accessible by multiple ESX hosts, the process in this article is unnecessary. The virtual machines can be restored by registering the virtual machine to a working ESX host. For more information, see Registering or adding a virtual machine to the inventory (1006160).


Symptoms:


Environment

VMware ESXi 3.5.x Installable
VMware ESXi 3.5.x Embedded
VMware ESXi 4.0.x Embedded
VMware ESXi 4.0.x Installable

Resolution

To use the ESXi 4.x installation media for access to virtual machine files:
Note: This process steps partially through the ESXi Installation process without writing any changes to disk.
  1. Download the appropriate VMware ESXi 4.x installation media as an ISO image from the Download Center.
  2. Burn the image to recordable media, or mount the image to your System Management Interface's virtual CD/DVD-ROM drive.
  3. Boot from the ESXi installation media. ESXi loads drivers during startup.
  4. The system boots to a Welcome prompt with three options: Cancel, Repair or Install. Do not proceed with either Repair or Install.
  5. Press Alt+F1.
  6. Log in to the console.
    • For ESXi 4.0:
      1. Type unsupported and press Enter. Keystrokes are echoed to the screen.
      2. Press enter to login with a blank password.

    • ESXi 4.1:
      1. Type the login name "root" and press enter.
      2. Press enter to login with a blank password.

  7. At this point, you have access to VMFS Datastores and their contents, along with the vmkfstools and esxcfg-* commands. Yoy may need to load the VMFS driver to detect the VMFS volume by using the command:

    #vmkload_mod vmfs3

  8. DHCP is configured by default on the vmk0 interface. Verify the IP address with the command:

    esxcfg-vmknic -l

    Note: If needed, use esxcfg-vmknic to set a static IP address. For more information, see Networking Commands in the vSphere Command-Line Interface Installation and Reference Guide.

  9. List the contents of /vmfs/volumes/ to verify that the existing VMFS-3 Datastores are accessible. Run the command:

    ls /vmfs/volumes

  10. If storage is missing, see:
  11. Transfer data from your VMFS Datastore(s) using:


Additional Information

For specific guidance on copying virtual machine files in the command-line, see:

Prior to powering-on a virtual machine that was recovered to a different host, see Changing or keeping a UUID for a moved virtual machine (1541).

Specific recovery or backup procedures, processes, and commands are beyond the scope of this article and VMware Technical Support. However, you can raise a discussion in the VMware Communities.