Vmwarevm File Sorting and Compression

Source: Internet
Author: User
When you create a VM in VMware, the wizard determines whether to pre-allocate the Virtual Disk Space (preallocate for Virtual Disk). If you select this option, VMWare will immediately allocate all the space (allocate all disk space now ); otherwise, the virtual machine file will increase with the use of the virtual system. By the way, VMWare seems to have a strange limit: FAT32 supports a maximum of 4 GB files, and if you do not choose to split the disk into 2 GB files (split disk into 2 GB files ), if you save the VM on the FAT32 drive, the system prompts "the target file system does not support large files ". I don't know what the software is.

If you choose not to allocate space immediately, after using the virtual machine for a while, you will find that the virtual machine files only increase or decrease, much larger than the space used in the virtual system; there is also a gradual decline in the speed of virtual systems, which may cause a lot of inconvenience. In this case, you can organize and compress the Virtual Disks/Partitions: you can find the Virtual Disk settings in the virtual machine settings. The key is to maintain the continuity of disk data and improve disk performance. The shrink function can reclaim unused space in the virtual system, so that the file size of the virtual machine is basically the same as the occupied space of the virtual system.

I thought the compression function should also be available in VMware software, but it was not found for a long time. Searching materials online is also misleading. Later, after carefully reading the VMware user manual, we found that the original feature is divided into two steps. Instead, we should first start it in the Virtual Operating System of the virtual machine! VMware Tools is installed on the Virtual Machine: the virtual Windows system has VMware Tools in the control panel, while the virtual Linux/FreeBSD system can use vmware-toolbox. Open the shrink column, select the partition to be compressed, and click prepare to shrink to prepare for compression. After the compression preparation is completed in the virtual machine system, the system will jump back to the real operating system, there is a progress box indicating that the VM file is being compressed, and finally the VM system prompts you to complete the compression.


However, there are some limitations on the compression function. For example, the compression function cannot be used on virtual machines with pre-allocated space selected, snapshots are not available, partitions can only be compressed, and physical disks cannot be compressed. For details, refer to the user manual. In addition, when viewing help, you should click "User's Manual" in the Help menu, instead of "Help topics ), otherwise, you will only be able to see some basic VMware software configuration operations, and many things will not be found.

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.