<?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>Daniele Madama &#187; xen</title>
	<atom:link href="http://www.danysoft.org/blog/tag/xen/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danysoft.org/blog</link>
	<description>Some pieces of me</description>
	<lastBuildDate>Mon, 24 Oct 2011 13:59:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Missing modules.dep on EC2 Instance</title>
		<link>http://www.danysoft.org/blog/2010/10/22/missing-modules-dep-on-ec2-instance/</link>
		<comments>http://www.danysoft.org/blog/2010/10/22/missing-modules-dep-on-ec2-instance/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 19:58:36 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=219</guid>
		<description><![CDATA[<p><br />
If you are experiencing the following error in your /var/log/messages</p>
<p><code><br />
... ... modprobe: FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory<br />
</code></p>
<p>download <a href="http://s3.amazonaws.com/ec2-downloads/modules-2.6.16-ec2.tgz">http://s3.amazonaws.com/ec2-downloads/modules-2.6.16-ec2.tgz</a>, extract into <em>/</em> and the exec</p>
<p><code><br />
$ depmod -a<br />
</code><br />
</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2010%2F10%2F22%2Fmissing-modules-dep-on-ec2-instance%2F" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2010%2F10%2F22%2Fmissing-modules-dep-on-ec2-instance%2F', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/resources/buttons/button_80.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p><br />
If you are experiencing the following error in your /var/log/messages</p>
<p><code><br />
... ... modprobe: FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory<br />
</code></p>
<p>download <a href="http://s3.amazonaws.com/ec2-downloads/modules-2.6.16-ec2.tgz">http://s3.amazonaws.com/ec2-downloads/modules-2.6.16-ec2.tgz</a>, extract into <em>/</em> and the exec</p>
<p><code><br />
$ depmod -a<br />
</code><br />
</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2010%2F10%2F22%2Fmissing-modules-dep-on-ec2-instance%2F&amp;title=Missing%20modules.dep%20on%20EC2%20Instance" id="wpa2a_2"><img src="http://www.danysoft.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2010/10/22/missing-modules-dep-on-ec2-instance/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Increase disk size of Xen VM</title>
		<link>http://www.danysoft.org/blog/2009/11/21/increase-disk-size-of-xen-vm/</link>
		<comments>http://www.danysoft.org/blog/2009/11/21/increase-disk-size-of-xen-vm/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 23:18:47 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[My IT world]]></category>
		<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=180</guid>
		<description><![CDATA[<p><br />
Looking for a fast and safe mode to increase the size of a Xen VM I find <a href="http://old.nabble.com/AW:-Increase-size-of-file-based-diskimage-%28with-MBR,-partitions-%2B-fs%29-td19756922.html">this</a> link that match exactly my situation: a image disk with only two partitions, the root partition and a swap partition.</p>
<p>So this is the steps that I followed to reach my goal:</p>
<blockquote>
<ol>
<li>create a backup of the diskimage that you want to modify</li>
<li>shutdown domU</li>
<li>add extra space to the image by entering: dd if=/dev/zero bs=1M count=1024 >> /path/to/diskimage    (this would add another 1024M to the DomU image)</li>
<li>boot domU</li>
<li>disable swap partitions by entering: swapoff /dev/xvda2 (or what corresponds to your setup)</li>
<li>fdisk /dev/xvda (or what corresponds to your setup)</li>
<li>press p + enter so see the whole disksetup</li>
<li>delete the second swap partition by entering d + enter and then 2 + enter</li>
<li>delete the system partion by entering d + enter and then 1+enter</li>
<li>recreate the system partition with the same start cylinder than the older one but an end-cylinder bigger than the old cylinder value. press n &lt;enter&gt; p &lt;enter&gt; 1 &lt;enter&gt; and then enter the values</li>
<li>recreate the swap partition (with n &lt;enter&gt; p &lt;enter&gt; 2 &lt;enter&gt; and appropriate values</li>
<li>chance the partition type of partition 2 to swap by pressing: t &lt;enter&gt; 2 &lt;enter&gt; 82 &lt;enter&gt;</li>
<li>exit fdisk by pressing w &lt;enter&gt;</li>
<li>execute: mkswap /dev/xvda2 to make the swap space ready</li>
<li>reboot domU</li>
<li>execute: resize2fs /dev/xvda1</li>
</ol>
</blockquote>
<p><b>Be aware that if you have a different partition schema this would not work!</b></p>
<p></p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2009%2F11%2F21%2Fincrease-disk-size-of-xen-vm%2F" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2009%2F11%2F21%2Fincrease-disk-size-of-xen-vm%2F', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/resources/buttons/button_80.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p><br />
Looking for a fast and safe mode to increase the size of a Xen VM I find <a href="http://old.nabble.com/AW:-Increase-size-of-file-based-diskimage-%28with-MBR,-partitions-%2B-fs%29-td19756922.html">this</a> link that match exactly my situation: a image disk with only two partitions, the root partition and a swap partition.</p>
<p>So this is the steps that I followed to reach my goal:</p>
<blockquote>
<ol>
<li>create a backup of the diskimage that you want to modify</li>
<li>shutdown domU</li>
<li>add extra space to the image by entering: dd if=/dev/zero bs=1M count=1024 >> /path/to/diskimage    (this would add another 1024M to the DomU image)</li>
<li>boot domU</li>
<li>disable swap partitions by entering: swapoff /dev/xvda2 (or what corresponds to your setup)</li>
<li>fdisk /dev/xvda (or what corresponds to your setup)</li>
<li>press p + enter so see the whole disksetup</li>
<li>delete the second swap partition by entering d + enter and then 2 + enter</li>
<li>delete the system partion by entering d + enter and then 1+enter</li>
<li>recreate the system partition with the same start cylinder than the older one but an end-cylinder bigger than the old cylinder value. press n &lt;enter&gt; p &lt;enter&gt; 1 &lt;enter&gt; and then enter the values</li>
<li>recreate the swap partition (with n &lt;enter&gt; p &lt;enter&gt; 2 &lt;enter&gt; and appropriate values</li>
<li>chance the partition type of partition 2 to swap by pressing: t &lt;enter&gt; 2 &lt;enter&gt; 82 &lt;enter&gt;</li>
<li>exit fdisk by pressing w &lt;enter&gt;</li>
<li>execute: mkswap /dev/xvda2 to make the swap space ready</li>
<li>reboot domU</li>
<li>execute: resize2fs /dev/xvda1</li>
</ol>
</blockquote>
<p><b>Be aware that if you have a different partition schema this would not work!</b></p>
<p></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2009%2F11%2F21%2Fincrease-disk-size-of-xen-vm%2F&amp;title=Increase%20disk%20size%20of%20Xen%20VM" id="wpa2a_4"><img src="http://www.danysoft.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2009/11/21/increase-disk-size-of-xen-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

