How to compress the VHDX virtual hard disk used by the Linux virtual machine under Hyper-V

195889261-a0aad03c-b215-47f7-bf69-b285af

The company has a Linux virtual machine that occupies nearly 500GB. After asking the engineer, it is found that the reason why this virtual machine occupies so much space is mainly because the previously deployed files were not deleted during the test deployment, resulting in extra. Waste a lot of disk space and increase the cost of backups. But when I tried to compress the VHDX virtual hard disk with Hyper-V’s editing disk function, I found that the occupied disk space could not be released. It turned out that there was a process that was not executed. Today’s article will talk about this practice.

continue reading

This article is reprinted from https://blog.miniasp.com/post/2022/10/14/How-to-Compact-a-VHDX-with-a-Linux-Filesystem
This site is for inclusion only, and the copyright belongs to the original author.