How to Reduce disk space of vmwarevm

Source: Internet
Author: User

How to Reduce disk space of vmwarevm

In my laptop, I have two virtual machines, and their VM disks take about 80 GB-100 GB hard disk. but if you mount the VM disks, you will find that half of the space is pre-occupied, but not used. luckily, VMware provides some ways of shrinking the VM disks. i'll take my Windows XP VM as an example to tell how to reduce the hard disk space of VM.
Www.2cto.com
1. find the Virtual Machines folder. normally, it locates 'C: \ Users \ <your nt id> \ Documents \ Virtual Machines \ <specified VM> 'and in this case, it's 'C' C: \ Users \ wuj28 \ Documents \ Virtual Machines \ WinXP '. you can find there is one file, whose extension is vmdk, and size is about 25 GB. this is the target we're re going to shoot today. if you have a good memory, the value of 25BG is set by the VM creator, and its value can be viewed in the VM settings.2. Defrag the VM disk.
A. Run the CMD as the administrator, and go to the VM folder.
B. Run the vmware-vdiskmanager to defrag the VM disk.
 
C. Repair the VM disk file after the defragment.
 
D. Shrink the VM disk and repair again.
 
Now we have a very solid VM disk file.
3. Create the new VM disk file by converting the original one.

 
You can find the new VM disk file is a lot less than the original one. now you can move the original VM disk file to another folder, and rename the new VM disk file as the original one. then power on your VM. if there is no problem, you can shift-delete the old & fat VM disk file now, and the disk space comes back
 

TIP: These operations need you have enough disk space, so if you have snapshots for VMs, you can deleted them all. It will free some GBs space, depends on how many snapshots you have.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.