<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Qcow2 on Life</title><link>/tags/qcow2/</link><description>Recent content in Qcow2 on Life</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 13 Jan 2014 18:36:00 +0530</lastBuildDate><atom:link href="/tags/qcow2/index.xml" rel="self" type="application/rss+xml"/><item><title>Shrinking VMs on virt-manager / KVM</title><link>/post/2014/2014-01-13-shrink-vms-on-virt-manager-kvm/</link><pubDate>Mon, 13 Jan 2014 18:36:00 +0530</pubDate><guid>/post/2014/2014-01-13-shrink-vms-on-virt-manager-kvm/</guid><description>&lt;p&gt;I use &lt;code&gt;rsync&lt;/code&gt; to back up my workstation, including virtual machine disk images. Due to a known issue with sparse file handling during backups, &lt;code&gt;rsync&lt;/code&gt; would expand sparse files, inflating an 11 GB disk image to its full 64 GB provisioned size on the backup server.&lt;/p&gt;
&lt;p&gt;To solve this, I converted the disk images to compressed &lt;code&gt;qcow2&lt;/code&gt; format:&lt;/p&gt;
&lt;h3 id="1-convert-existing-raw-images-to-qcow2"&gt;1. Convert Existing Raw Images to qcow2&lt;/h3&gt;
&lt;p&gt;This also enables live snapshot support in &lt;code&gt;virt-manager&lt;/code&gt;:&lt;/p&gt;</description></item></channel></rss>