HD Clean up in VM

cgeorgeisaac
cgeorgeisaac used Ask the Experts™
on
I have been tasked to clean up and make more space in a VM. See attachment.
It is a Win 2008 R2 and I have done the normal stuff like cleaning/deleting temp files, compression, removing unused profiles, etc.
 I was wondering if  I can reduce the .vswp (swap files) since there are 2.  Any other advise will be appreciated.
Thanks.
SwapFile.docx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Are you trying to save space inside the VM, or outside of the VM ?

currently you are looking outside of the VM, on he Hypervisor datastore.

As for the vSWP files, these are part of the hypervisor design, and are created when the VM is powered ON, they are removed then the VM is off, you cannot remove them!

They are used, when the hypervisor, starts to run out of memory for the VM, and starts to swap to disk.

If you wish to reduce the sizes on the VMFS datastore, you can specify memory reservations, but be warned if you start messing with reservations, you will affect the performance of the VM, by restricting memory in the VM. or ring fencing resources for the VM.

So are you trying to save space on the VMFS datastore or inside the VM OS partition?
cgeorgeisaacSenior Engineer

Author

Commented:
Thanks for your quick response.  I want to save space INSIDE the VM OS partition.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
So you need to do this inside the VM, not outside the VM on the datastore. So you need to connect to the VM using Remote Desktop Connection, or Open the console to the VM, and delete files inside the VM, from he VM OS Partition.

But remember here, that you have a virtual machine disk container, on the datastore, which is approx 230GB, this has been predefined, deleting files inside the VM, is NOT going to change this FIXED size, it will always occupy 230GB, does not matter, how many files get deleted.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

cgeorgeisaacSenior Engineer
Commented:
Thanks.
Sure, but I am not too sure what else  needs to be deleted or uninstalled from the Win 2008 R2 OS, to make more space.
I Tried this: http://www.hanselman.com/blog/GuideToFreeingUpDiskSpaceUnderWindows7.aspx
and
http://www.vsysad.com/2013/04/remove-vm-swap-file-in-esxi-5-x/   (but this is for Outside VM - for datastore)
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
that seems an okay article, at removing files in the VM....

Are you short of space in the VM ?

what are you trying to achieve ?
cgeorgeisaacSenior Engineer

Author

Commented:
Yes short on space in the VM and the Storage too does not have much space.  This being a developer's  VM I really need to make some space (without deleting any programs)..  Would V2V conversion help or Resizing help?   If so, would appreciate the specific steps please.
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
Okay, so you will need to add space to the actual VMDK (VM).

but do not add too much space to fill up the datastore.

see my EE Article here

HOW TO:  Resize a VMware (VMDK) Virtual Disk
cgeorgeisaacSenior Engineer

Author

Commented:
Helpful links

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial