Cant delete disk from vmware vms

Posted on 2014-08-28
Last Modified: 2014-09-10
The datastores that the disk came from were deleted but the disk were not removed from the vms first. So now the disk still show on the vms but when trying to delete them, it gives an error about invalid configuration for device 0..

How can I remove these disk from the vms?
Question by:vmich
    LVL 116

    Accepted Solution

    Stop the VMs,

    Remove VMs from Inventory.

    Edit the VMX files. Remove Disk references.

    Add to Inventory.

    Author Comment

    So there are other disk on these vms but your saying once I remove them from inventoryI should be able to delete the disk references?
    I guess this is the only way to get rid of these disk?
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    the disks have already gone, they do not exist ?

    what's left are pointers in the VMX file (configuration), and when you try and edit them, the config is checked, and because the disks are gone, you get an error.

    BECAUSE usually, one deletes the entire VM or Disks first before removing a DATASTORE!

    You have to manually EDIT the VMX file.

    Author Comment

    I know someone deleted the datastore before I could delete the disk and I am very angry about that..

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    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,…
    I have recently deployed a VMware View 4.6 virtual desktop infrastructure and the last part of the project was to install the Security Server for remote users to access a virtual desktop from outside of the network. The server installation was st…
    Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
    This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

    779 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

    10 Experts available now in Live!

    Get 1:1 Help Now