<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>QEMU+KVM on nagg.eu</title><link>https://nagg.eu/tags/qemu+kvm/</link><description>Recent content in QEMU+KVM on nagg.eu</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 17 Nov 2015 11:06:29 +0000</lastBuildDate><atom:link href="https://nagg.eu/tags/qemu+kvm/index.xml" rel="self" type="application/rss+xml"/><item><title>QEMU+KVM, reclaim disk space</title><link>https://nagg.eu/qemukvm-reclaim-disk-space/</link><pubDate>Tue, 17 Nov 2015 11:06:29 +0000</pubDate><guid>https://nagg.eu/qemukvm-reclaim-disk-space/</guid><description>&lt;p&gt;After some time qcow2 images tend -especially after taking snapshots- to grow bigger and bigger, even bigger than the maximum size specified at creation time.&lt;br&gt;
QEMU provides a tool called virt-sparsify (install &lt;code&gt;libguestfs-tools&lt;/code&gt; package in CentOS 7) that can effectively make a virtual machine disk thin provisioned (space is not preallocated, only the actual space needed is used).&lt;br&gt;
virt-sparsify has a nice number of options, the most interesting one is &lt;code&gt;--in-place&lt;/code&gt;, it tells QEMU to shrink the volume in place without requiring any addition space.&lt;/p&gt;</description></item></channel></rss>