Shrink qcow2 file with Windows guest


  1. Remove unnecessary file and empty the recycle bin in windows guest.
  2. De-fragment your disk in windows guest. You may do it several times for good compact status.
  3. Free unused disk space in windows guest.
    sdelete -c c:
  4. Convert the disk image itself.
    qemu-img convert -c -O qcow2 win.qcow2 win-shrinked.qcow2


Comments

Popular posts from this blog

How to construct a B+ tree with example

How to show only month and year fields in android Date-picker?

Visitor Counter Script Using PHP