I got a call from a client today that is running a VMware ESXi server as a proof of concept in their SMB environment. The admin that setup the VMware ESXi Server configured the ESXi server to boot and run ESXi from a USB memory stick. Things have been running fine but the company and the administrator that setup the server had a falling out, so to speak, and the administrator left the company and took the USB memory stick with him. The server continues to run fine as ESXi basically runs from memory but, rebooting this host is now not an option since there are no files available for the host to boot from. So what is the best way to recover and get things back to normal? I did a little research and the information that I have found will work will both ESXi 3.x as well as vSphere ESXi.
The first question that needed to be answered was how to recreate the USB memory stick. I came across a great guide from Duncan Epping on his blog www.yellow-bricks.com. Although this was originally written for ESXi 3.5 Update 2, the same rules apply and this will work for vSphere. Duncan was also nice enough to have a pdf version of the guide with screen shots.
- First get the following tools: 7-Zip(Free), WinImage(Demo)
- Download the ESXi ISO
- Open the ISO with 7-Zip
- Extract “install.tgz”
- Open “install.tgz” with 7-Zip
- Click on “install.tar”
- Browse to “usr\lib\vmware\installer\”
- Open “VMware-VMvisor-big-3.5.0_Update_2-103909.i386.dd.bz2″
- Extract “VMware-VMvisor-big-3.5.0_Update_2-103909.i386.dd”
- Open WinImage and go to Disk, click on “Restore Virtual Harddisk Image on physical drive”
- Select a physical drive
- Select “VMware-VMvisor-big-3.5.0_Update_2-103909.i386.dd”
- And click “yes” to write the DD image to the USB Disk
Now with VMware vSphere ESXi we now have the option to install directly to the USB memory stick from the install CD. The installation process is pretty straight forward compared to the process above. To make life even easier we can take advantage of using VMware Workstation to install ESXi to the USB drive and have everything setup from the comfort of our desk.
One thing that I have been told with both options is to make sure to boot the newly installed ESXi from the memory stick once before taking the stick to the physical server itself. So if you install ESXi nested from within workstation let the ESXi virtual machine boot once after the install. If you followed the steps above for the ESXi 3.5 version create the ESXi virtual machine in VMware workstation and let the virtual machine complete its first boot.
In my particular situation, the metadata or post configuration will be gone once the physical host has been rebooted and I will need to reconfigure these settings again as well as register the virtual machines again but the new ESXi image will be able to find and detect the current VMFS partition as well as the virtual machines on the partition. Not a total loss and it should not take to much time to recover and get things back to where it was.
Share this Article:
Latest posts by Steve Beaver (see all)
- The Possibilities Could Be Endless: Virtual Assistant - March 24, 2017
- News from the Storage World - March 17, 2017
- Virtualization Vendors 4th Quarter Results - February 27, 2017