<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How-to grow any Qemu system image</title>
	<atom:link href="http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/feed/" rel="self" type="application/rss+xml" />
	<link>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/</link>
	<description>Free Softwares, Computers &#38; Linux</description>
	<lastBuildDate>Sun, 21 Mar 2010 05:04:07 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Le Repaire du Sanglier des Ardennes » Blog Archive &#187; [Kvm] Convertir une image virtuelle.</title>
		<link>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/comment-page-1/#comment-6362</link>
		<dc:creator>Le Repaire du Sanglier des Ardennes » Blog Archive &#187; [Kvm] Convertir une image virtuelle.</dc:creator>
		<pubDate>Sun, 06 Sep 2009 19:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/#comment-6362</guid>
		<description>[...] http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/   Cet article a été publié le Jeudi 3 septembre 2009 à 22 h 46 min et est classé dans Kvm, [...]</description>
		<content:encoded><![CDATA[<p>[...] <a  href="http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/" rel="nofollow">http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/</a>   Cet article a été publié le Jeudi 3 septembre 2009 à 22 h 46 min et est classé dans Kvm, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tartanandsnarly</title>
		<link>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/comment-page-1/#comment-4618</link>
		<dc:creator>tartanandsnarly</dc:creator>
		<pubDate>Mon, 03 Nov 2008 20:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/#comment-4618</guid>
		<description>Hi,
Just to say that I accomplished this on windows by replacing the dd and cat steps - with the windows type command..... 

I created the raw image:
[code lang=&quot;shell&quot;]
CMD&gt; qemu-img convert disk.qcow -O raw rawdisk1.raw
[/code]

then created a copy of that:
[code lang=&quot;shell&quot;]
CMD&gt; copy rawdisk1.raw rawdisk2.raw
[/code]

then used that to create a 3rd disk:
[code lang=&quot;shell&quot;]
CMD&gt; type rawdisk1.raw rawdisk2.raw &gt; rawdisk3.raw
[/code]

&lt;code&gt;rawdisk3&lt;/code&gt; could then boot normally both using qemu (in which case it was in the same condition as &lt;code&gt;rawdisk1&lt;/code&gt;) and using the gparted iso - in which case the extra space could be seen.

I manipulated the partitions using gparted and grew the disk.

...as they say in Scotland - nae bother!</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Just to say that I accomplished this on windows by replacing the dd and cat steps &#8211; with the windows type command&#8230;.. </p>
<p>I created the raw image:</p>
<pre class="brush: bash;">
CMD&gt; qemu-img convert disk.qcow -O raw rawdisk1.raw
</pre>
<p>then created a copy of that:</p>
<pre class="brush: bash;">
CMD&gt; copy rawdisk1.raw rawdisk2.raw
</pre>
<p>then used that to create a 3rd disk:</p>
<pre class="brush: bash;">
CMD&gt; type rawdisk1.raw rawdisk2.raw &gt; rawdisk3.raw
</pre>
<p><code>rawdisk3</code> could then boot normally both using qemu (in which case it was in the same condition as <code>rawdisk1</code>) and using the gparted iso &#8211; in which case the extra space could be seen.</p>
<p>I manipulated the partitions using gparted and grew the disk.</p>
<p>&#8230;as they say in Scotland &#8211; nae bother!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mjs</title>
		<link>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/comment-page-1/#comment-3796</link>
		<dc:creator>mjs</dc:creator>
		<pubDate>Thu, 22 May 2008 01:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/#comment-3796</guid>
		<description>Install a qemu guest with linux and do it :P 

Serious (or not) do not know!

Great tutorial btw, thanks</description>
		<content:encoded><![CDATA[<p>Install a qemu guest with linux and do it <img src='http://kevin.deldycke.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  </p>
<p>Serious (or not) do not know!</p>
<p>Great tutorial btw, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Porch</title>
		<link>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/comment-page-1/#comment-3755</link>
		<dc:creator>Porch</dc:creator>
		<pubDate>Wed, 16 Apr 2008 17:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/#comment-3755</guid>
		<description>hello!
Great tutorial, but how i do it in windows?</description>
		<content:encoded><![CDATA[<p>hello!<br />
Great tutorial, but how i do it in windows?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil</title>
		<link>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/comment-page-1/#comment-3648</link>
		<dc:creator>phil</dc:creator>
		<pubDate>Fri, 04 Apr 2008 02:36:12 +0000</pubDate>
		<guid isPermaLink="false">http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/#comment-3648</guid>
		<description>I tried
[code lang=&quot;shell&quot;]
cat zeros.raw &gt;&gt; system.raw
[/code]
and it works!

At least for me, it&#039;s an old linux ext2 image.

I also tried a gparted twist without the liveCD:
[code lang=&quot;shell&quot;]
losetup /dev/loop1 system.raw
gparted /dev/loop1
[/code]

it can see it, but cannot resize it :(
[code lang=&quot;shell&quot;]
e2label: Bad magic number in superblock ...
[/code]</description>
		<content:encoded><![CDATA[<p>I tried</p>
<pre class="brush: bash;">
cat zeros.raw &gt;&gt; system.raw
</pre>
<p>and it works!</p>
<p>At least for me, it&#8217;s an old linux ext2 image.</p>
<p>I also tried a gparted twist without the liveCD:</p>
<pre class="brush: bash;">
losetup /dev/loop1 system.raw
gparted /dev/loop1
</pre>
<p>it can see it, but cannot resize it <img src='http://kevin.deldycke.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<pre class="brush: bash;">
e2label: Bad magic number in superblock ...
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stubbs</title>
		<link>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/comment-page-1/#comment-3426</link>
		<dc:creator>Stubbs</dc:creator>
		<pubDate>Thu, 21 Feb 2008 17:48:09 +0000</pubDate>
		<guid isPermaLink="false">http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/#comment-3426</guid>
		<description>The reason that &lt;code&gt;cat system.raw zeros.raw &gt; big10G.raw&lt;/code&gt; works is because you&#039;re cat&#039;ing the contents of both files before redirecting them to &lt;code&gt;big10G.raw&lt;/code&gt;

In THEORY you should be able to do &lt;code&gt;cat zeros.raw &gt;&gt; system.raw&lt;/code&gt;

but don&#039;t quote me on that or blame me if it screws up your image :-)</description>
		<content:encoded><![CDATA[<p>The reason that <code>cat system.raw zeros.raw &gt; big10G.raw</code> works is because you&#8217;re cat&#8217;ing the contents of both files before redirecting them to <code>big10G.raw</code></p>
<p>In THEORY you should be able to do <code>cat zeros.raw &gt;&gt; system.raw</code></p>
<p>but don&#8217;t quote me on that or blame me if it screws up your image <img src='http://kevin.deldycke.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/comment-page-1/#comment-3409</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 12 Feb 2008 19:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/#comment-3409</guid>
		<description>[code lang=&quot;shell&quot;]
cat system.raw zeros.raw &gt; big10G.raw
[/code]

shouldn&#039;t that be:
[code lang=&quot;shell&quot;]
cat system.raw zeros.raw &gt;&gt; big10G.raw
[/code]

Maybe this is why people are having trouble with it?</description>
		<content:encoded><![CDATA[<pre class="brush: bash;">
cat system.raw zeros.raw &gt; big10G.raw
</pre>
<p>shouldn&#8217;t that be:</p>
<pre class="brush: bash;">
cat system.raw zeros.raw &gt;&gt; big10G.raw
</pre>
<p>Maybe this is why people are having trouble with it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno Grieder</title>
		<link>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/comment-page-1/#comment-3198</link>
		<dc:creator>Bruno Grieder</dc:creator>
		<pubDate>Thu, 18 Oct 2007 15:38:26 +0000</pubDate>
		<guid isPermaLink="false">http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/#comment-3198</guid>
		<description>For details on &quot;A disk read error has occurred.&quot; please check this post: http://qemu-forum.ipi.fi/viewtopic.php?p=12362

The complete procedure would now be

1- Convert to a raw image
[code lang=&quot;shell&quot;]
qemu-img convert system.qcow -O raw system.raw
[/code]

2- Increase the size of the raw image
[code lang=&quot;shell&quot;]
dd if=/dev/zero of=system.raw seek=N obs=1GB count=0
[/code]
where &lt;code&gt;N&lt;/code&gt; is the number of GigaBytes

3- Fix the NTFS BPB
Edit the raw file: &lt;code&gt;hexedit system.raw&lt;/code&gt;
Goto to offset 7E00: &lt;code&gt;7E00&lt;/code&gt;
Change 80 to FF at offset 7E1A and save: &lt;code&gt;FF --&gt; Ctrl-x --&gt; y&lt;/code&gt;

4- Boot Windows and check that you see a bigger disk in the admin tools
[code lang=&quot;shell&quot;]
qemu hda system.raw
[/code]

5- Use (fantastic) gparted to resize your NTFS partition
[code lang=&quot;shell&quot;]
qemu -hda system.raw -cdrom gparted-livecd-0.3.4-5.iso -boot d
[/code]

6- Boot windows to check and perform a chkdsk
[code lang=&quot;shell&quot;]
qemu hda system.raw
[/code]

7- If you need to save space, convert back to qcow
[code lang=&quot;shell&quot;]
qemu-img convert system.raw -O qcow growed-system.qcow
[/code]</description>
		<content:encoded><![CDATA[<p>For details on &#8220;A disk read error has occurred.&#8221; please check this post: <a  href="http://qemu-forum.ipi.fi/viewtopic.php?p=12362" rel="nofollow">http://qemu-forum.ipi.fi/viewtopic.php?p=12362</a></p>
<p>The complete procedure would now be</p>
<p>1- Convert to a raw image</p>
<pre class="brush: bash;">
qemu-img convert system.qcow -O raw system.raw
</pre>
<p>2- Increase the size of the raw image</p>
<pre class="brush: bash;">
dd if=/dev/zero of=system.raw seek=N obs=1GB count=0
</pre>
<p>where <code>N</code> is the number of GigaBytes</p>
<p>3- Fix the NTFS BPB<br />
Edit the raw file: <code>hexedit system.raw</code><br />
Goto to offset 7E00: <code>7E00</code><br />
Change 80 to FF at offset 7E1A and save: <code>FF --> Ctrl-x --> y</code></p>
<p>4- Boot Windows and check that you see a bigger disk in the admin tools</p>
<pre class="brush: bash;">
qemu hda system.raw
</pre>
<p>5- Use (fantastic) gparted to resize your NTFS partition</p>
<pre class="brush: bash;">
qemu -hda system.raw -cdrom gparted-livecd-0.3.4-5.iso -boot d
</pre>
<p>6- Boot windows to check and perform a chkdsk</p>
<pre class="brush: bash;">
qemu hda system.raw
</pre>
<p>7- If you need to save space, convert back to qcow</p>
<pre class="brush: bash;">
qemu-img convert system.raw -O qcow growed-system.qcow
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luca Bigliardi</title>
		<link>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/comment-page-1/#comment-3122</link>
		<dc:creator>Luca Bigliardi</dc:creator>
		<pubDate>Wed, 29 Aug 2007 17:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/#comment-3122</guid>
		<description>If you have the image in a raw file and the host filesystem is supporting files with holes a simpler, quicker and less space-wasting way to increase your virtual disk size is:
[code lang=&quot;shell&quot;]
dd if=/dev/zero of=system.raw bs=1 count=1 seek=10G
[/code]

In this way &lt;code&gt;dd&lt;/code&gt; leaves a hole of 10G from the beginning of the file (leaving everything untouched) and then writes a 0.</description>
		<content:encoded><![CDATA[<p>If you have the image in a raw file and the host filesystem is supporting files with holes a simpler, quicker and less space-wasting way to increase your virtual disk size is:</p>
<pre class="brush: bash;">
dd if=/dev/zero of=system.raw bs=1 count=1 seek=10G
</pre>
<p>In this way <code>dd</code> leaves a hole of 10G from the beginning of the file (leaving everything untouched) and then writes a 0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kev</title>
		<link>http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/comment-page-1/#comment-2787</link>
		<dc:creator>kev</dc:creator>
		<pubDate>Mon, 14 May 2007 17:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://kevin.deldycke.com/2007/04/how-to-grow-any-qemu-system-image/#comment-2787</guid>
		<description>I&#039;ve never encounter your problem during my experiments, and I have no idea how to fix your problem. Sorry...

I didn&#039;t know the &lt;code&gt;qemu-img info&lt;/code&gt; command. I don&#039;t know if this can help you, but the only &lt;code&gt;raw&lt;/code&gt; image file I still have return me this:
[code lang=&quot;shell&quot;]
[kevin@localhost qemu]$ qemu-img info qemu-winXP.raw
image: qemu-winXP.raw
file format: raw
virtual size: 10G (10737418240 bytes)
disk size: 9.0G
[/code]

As you can see, like you, I have the same 1G offset...</description>
		<content:encoded><![CDATA[<p>I&#8217;ve never encounter your problem during my experiments, and I have no idea how to fix your problem. Sorry&#8230;</p>
<p>I didn&#8217;t know the <code>qemu-img info</code> command. I don&#8217;t know if this can help you, but the only <code>raw</code> image file I still have return me this:</p>
<pre class="brush: bash;">
[kevin@localhost qemu]$ qemu-img info qemu-winXP.raw
image: qemu-winXP.raw
file format: raw
virtual size: 10G (10737418240 bytes)
disk size: 9.0G
</pre>
<p>As you can see, like you, I have the same 1G offset&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
