Trimming images
Trim acts on the selected images, or on every image that is ready when none is selected.

Output
- Replace with a verified copy. The trimmed image is written beside the original, compared with it, and after a successful verification takes its place under the same name. Until that moment the original remains untouched, so a trim can be stopped or fail at any earlier point without harm. Sufficient room for the trimmed image is needed next to the original while the trim runs.
- Trim in place. The image file itself is trimmed, so only a little free space is needed, for the journal that makes an interrupted trim recoverable. No separate original is kept: back the image up first. Always verified. Fixed-size disks are skipped, and raw and qcow2 images need a host file system with sparse files.
- Save copies to a separate folder. Each trimmed image is written to Path under its own name, and the originals are left alone. Format can convert the copies. A converted copy has a new identity, so attach it to the virtual machine in place of the old disk. This is the cautious choice for a first trim: check the copy works, then delete the original.
A replaced image, or one trimmed in place, keeps its name, format and identity, so the virtual machine needs no reconfiguration.
Options
- Discard page and swap files. Leaves out the contents of the guest’s page file or swap space. The guest recreates them afresh at its next start. Linux swap partitions are included; swap space holding a suspended session is kept.
- Discard inactive hibernation files. A hibernation file that holds a hibernated session is always kept regardless of this option.
- Verify each output against its original. Always enabled when originals are replaced or trimmed in place. Can be disabled to save time when copies are made and originals remain intact.
Page, swap and hibernation files depend on the guest file system.
BitLocker volumes
A locked BitLocker volume is copied as it is. To trim it too, choose Image → Unlock and enter its password or recovery key. It stays encrypted.
