How to Shrink Your Massive WSL Virtual Disk

If you use Windows Subsystem for Linux (WSL2), you may have noticed a large file on your system drive: C:\Users\<YourUser>\AppData\Local\Packages\<YourDistroFolder>\LocalState\ext4.vhdx This is a virtual hard disk that stores the entire Linux filesystem. It expands automatically as you install packages and create files, but it does not shrink automatically when files are deleted. Over time, this can leave you with a multi-gigabyte file containing mostly unused space. Here’s how to safely compact it and reclaim that space. ...

September 13, 2025 · 2 min · 353 words · root

OpenVZ (Virtuozzo) vzctl Commands: Quick Reference

If you manage servers that use OpenVZ (Virtuozzo), chances are you’ll spend a lot of time working with vzctl to start, stop, and maintain containers (CTs). While modern virtualization has largely moved on to KVM, Docker, and LXC, plenty of production systems still rely on OpenVZ — especially for legacy applications. This is a quick reference of essential vzctl commands for day-to-day container administration. List All Containers vzlist -a Displays all containers, including stopped ones. ...

February 3, 2014 · 2 min · 275 words · root