<?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; Virtualisation</title>
	<atom:link href="http://www.steveglendinning.com/tag/virtualisation/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>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>
		<item>
		<title>How to boot Vyatta on Microsoft Virtual PC</title>
		<link>http://www.steveglendinning.com/2008/09/23/how-to-boot-vyatta-on-microsoft-virtual-pc/</link>
		<comments>http://www.steveglendinning.com/2008/09/23/how-to-boot-vyatta-on-microsoft-virtual-pc/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 16:54:05 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[Vyatta]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/?p=49</guid>
		<description><![CDATA[Vyatta 3.0.3 (and its community equivalent VC4) boots fine on Virtual PC, which is really handy for firing up a &#8220;test&#8221; router.  Unfortunately, the latest subscription release 3.1.3 (and probably VC5) fails shortly after the bootloader prompt with this error:
The solution is to pass the linux kernel boot argument noreplace-paravirt.  This is done on the [...]]]></description>
			<content:encoded><![CDATA[<p>Vyatta 3.0.3 (and its community equivalent VC4) boots fine on Virtual PC, which is really handy for firing up a &#8220;test&#8221; router.  Unfortunately, the latest subscription release 3.1.3 (and probably VC5) fails shortly after the bootloader prompt with this error:</p>
<div id="attachment_51" class="wp-caption alignnone" style="width: 310px"><a href="http://www.steveglendinning.com/wp-content/uploads/2008/09/vyatta-virtual-pc-fail.png"><img class="size-medium wp-image-51" title="Vyatta Virtual PC Fail" src="http://www.steveglendinning.com/wp-content/uploads/2008/09/vyatta-virtual-pc-fail-300x117.png" alt="Vyatta Virtual PC boot error" width="300" height="117" /></a><p class="wp-caption-text">Vyatta Virtual PC boot error</p></div>
<p>The solution is to pass the linux kernel boot argument <strong>noreplace-paravirt</strong>.  This is done on the live CD by typing &#8220;<strong>live noreplace-paravirt</strong>&#8221; and pressing enter (instead of simply pressing enter or waiting for the CD to automatically boot).</p>
<p>When you&#8217;ve installed to the virtual hard disk (using the install-system command), you&#8217;ll find it displays the same error.  To boot the first time you&#8217;ll need to press Escape to access the grub menu, then press &#8220;e&#8221; to edit the default entry.  Add the word <strong>noreplace-paravirt</strong> to the end of the line (after &#8220;console=tty0&#8243;) and press ctrl-x to boot.</p>
<p>When you get the login prompt, you can log in as root and edit the grub config file (<strong>nano /boot/grub/grub.cfg</strong>) to add the option to the command line permanently.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2008/09/23/how-to-boot-vyatta-on-microsoft-virtual-pc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
