Using an ESXi 4.1 installation on a USB flash drive for access to virtual machine files (2004224)
The process can also be performed using the ESX and ESXi 4.x Install DVD. For more information, see Using ESX 4.x installation media for access to virtual machine files (1030778) and Using ESXi 4.x installation media for access to virtual machine files (1014447).
This process allows you to register the new installation as a host in vCenter Server, then use storage migration to easily move virtual machines off the host.
You may need access to your virtual machine files if:
- A VMware ESX or ESXi host is unable to boot and a re-installation is required.
- There are virtual machines residing on, or only accessible by, the host that is not accessible.
- 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 hosts, the process in this article is unnecessary. The virtual machines can be restored by registering the virtual machine to a working host. For more information, see Registering or adding a virtual machine to the inventory on vCenter Server or on an ESX/ESXi host (1006160).
- Installing ESXi 4.x onto a USB drive has the same minimum requirements as any other ESXi installation. For more information, see the VMware vSphere 4.1 documentation.
Note: This process does not write any changes to disk, but it does a full installation onto a USB drive.
- Download the appropriate VMware ESXi 4.x installation media as an ISO image from the VMware Download Site.
- Burn the image (the ISO file) onto CD media.
- Insert the ESXi 4.x Installable CD into the CD-ROM drive.
- Set the BIOS to boot from the CD-ROM device. For more information, consult your hardware vendor documentation.
- Insert the USB flash drive into a USB port on the server you want to recover virtual machines from.
- Boot from the ESXi installation media.
- When you get to the Select a Disk screen, make sure you select the USB flash drive that you wish to perform the installation on. Do not select the local disk unless you want to overwrite your previous installation.
- Perform the rest of the installation like normal. Make sure you preserve the existing local storage throughout this process. For more information, see Installing ESXi Installable onto a USB drive or SD flash card (1020655).
- When the installation is complete, remove the installation CD and press Enter to reboot the host.
- Select the first boot device to be the USB flash device that you installed ESXi 4.x on.
- Boot the host.
To access the virtual machines:
- When the host boots, connect the ESXi host to vCenter Server using the hosts configured IP address. For more information, see the VMware vSphere Install Guide.
- Select the host from inventory.
- Click on the Configuration tab.
- Click Storage.
- Click Rescan to ensure you can see all datastores.
- Browse the datastore and re-register any virtual machines that are on the local storage. For more information, see Registering or adding a virtual machine to the inventory on vCenter Server or on an ESX/ESXi host (1006160).
From this point, you can migrate any virtual machines off this host for recovery or boot the virtual machines on this host. Alternatively, you may connect to your host directly with the vSphere Client and manage or recover the virtual machines from here.