Compacting qcow2 images


Recommended Posts

Here's a good tip to cut down on utilized space after getting a VM installed & set up the way you like. Took a Win8 image from 21 GB to 10.2 GB.

 

qemu-img convert -c -O qcow2 <source> <destination>

 

qemu-img convert -c -O qcow2 /mnt/user/vm/Win8/Win8.qcow2 /mnt/user/VMBackup/Win8/Win8.qcow2

 

Rename your original file, copy the compacted file over, and start up your VM to ensure everything is as it should be.

  • Like 2
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.