<?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>Steve Glendinning &#187; Xen</title>
	<atom:link href="http://www.steveglendinning.com/tag/xen/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.steveglendinning.com</link>
	<description></description>
	<lastBuildDate>Fri, 06 Nov 2009 10:26:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Xensource updates apt repository missing GPG key</title>
		<link>http://www.steveglendinning.com/2009/07/15/xensource-updates-apt-repository-missing-gpg-key/</link>
		<comments>http://www.steveglendinning.com/2009/07/15/xensource-updates-apt-repository-missing-gpg-key/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 09:49:24 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/?p=85</guid>
		<description><![CDATA[Here's how to add the Xensource GPG key to a debian VM, so aptitude doesn't warn you that no public key is available]]></description>
			<content:encoded><![CDATA[<p>Xensource&#8217;s Debian VM templates have always added a xensource updates repository (under /etc/apt/sources.list.d/xensource.list), but until recently it&#8217;s been empty.  Now they&#8217;ve added some updates (replacement xen kernel and xen guest tools) aptitude displays big red warnings that this repository isn&#8217;t trusted:</p>
<blockquote><p>W: GPG error: http://updates.xensource.com etch Release: The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY 841D6D8DFE3F8BB2<br />
W: You may want to run apt-get update to correct these problems</p></blockquote>
<p>This is because the GPG key Xensource use to sign their packages hasn&#8217;t been added to the VM&#8217;s apt keyring, and here&#8217;s how to fix it:</p>
<p><code>wget -q http://updates.vmd.citrix.com/XenServer/5.5.0/GPG-KEY -O- | apt-key add -</code></p>
<p>(From <a href="http://tiri.li/apt-key-add-xen-gpg-key-aktualisiern">tiri.li</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2009/07/15/xensource-updates-apt-repository-missing-gpg-key/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Time went backwards</title>
		<link>http://www.steveglendinning.com/2009/03/23/time-went-backwards/</link>
		<comments>http://www.steveglendinning.com/2009/03/23/time-went-backwards/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 10:06:42 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/?p=69</guid>
		<description><![CDATA[I just applied a hotfix to my XenSource virtual servers, which caused all the virtual machines to be suspended &#38; resumed (while the xen host rebooted).  This caused a problem on the VMs I&#8217;ve upgraded to Debian Lenny: These messages were repeatedly logged:
clocksource/0: Time went backwards: ret=18f26176a5 delta=-8292949932632971 shadow=18e9e0b4b9 offset=880c4ce
This message wasn&#8217;t &#8220;harmless&#8221; &#8211; it [...]]]></description>
			<content:encoded><![CDATA[<p>I just applied a hotfix to my XenSource virtual servers, which caused all the virtual machines to be suspended &amp; resumed (while the xen host rebooted).  This caused a problem on the VMs I&#8217;ve <a href="http://www.steveglendinning.com/2009/02/15/upgrading-xensource-debian-etch-guests-to-lenny/">upgraded to Debian Lenny</a>: These messages were repeatedly logged:</p>
<blockquote><p>clocksource/0: Time went backwards: ret=18f26176a5 delta=-8292949932632971 shadow=18e9e0b4b9 offset=880c4ce</p></blockquote>
<p>This message wasn&#8217;t &#8220;harmless&#8221; &#8211; it caused TCP connections to break, so ssh was practically unusable.</p>
<p>The immediate solution: using the XenCenter console, forcefully reboot the affected VM.  That&#8217;s &#8220;force shutdown&#8221;, followed by &#8220;start&#8221;.  I tried the simple &#8220;reboot&#8221; option, but it wouldn&#8217;t shut down (probably because it was confused over the time).  VMs are now back up and there&#8217;s no sign of time going backwards.</p>
<p>It seems this was triggered by suspending &amp; resuming machines running the Debian Lenny kernel.  Other VMs which are still running the 2.6.18 based XenSource kernels survived suspend/resume ok.</p>
<p>The actual cause is documented <a href="http://wiki.debian.org/Xen#A.27clocksource.2BAC8-0.3ATimewentbackwards.27">here</a>, <a href="http://www.mail-archive.com/debian-kernel@lists.debian.org/msg42367.html">here</a>, <a href="http://lists.bitfolk.com/lurker/message/20090311.001656.36280d5b.en.html">here</a> &amp; <a href="http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1098">here</a>.  I think I&#8217;ll be following that advice and decoupling my VM clocks from the host (using NTP to keep them all in sync the old-fashioned way).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2009/03/23/time-went-backwards/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgrading Xensource Debian Etch guests to Lenny</title>
		<link>http://www.steveglendinning.com/2009/02/15/upgrading-xensource-debian-etch-guests-to-lenny/</link>
		<comments>http://www.steveglendinning.com/2009/02/15/upgrading-xensource-debian-etch-guests-to-lenny/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 16:44:21 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/?p=61</guid>
		<description><![CDATA[Debian Lenny has been released, so I&#8217;ve started upgrading some of my Xen virtual servers.  For Etch, Xensource shipped their own modified PV kernel package (2.6.18 based).  With Lenny the same kernel can be used, or the standard Debian xen kernel (2.6.26 based) can be used instead.
Upgrading the userland is identical to a physical server [...]]]></description>
			<content:encoded><![CDATA[<p>Debian Lenny has been released, so I&#8217;ve started upgrading some of my Xen virtual servers.  For Etch, Xensource shipped their own modified PV kernel package (2.6.18 based).  With Lenny the same kernel can be used, or the standard Debian xen kernel (2.6.26 based) can be used instead.</p>
<p>Upgrading the userland is identical to a physical server &#8211; instructions are contained <a title="Etch to Lenny dist-upgrade instructions" href="http://www.debian.org/releases/lenny/i386/release-notes/ch-upgrading.en.html#upgradingpackages">within the Debian Lenny release notes</a>.</p>
<p>To use the Debian packaged 2.6.26 kernel, several minor changes have to be made as per <a title="Debian lenny kernel" href="http://forums.citrix.com/thread.jspa?threadID=240753&amp;tstart=0">this form post</a>:</p>
<ol>
<li>Install the linux-image-2.6-xen-686 package (which depends on the latest xen kernel)</li>
<li>Re-order the kernels in /boot/grub/menu.lst so the Debian 2.6.26 kernel is the first (and therefore the default)</li>
<li>Add &#8220;console=hvc0&#8243; to the end of the 2.6.26 kernel line in /boot/grub/menu.lst, so it reads &#8220;kernel /boot/vmlinuz-2.6.26-1-xen-686 root=/dev/xvda1 ro <strong>console=hvc0</strong>&#8220;</li>
<li>edit /etc/inittab, find the line that looks like &#8220;1:2345:respawn:/sbin/getty 38400 tty1&#8243; and add another line: &#8220;0:2345:respawn:/sbin/getty 38400 hvc0&#8243;</li>
</ol>
<p>Then reboot the system, it should boot the new kernel.</p>
<p>Xensource doesn&#8217;t display the grub menu, it just seems to boot straight into the default option (even though I have &#8220;timeout 10&#8243; specified in the config).  There must be a secret keypress or something to make it show the menu, but I don&#8217;t know what it is because the last step just worked for me!</p>
<p>Edit: Theoretically you shouldn&#8217;t need to use the -xen kernel variant, as the -686-bigmem kernel also supports running paravirtualised in domU.  With Xensource 5.0 this boots fine, but Xensource&#8217;s xen-tools refuse to start so XenCenter reports the status as &#8220;unknown&#8221;.  With the -xen kernel xen-tools start fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2009/02/15/upgrading-xensource-debian-etch-guests-to-lenny/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
