• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

Cant delete disk from vmware vms

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?
0
vmich
Asked:
vmich
  • 3
  • 2
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Stop the VMs,

Remove VMs from Inventory.

Edit the VMX files. Remove Disk references.

Add to Inventory.
0
 
vmichAuthor Commented:
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?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.
0
 
vmichAuthor Commented:
I know someone deleted the datastore before I could delete the disk and I am very angry about that..
0
 
vmichAuthor Commented:
solved
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now