ESXi datastore recovery problem

Posted on 2012-08-29
Last Modified: 2012-09-01
I was running esxi on a flash drive (why? because it sounded like a cool idea) and the flash drive got bumped and damaged and I had to reinstall esxi on a new flash drive and booting up on it, it sees the two datastores on the sata hard drives on the computer but it doesn't see any of the vm's that I know are there.

The computer didn't get damaged, just the original flash drive.

I click on browse datastore and it searches for a long time with a lot of linux-looking dots ...............................................................................................................................................................................................................

And then it finds nothing.

The vm's are there.  I can tell by the free space reported.

So how do I get them back.

Any ideas?

Question by:gateguard
    LVL 42

    Expert Comment

    browse to the datastore-> VM Folders - VMX file.  Right click on VMX file and click "register Virtual Machine"

    That should do it.
    LVL 46

    Assisted Solution

    Nothing wrong with doing that, booting to flash is a reasonable and common thing to do.  (But next time use industrial flash that you just plug into the motherboard directly or use an extension cable so you can tape the USB to the outside of the system.

    Warning: This is a UNIX 101 response, not specific to vmware.  This is how one deals with a munged file system for most *NIX. [No indication from your Q if this is file system that got initialized, munged, or a configuration change is in order]

    Create another bootable USB stick, but use a linux distribution, not esxi.  boot to the new stick.  Then do a man fsck.    The man pages will give you an option to do a file system check that is read-only, I don't remember the option for linux, but -m works with other UNIX flavors, as well as -v for verbose.

    Do the fsck and see if it finds problems or all is good.  If the report looks "reasonable" then cross fingers and run fsck w/o the read-only option.  (The point of this is that you can't run fsck from a mounted file system, or it will really mess you up).

    There may be more elegant ways, this is A way.  P.S.  Best practice is to use dd and take an image dump of the munged up USB drive and save that dump to the network or something just in case.
    LVL 42

    Assisted Solution

    I would also check if you have internal USB or SD slot (SD preferred), this would be a better choice
    LVL 116

    Accepted Solution

    1. Connect to the server via SSH or login at the console and check /vmfs/volumes for any folders or files.

    When you re-installed, it's possible it could have re-formatted the current vmfs partitions.

    otherwise, I can recommend the use of VMFS Recovery, which can recovery virtual machine (vmdk) disks from VMFS partitions.

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    VMware vCenter Converter Standalone 5.0 is a FREE tool available from VMware upon registration, the purpose of this software tool is to easily convert physical or virtual computers, images of computers to VMware virtual machines. Server and Workstat…
    In vSphere 4 1 and 5.0, you can enable both Remote SSH and the ESXi Shell for management of hosts from the vSphere Client and from the Direct Console User Interface. You may have noticed that on enabling both Remote SSH and the ESXi Shell for man…
    Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
    This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now