3 ms·
The issue I have is VHDX keeps expanding, and you need to manually compact it to claim disk back to host.
by ZhiqiangWang 10mo ago
The issue I have is VHDX keeps expanding, and you need to manually compact it to claim disk back to host.
- andix 10mo agoI think there is an auto shrink feature, but it might cause more trouble than good.
- Rucadi 10mo agocpu 100% and shitty integration.
- okanat 10mo agoYou need to enable sparse VHD! However it doesn't alwyas trigger. I have moderate success with enabling TRIM systemd service on the distro. Here is the tracking issue: https://github.com/microsoft/WSL/issues/12103 https://github.com/microsoft/WSL/issues/12103 And if nothing works you can still manually optimize. https://superuser.com/questions/1827953/reclaim-wsl2-disk-space-after-setting-it-to-sparse#1834374 https://superuser.com/questions/1827953/reclaim-wsl2-disk-sp...