Ask Your Question

snapshot of ubuntu-virtual machine

asked 2018-11-20 06:35:06 -0500

Hi techies,

In my OpenStack environment, there is an Ubuntu virtual machine is running, its disk size in flavor is 30GB, I have taken a snap of this VM and the snapshot size is 16GB, but there is only 3GB of the disk is only used in that VM, is there any option is available to remove the unused white space for reducing snapshot size

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-11-21 03:00:17 -0500

method 1 for Compress: qemu-img convert -c -O qcow2 source.qcow2 shrunk.qcow2

method 2 for Compress: virt-sparsify - Make a virtual machine disk sparse

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-11-20 06:35:06 -0500

Seen: 103 times

Last updated: Nov 21 '18