Link to home
Start Free TrialLog in
Avatar of Thomas Question
Thomas Question

asked on

How to delete a VMs HDD which has an alod snapshot file which isn`t in Datastore anymoe?

Hello every one,
I have a problem with deleting an HDD in VDP. It is mounted a HDD File NAME-000002.vmdk. But there is no snapshot, the whole VM isn`t any more in this Datastore. When I try to remove this HDD from my VDP VM (no matter if I chose “remove from virtual machine” or “remove from virtual machine and delete files from disk”) I get the error:
Cannot remove virtual disk from the virtual machine because it or one of its parent disks is part of a snapshot of the virtual machine.
But this even doesn`t exist anymore in Datastore. I can understand a security mechanism that will not let you delete HDDs with snapshots. But this is too much. How can I delete this HDD in my VDP VM as it doesn`t exist anymore in my Datastore?
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

You will need to deregister the VDP VM from the Inventory (do not delete from datastore)

and then manually edit the configuration file (the vmx file) and remove the lines relevant to this disk.

Make sure you create a copy of the VMX file before you make any changes ?
SOLUTION
Avatar of Thomas Question
Thomas Question

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Thomas Question
Thomas Question

ASKER

Thank you very much. One more question ... a shame but how do I get the VM back in Inventory? I only find option to create a new one or deploy OVF Template :(
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
done