Update 0.KVM.md
This commit is contained in:
parent
215d18138a
commit
7af3235e99
14
0.KVM.md
14
0.KVM.md
@ -32,3 +32,17 @@ mount | grep /media
|
||||
```bash
|
||||
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
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user