<?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>Rogierm&#039;s Blog &#187; xen virtualization centos</title>
	<atom:link href="http://rogierm.redbee.nl/blog/tag/xen-virtualization-centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://rogierm.redbee.nl/blog</link>
	<description>Just another blog with technical stuff</description>
	<lastBuildDate>Mon, 09 Jan 2012 16:15:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Exception starting xend ((13, &#8216;Permission denied&#8217;))</title>
		<link>http://rogierm.redbee.nl/blog/2009/08/26/exception-starting-xend-13-permission-denied/</link>
		<comments>http://rogierm.redbee.nl/blog/2009/08/26/exception-starting-xend-13-permission-denied/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 20:27:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[xen virtualization centos]]></category>

		<guid isPermaLink="false">http://rogierm.redbee.nl/blog/?p=70</guid>
		<description><![CDATA[After a yum upgrade of one of our CentOS 5 Xen server, xend would not start properly. The logs contained the following error messages below. xend-debug.log: Xend started at Wed Aug 26 18:15:57 2009. sysctl operation failed -- need to rebuild the user-space tool set? Exception starting xend: (13, 'Permission denied') xend.log [2009-08-26 18:15:57 3310] [...]]]></description>
			<content:encoded><![CDATA[<p>After a yum upgrade of one of our CentOS 5 Xen server, xend would not start properly. The logs contained the following error messages below.<br />
xend-debug.log:<br />
<code><br />
Xend started at Wed Aug 26 18:15:57 2009.<br />
sysctl operation failed -- need to rebuild the user-space tool set?<br />
Exception starting xend: (13, 'Permission denied')<br />
</code><br />
xend.log<br />
<code><br />
[2009-08-26 18:15:57 3310] ERROR (SrvDaemon:347) Exception starting xend ((13, 'Permission denied'))Traceback (most recent call last):  File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line 339, in run    servers = SrvServer.create()  File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvServer.py", line 251, in create    root.putChild('xend', SrvRoot())  File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvRoot.py", line 40, in __init__    self.get(name)  File "/usr/lib/python2.4/site-packages/xen/web/SrvDir.py", line 82, in get    val = val.getobj()  File "/usr/lib/python2.4/site-packages/xen/web/SrvDir.py", line 52, in getobj    self.obj = klassobj()  File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvNode.py", line 30, in __init__    self.xn = XendNode.instance()<br />
  File "/usr/lib/python2.4/site-packages/xen/xend/XendNode.py", line 752, in instance<br />
    inst = XendNode()<br />
  File "/usr/lib/python2.4/site-packages/xen/xend/XendNode.py", line 87, in __init__<br />
    self.other_config["xen_pagesize"] = self.xeninfo_dict()["xen_pagesize"]<br />
  File "/usr/lib/python2.4/site-packages/xen/xend/XendNode.py", line 741, in xeninfo_dict<br />
    return dict(self.xeninfo())<br />
  File "/usr/lib/python2.4/site-packages/xen/xend/XendNode.py", line 685, in xeninfo<br />
    info['xen_scheduler'] = self.xenschedinfo()<br />
  File "/usr/lib/python2.4/site-packages/xen/xend/XendNode.py", line 675, in xenschedinfo<br />
    sched_id = self.xc.sched_id_get()<br />
Error: (13, 'Permission denied')<br />
</code></p>
<p>After some investigation this was quite easy to solve. The yum upgrade updated the kernel and modified the grub.conf. So after the reboot, the new xen kernel booted. However, this kernel did not match the xen tools installed. This is easily fixed by changing the grub.conf to boot the correct xen kernel. See the examples below for the exact change. </p>
<p>The grub.conf after the yum update that caused the problem:<br />
<code><br />
title CentOS (2.6.18-128.7.1.el5xen)<br />
        root (hd0,0)<br />
        kernel /xen.gz-2.6.18-128.7.1.el5<br />
        module /vmlinuz-2.6.18-128.7.1.el5xen ro root=/dev/VolGroup00/LogVol00<br />
        module /initrd-2.6.18-128.7.1.el5xen.img<br />
</code><br />
The changed grub.conf after the yum updated that fixed the problem:<br />
<code><br />
title CentOS (2.6.18-128.7.1.el5xen)<br />
        root (hd0,0)<br />
        kernel /xen.gz-3.3.1<br />
        module /vmlinuz-2.6.18-128.7.1.el5xen ro root=/dev/VolGroup00/LogVol00<br />
        module /initrd-2.6.18-128.7.1.el5xen.img<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://rogierm.redbee.nl/blog/2009/08/26/exception-starting-xend-13-permission-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

