Reducing the size of a QEMU virtual disk (thin)

on all mounting points
dd if=/dev/zero of=/nul;sync;sync;sync;rm -f /nul;sync

    Stop VM
    Convert VM disk

qemu-img convert -O qcow2 -c disk1.qcow disk1.new.qcow

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.