<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techy Things &#187; VM</title>
	<atom:link href="http://tech.yipp.ca/tag/vm/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>How to reduce disk space of .vdi VirtualBox hard-disk with a linux VM (debian)</title>
		<link>http://tech.yipp.ca/virtualbox/how-to-reduce-disk-space-of-vdi-virtualbox-hard-disk-with-a-linux-vm-debian/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-reduce-disk-space-of-vdi-virtualbox-hard-disk-with-a-linux-vm-debian</link>
		<comments>http://tech.yipp.ca/virtualbox/how-to-reduce-disk-space-of-vdi-virtualbox-hard-disk-with-a-linux-vm-debian/#comments</comments>
		<pubDate>Fri, 12 Apr 2013 15:56:08 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VM]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=107</guid>
		<description><![CDATA[<p>So you are here because you want to compact your Debian VM .vdi file Just using the vboxmanage modifyhd /path/to/my.vdi --compact does not do a lot of reduction alone. You first have to group&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/virtualbox/how-to-reduce-disk-space-of-vdi-virtualbox-hard-disk-with-a-linux-vm-debian/">How to reduce disk space of .vdi VirtualBox hard-disk with a linux VM (debian)</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>So you are here because you want to compact your Debian VM .vdi file</p>
<pre>Just using the vboxmanage modifyhd /path/to/my.vdi --compact does not do a lot of reduction alone.</pre>
<p>You first have to group all the free space together, then --compact will work.</p>
<p>How to group all free space :</p>
<p>Ubuntu / Debian/ Mint :</p>
<p>We will use <strong>zerofree</strong> utility. To run this we must be running from a boot CD to have access to unmounted partitions. That is not too complicated. Whatever your distribution you can use a Debian live CD/DVD and boot with it.</p>
<p>You first need to modify your software source to use "sid" packages.</p>
<ul>
<li>Go into Administration &gt; Software Sources</li>
<li>Remove (uncheck) all software sources (including CD-ROMs) :</li>
<li>Add these two software sources :
<ul>
<li>deb <a href="http://ftp.us.debian.org/debian/" rel="nofollow">http://ftp.us.debian.org/debian/</a> sid main</li>
<li>deb-src <a href="http://ftp.us.debian.org/debian/" rel="nofollow">http://ftp.us.debian.org/debian/</a> sid main</li>
</ul>
</li>
<li>proceed with installation</li>
</ul>
<p>You can now install zerofree:</p>
<pre>sudo apt-get install zerofree</pre>
<p>Then verify which partition you want to free using the Applications &gt; System Tools &gt; Disk Utility</p>
<pre>
sudo zerofree -v /dev/sda1</pre>
<pre></pre>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/virtualbox/how-to-reduce-disk-space-of-vdi-virtualbox-hard-disk-with-a-linux-vm-debian/">How to reduce disk space of .vdi VirtualBox hard-disk with a linux VM (debian)</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/virtualbox/how-to-reduce-disk-space-of-vdi-virtualbox-hard-disk-with-a-linux-vm-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
