Update 0.KVM.md

This commit is contained in:
Ste Vaidis 2024-08-20 09:18:11 +03:00
parent 215d18138a
commit 7af3235e99

View File

@ -32,3 +32,17 @@ mount | grep /media
```bash ```bash
qemu-img convert -f qcow2 -O qcow2 -o preallocation=off old.qcow2 new.qcow2 qemu-img convert -f qcow2 -O qcow2 -o preallocation=off old.qcow2 new.qcow2
``` ```
# Free up space
```bash
dd if=/dev/zero of=/zerofile bs=1M
sync
rm -f /zerofile
sync
shutdown -h now
```
```bash
qemu-img convert -O qcow2 /original.qcow2 /compact.qcow2
```