Delete unused virtual disk from harddrive

I want to remove 200 gig virtual disk from a virtual machine, to free up physical space back.

I have attempted the following Steps but with no luck:
1. Remove it from the Hardware list (under Virtual Mahcine settings)
2. Delete old snapshots and that might include that virtual disk
3. After steps 1 and 2 , manually deleted the files

Each time I do step 3 the virtual machine wont run it says it is unable to locate the 200 gig virtual disk.

Quick Computer Specs:
-Workstation 7
-Windows XP Pro (32 bit)
-200 gig virtual disk (split into 2 gig files, preallocated )
 
What step am I missing. I realize  this should be easy.
GTTech2010Asked:
Who is Participating?
 
GTTech2010Author Commented:
Unfortunatly, none of the suggestions worked. Thanks any way.
0
 
JohnBusiness Consultant (Owner)Commented:
It is just a virtual machine, so if you don't want it (as you say), locate the folder where your virtual machines are kept. One folder will be the one you don't want. There will be files in that folder unique to the machine you don't want. Just delete the folder.  If it is too big for your recycle bin, use shift-Delete to simply delete.
... Thinkpads_User
0
 
GTTech2010Author Commented:
Maybe it will help if I clarify, I want to remove a virtual drive from a virtual machine. (I to physically delete the virtual drive files without hurting the virtual machine.)
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
webbster20Commented:
Did you dismount the disk from inside the VM?

Go into the VMs properties

Remove the entry to have that vHDD accessed

Boot VM, ensure it's gone

Then, delete the disk itself.

I don't have esx readily available now to play with, only a prod server over in the corner. Vmware workstation and esx have similar interfaces, I believe there's an area where you can manage disks.

I will play with this in a bit, if you'd like to try and repro this issue.

However, if this is ESX, I recommend a ticket with Vmware if possible.
0
 
JohnBusiness Consultant (Owner)Commented:
What do you mean by a virtual drive? Virtual Machines have real drives (that is, real to the VM). Did you add additional drives under the hardware setting? Snapshots have a different name that the main machine, but you might have deleted the main file.

Make a new folder (new name) in your main folder of VM's. Now copy the virtualmachine.vmdk file(s) to that new folder. Copy the virtualmachine.vmx file to the new folder as well. Now try to open the VM by navigating to the new folder.

If there is no .vmdk file(s) or .vmdk main file(s), then you may not have file.
... Thinkpads_User
0
 
GTTech2010Author Commented:
I have created a picture to better explain my situation.

Please read.
I am using VMWARE WORKSTATION 7.  My virtual machine works until I manually delete the files referencing an old virtual drive. I want to delete these files so I can get space back. The files as show in the picture are for a 200 gig pre-allocated drive.

vmwarepic2.JPG
0
 
JohnBusiness Consultant (Owner)Commented:
I think it is game over for your machine. You have deleted a main component of your machine and now it is lost. I do not think you can save your machine, so you might as well rebuild it from scratch.  I cannot see any other course from the picture above and your description. Byt the way I am using VMware Workstation 7 as well.  ... Thinkpads_User
0
 
GTTech2010Author Commented:
Maybe if I say it like this

My virtual machine is not broken it works fine until I have deleted the fore mentioned files (from picture above) .

I have tried numerous ways to properly remove the 200 gig virtual drive.

Each time I do, The Virtual machine then looks for the 200gig virtual drive.
(I restore from a back up and try something new, Once again my virtual machine is then working.)

I want to know how to properly remove the 200 gig drive, so that the virtual machine stops looking for it. and it is not taking up disk space.

thanks for your previous suggestions
0
 
JohnBusiness Consultant (Owner)Commented:
Your picture says that you pre-allocated the disk space when making the machine. That means that VMware sets aside that amount of space on the real disk for the virtual machine. At least it always has done that in the past, and most likely V7 is doing the same thing. I think that is why your machine is working, but when you attempt to delete a piece of it, it can no longer function.

Go to the VMware site and lookup Vcenter Converter V4. It is free. I have used this to make machines bigger (10GB XP machine not preallocated to a 50GB machine not preallocated). Perhaps you can use this in reverse and (1) make it smaller and (2) "un" preallocate it. I never preallocate disk space.
... Thinkpads_User
0
 
GTTech2010Author Commented:
I will try this suggestion to see if it works. It will take up to 24 hours.
Thanks so far for your suggestions.
0
 
GTTech2010Author Commented:
None of the suggestions worked.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.