Although Microsoft Official information does not recommend the use of dynamic expansion or differential disks in a production environment, we do not have much performance difference in some specific environments. These two days I am making a customized version of the Windows 7 installation image, which requires the use of WDS server to facilitate my testing. However, it is found that the VHD volume of the virtual machine is growing after multiple file copy deletion and editing operations on WDS, even if I restart or shut down the virtual machine, I cannot reclaim those lost capacity. Eventually this VHD takes up most of my space! I thought of the VHD editing tool provided by Hyper-V, which allows me to compress, convert, or extend the VHD. After compressing the corresponding VHD for the WDS server, the VHD is reduced from the 30G volume to 16G, an amazing number! An effective solution! Do not dare to enjoy, special Blog a text to share with you! The specific steps are as follows:
Open Hyper-V Manager first, select the virtual machine you want to edit, and then right-click to select Settings, select the disk drive you want to compress in the form on the right, and then click Edit in the form on the right, and you will see the following illustration, and select Compress to follow the wizard.
After compacting, you will find that the VHD frees up a considerable amount of capacity, but you need to be aware that the virtual machine must be shut down when performing these operations!