<?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: Running a custom or distribution kernel on a VPS</title>
	<atom:link href="http://www.kromhouts.net/blog/server-admin/running-a-custom-or-distribution-kernel-on-a-vps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kromhouts.net/blog/server-admin/running-a-custom-or-distribution-kernel-on-a-vps/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=running-a-custom-or-distribution-kernel-on-a-vps</link>
	<description>The over analysing database said.</description>
	<lastBuildDate>Fri, 13 Jan 2012 23:42:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: gavingc</title>
		<link>http://www.kromhouts.net/blog/server-admin/running-a-custom-or-distribution-kernel-on-a-vps/#comment-307</link>
		<dc:creator>gavingc</dc:creator>
		<pubDate>Fri, 02 Sep 2011 02:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kromhouts.net/blog/?p=24#comment-307</guid>
		<description>MammonthVPS have adjusted their xen configuration so that the hacks in this post are no longer required for me.

From a fresh install this should work:

Nathan: the minimum steps from a fresh install seem to be; apt-get install grub-legacy ; mkdir /boot/grub ; grub-set-default default ; apt-get install linux-image-xen-686

My current config shows:
#cat /boot/grub/device.map 
(hd0)   /dev/xvda

#cat /etc/fstab 
/dev/xvds       none swap sw 0 0
/dev/xvda       / ext3 noatime,nodiratime,errors=remount-ro 0 1</description>
		<content:encoded><![CDATA[<p>MammonthVPS have adjusted their xen configuration so that the hacks in this post are no longer required for me.</p>
<p>From a fresh install this should work:</p>
<p>Nathan: the minimum steps from a fresh install seem to be; apt-get install grub-legacy ; mkdir /boot/grub ; grub-set-default default ; apt-get install linux-image-xen-686</p>
<p>My current config shows:<br />
#cat /boot/grub/device.map<br />
(hd0)   /dev/xvda</p>
<p>#cat /etc/fstab<br />
/dev/xvds       none swap sw 0 0<br />
/dev/xvda       / ext3 noatime,nodiratime,errors=remount-ro 0 1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gavingc</title>
		<link>http://www.kromhouts.net/blog/server-admin/running-a-custom-or-distribution-kernel-on-a-vps/#comment-306</link>
		<dc:creator>gavingc</dc:creator>
		<pubDate>Fri, 02 Sep 2011 02:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.kromhouts.net/blog/?p=24#comment-306</guid>
		<description>Thanks for the post Christiaan, I don&#039;t have /etc/default/grub with grub-legacy installed but do on my laptop with grub2 installed.</description>
		<content:encoded><![CDATA[<p>Thanks for the post Christiaan, I don&#8217;t have /etc/default/grub with grub-legacy installed but do on my laptop with grub2 installed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christiaan</title>
		<link>http://www.kromhouts.net/blog/server-admin/running-a-custom-or-distribution-kernel-on-a-vps/#comment-254</link>
		<dc:creator>Christiaan</dc:creator>
		<pubDate>Thu, 26 May 2011 17:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.kromhouts.net/blog/?p=24#comment-254</guid>
		<description>With grub2 this doesn&#039;t work.

When you uncomment #GRUB_TERMINAL=console in /etc/default/grub ... run update-grub then aptitude could install the kernel-image without problems in my case.</description>
		<content:encoded><![CDATA[<p>With grub2 this doesn&#8217;t work.</p>
<p>When you uncomment #GRUB_TERMINAL=console in /etc/default/grub &#8230; run update-grub then aptitude could install the kernel-image without problems in my case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://www.kromhouts.net/blog/server-admin/running-a-custom-or-distribution-kernel-on-a-vps/#comment-253</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Wed, 25 May 2011 16:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kromhouts.net/blog/?p=24#comment-253</guid>
		<description>For security purposes, I altered the mknod command to:

mknod -m 0660 /dev/xvda b 202 0

as it&#039;s created with 0644 permissions otherwise.

Cheers for the post - I&#039;ve just made these changes on my VPS to sort this problem out.

Ian</description>
		<content:encoded><![CDATA[<p>For security purposes, I altered the mknod command to:</p>
<p>mknod -m 0660 /dev/xvda b 202 0</p>
<p>as it&#8217;s created with 0644 permissions otherwise.</p>
<p>Cheers for the post &#8211; I&#8217;ve just made these changes on my VPS to sort this problem out.</p>
<p>Ian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Szépe Viktor</title>
		<link>http://www.kromhouts.net/blog/server-admin/running-a-custom-or-distribution-kernel-on-a-vps/#comment-245</link>
		<dc:creator>Szépe Viktor</dc:creator>
		<pubDate>Sat, 02 Apr 2011 21:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.kromhouts.net/blog/?p=24#comment-245</guid>
		<description>Success :)
mknod+device.map+echo

I only have xvda1 (no xvda) and it works.
Thank you very much!</description>
		<content:encoded><![CDATA[<p>Success <img src='http://www.kromhouts.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
mknod+device.map+echo</p>
<p>I only have xvda1 (no xvda) and it works.<br />
Thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 梦.:如此短暂</title>
		<link>http://www.kromhouts.net/blog/server-admin/running-a-custom-or-distribution-kernel-on-a-vps/#comment-226</link>
		<dc:creator>梦.:如此短暂</dc:creator>
		<pubDate>Wed, 19 Jan 2011 08:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.kromhouts.net/blog/?p=24#comment-226</guid>
		<description>&lt;strong&gt;A Bug of Grub-probe on Debian Xen VPS...&lt;/strong&gt;

My VPS runs its own kernel with PvGrub enabled on the host machine. When apt-get upgrades the kernel package, grub-probe will throw an error message: grub-probe: error: Cannot find a GRUB drive for /dev/xvda1 And abort the upgrade procedure. This is du...</description>
		<content:encoded><![CDATA[<p><strong>A Bug of Grub-probe on Debian Xen VPS&#8230;</strong></p>
<p>My VPS runs its own kernel with PvGrub enabled on the host machine. When apt-get upgrades the kernel package, grub-probe will throw an error message: grub-probe: error: Cannot find a GRUB drive for /dev/xvda1 And abort the upgrade procedure. This is du&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gavingc</title>
		<link>http://www.kromhouts.net/blog/server-admin/running-a-custom-or-distribution-kernel-on-a-vps/#comment-192</link>
		<dc:creator>gavingc</dc:creator>
		<pubDate>Fri, 27 Aug 2010 08:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.kromhouts.net/blog/?p=24#comment-192</guid>
		<description>Thanks Nathan!
It would be wonderful if the default partition mapping is updated for the next Debian release. Having PvGrub available is a fantastic feature and greatly appreciated.</description>
		<content:encoded><![CDATA[<p>Thanks Nathan!<br />
It would be wonderful if the default partition mapping is updated for the next Debian release. Having PvGrub available is a fantastic feature and greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.kromhouts.net/blog/server-admin/running-a-custom-or-distribution-kernel-on-a-vps/#comment-191</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Fri, 27 Aug 2010 06:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.kromhouts.net/blog/?p=24#comment-191</guid>
		<description>It seems to be even worse on Squeeze (Debian 6.0) - grub_probe is not sufficiently tricked by the presense of /dev/xvda , as it actually tries to read from the drive it seems. Here&#039;s the steps I needed, in addition to yours:

echo &#039;(hd1) /dev/xvda&#039; &gt; /boot/grub/device.map
vim `which update-grub` # Find the following section, and edit as shown

find_device ()
{
        if ! test -e ${device_map} ; then
                echo quit &#124; grub --batch --no-floppy --device-map=${device_map} &gt; /dev/null
        fi
        #grub-probe --device-map=${device_map} -t device $1 2&gt; /dev/null
        echo /dev/xvda
}

update-grub 0
sed -i &#039;s/xvda/xvda2/&#039; /boot/grub/menu.lst


I will definitely be looking into changing our default partition mapping in the future to keep grub happy.</description>
		<content:encoded><![CDATA[<p>It seems to be even worse on Squeeze (Debian 6.0) &#8211; grub_probe is not sufficiently tricked by the presense of /dev/xvda , as it actually tries to read from the drive it seems. Here&#8217;s the steps I needed, in addition to yours:</p>
<p>echo &#8216;(hd1) /dev/xvda&#8217; &gt; /boot/grub/device.map<br />
vim `which update-grub` # Find the following section, and edit as shown</p>
<p>find_device ()<br />
{<br />
        if ! test -e ${device_map} ; then<br />
                echo quit | grub &#8211;batch &#8211;no-floppy &#8211;device-map=${device_map} &gt; /dev/null<br />
        fi<br />
        #grub-probe &#8211;device-map=${device_map} -t device $1 2&gt; /dev/null<br />
        echo /dev/xvda<br />
}</p>
<p>update-grub 0<br />
sed -i &#8216;s/xvda/xvda2/&#8217; /boot/grub/menu.lst</p>
<p>I will definitely be looking into changing our default partition mapping in the future to keep grub happy.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

