Recover deleted vm esx

Posted on 2009-02-12
Last Modified: 2012-08-13
I had to delete a vm to make space on a server, my other vms could not run and were down.
I still see the flat file in the storage, is there a way to recreate the vm from the flat file?
Question by:imagex
    LVL 8

    Accepted Solution

    Althoough I expect it not supported the answer is yes in theory.
    You could create the vmdk pointer file but it's not a simple task.
    I would suggest the easiest way to do this would be create a new VM of the same name with the same disk size (or sizes)
    Once you have created the new guest you could then copy the original xxxx-flat.vmdk into the newly created guest via the service console.
    file names and therefore the guest name is case sensitive.
    If you create a VM of the same name but the original folder of the guest name exists, the new guests folder will be called xxxx1. So remove the original guest from the VC and ensure you rename the original folder before you start creating a new guest with the same name as your original guests name.
    LVL 2

    Assisted Solution

    Its actually pretty easy.  You need to create a symbolic link (ln -s) from the -flat.vmdk file to a .vmdk file (i.e. vmware-flat.vmdk <- vmware.vmdk, where the .vmdk is a link)  then just create a new VM and point it to an existing disk through the GUI.  I think that should do it.

    Author Comment

    Tryed but no luck.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    VMware ESX/ESXi Backup Guide If you have a licensed version of ESX/ESXi, (paid for license) you could purchase the following third party applications to perform backups. If you do not have a licensed version of ESX/ESXi, your options are limited,…
    One of the new features of a version 7.0 or later virtual machine, supported in VMware vSphere 4.1, 5.0 or the VMware vSphere Hypervisor ESXi 4.1, ESXi 5.0 often overlooked by VMware Administrators is the ability to add and connect USB devices conne…
    Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
    Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …

    761 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