<?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>Raskas' blog &#187; Xen</title>
	<atom:link href="http://www.raskas.be/blog/category/linux-sysadmin/xen/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raskas.be/blog</link>
	<description>Everything is possible... You only have to find out how.</description>
	<lastBuildDate>Sat, 05 Dec 2009 14:18:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Xen for High Availability Clusters</title>
		<link>http://www.raskas.be/blog/2008/02/06/using-xen-for-high-availability-clusters/</link>
		<comments>http://www.raskas.be/blog/2008/02/06/using-xen-for-high-availability-clusters/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 08:43:12 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[Linux SysAdmin]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/2008/02/06/using-xen-for-high-availability-clusters/</guid>
		<description><![CDATA[Yesterday evening O&#8217;Reilly ONLamp.com published &#8220;Using Xen for High Availability Clusters&#8220;.
This article is written by my colleague, Kris Buytaert, and me and describes the setup of the clustering of the virtual gateways at Newtec.
It explains the networking in a xen dom0 and how to block all virtual machines from the network. It also explains how [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.oreillynet.com/standard-tiles/onlamp/111-horse_app.jpg" alt="ONLAMP" align="right" height="91" width="111" />Yesterday evening <a href="http://www.onlamp.com/" target="_blank">O&#8217;Reilly ONLamp.com</a> published &#8220;<a href="http://www.onlamp.com/pub/a/onlamp/2008/02/05/using-xen-for-high-availabilty-clusters.html" target="_blank">Using Xen for High Availability Clusters</a>&#8220;.</p>
<p>This article is written by my colleague, <a href="http://www.krisbuytaert.be/blog/" target="_blank">Kris Buytaert</a>, and me and describes the setup of the clustering of the virtual gateways at <a href="http://www.newtec.eu/" target="_blank">Newtec</a>.<br />
It explains the networking in a xen dom0 and how to block all virtual machines from the network. It also explains how you can integrate this with linux-ha.</p>
<p>This is my first article on O&#8217;Reilly, this means that I now have a profile on <a href="http://www.oreillynet.com" target="_blank">O&#8217;Reillynet</a>, you can check it out here: <a href="http://www.oreillynet.com" target="_blank"></a><a href="http://www.oreillynet.com/pub/au/3323" target="_blank">http://www.oreillynet.com/pub/au/3323.</a></p>
<p>Enjoy the reading !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2008/02/06/using-xen-for-high-availability-clusters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3ware module refuses to load with xen kernel</title>
		<link>http://www.raskas.be/blog/2008/01/17/3ware-module-refuses-to-load-with-xen-kernel/</link>
		<comments>http://www.raskas.be/blog/2008/01/17/3ware-module-refuses-to-load-with-xen-kernel/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 07:58:12 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[Linux SysAdmin]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/2008/01/17/3ware-module-refuses-to-load-with-xen-kernel/</guid>
		<description><![CDATA[Today I encountered a problem with the 3ware module.
The fresh installed CentOs 5, on a machine with a 3ware 9500 card, booted without any problems, but this wasn&#8217;t the case when booting with the xen enabled kernel. During boot of the xen kernel, which ended in a kernel panic, it showed something about ioremap. When [...]]]></description>
			<content:encoded><![CDATA[<p>Today I encountered a problem with the 3ware module.</p>
<p>The fresh installed CentOs 5, on a machine with a 3ware 9500 card, booted without any problems, but this wasn&#8217;t the case when booting with the xen enabled kernel. During boot of the xen kernel, which ended in a kernel panic, it showed something about <em>ioremap</em>. When googling about the problem I found a <a href="http://www.mail-archive.com/linux-scsi@vger.kernel.org/msg10302.html" target="_blank">patch</a> which solved the problem.</p>
<p>Here is a step-by-step guide how I&#8217;ve applied the patch and solved the problem&#8230;<span id="more-77"></span></p>
<p>Ideal you download the src rpm of the kernel, apply the patch and rebuild the kernel. This rebuild will take some time, but you can easily download the 3ware module and rebuild only that module. Therefore I&#8217;ve used the module provided on the 3ware website.</p>
<p>1. Install the needed packages to be able to build the module</p>
<pre># yum install kernel-xen-devel gcc</pre>
<p>2.  Create a link pointing to the source directory of the kernel (This is the kernel where you want to rebuild the module for). This is not needed if you want to rebuild for the current kernel.</p>
<pre># cd /usr/src/
# ln -snf /lib/modules/2.6.18-53.1.4.el5xen/source linux</pre>
<p>3.  Download and unpack the downloaded module</p>
<pre># tar -zxvf 3w-9xxx-2.6.18kernel_9.5.0.tgz
# cd build</pre>
<p>4. Apply the patch (see http://www.mail-archive.com/linux-scsi@vger.kernel.org/msg10302.html)</p>
<p>5. Build the module</p>
<pre># make</pre>
<p>6. Overwrite the old 3ware module with the one you just have build</p>
<pre># cp 3w-9xxx.ko /lib/modules/2.6.18-53.1.4.el5xen/kernel/drivers/scsi/3w-9xxx.ko</pre>
<p>7. Rebuild the initrd</p>
<pre># mkinitrd -v -f /boot/initrd-2.6.18-53.1.4.el5xen.img 2.6.18-53.1.4.el5xen</pre>
<p>8. Reboot</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2008/01/17/3ware-module-refuses-to-load-with-xen-kernel/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Beryl and Java apps</title>
		<link>http://www.raskas.be/blog/2007/05/28/beryl-and-java-apps/</link>
		<comments>http://www.raskas.be/blog/2007/05/28/beryl-and-java-apps/#comments</comments>
		<pubDate>Mon, 28 May 2007 10:22:05 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/2007/05/28/beryl-and-java-apps/</guid>
		<description><![CDATA[While using Beryl as my default window manager, I noticed that some java applications didn&#8217;t work correctly, for example the XenServer Client.
The application started correctly but I only saw a gray screen.
Whenever my Metacity window manager (that&#8217;s the one of gnome) was active, instead of Beryl, the application works as it was meant to be.
This [...]]]></description>
			<content:encoded><![CDATA[<p>While using Beryl as my default window manager, I noticed that some java applications didn&#8217;t work correctly, for example the XenServer Client.<br />
The application started correctly but I only saw a gray screen.<br />
Whenever my Metacity window manager (that&#8217;s the one of gnome) was active, instead of Beryl, the application works as it was meant to be.</p>
<p>This problem is explained in the <a href="http://wiki.beryl-project.org/wiki/Java">beryl wiki</a>.<br />
The solution is also mentioned there.</p>
<p>Because I&#8217;m using java 5 (1.5.0u11 from Sun) the fix is very simple.<br />
I added following line at the end of <strong>/etc/bashrc</strong>.</p>
<p><code>export AWT_TOOLKIT=MToolkit</code></p>
<p>After restarting the X server the java applications works without any problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2007/05/28/beryl-and-java-apps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Less than minimal</title>
		<link>http://www.raskas.be/blog/2007/03/07/less-than-minimal/</link>
		<comments>http://www.raskas.be/blog/2007/03/07/less-than-minimal/#comments</comments>
		<pubDate>Wed, 07 Mar 2007 18:01:33 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux SysAdmin]]></category>
		<category><![CDATA[Xen]]></category>
		<category><![CDATA[kickstart]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/2007/03/07/less-than-minimal/</guid>
		<description><![CDATA[Last week I updated my CentOS base image document.
One important change was in the yum line.
Previously it would do a groupinstall of Base, which results in a total of 300 packages. This is the same amount of packages when it is installed from cd and minimal install is checked.
But this minimal install includes way to [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I updated my <a href="http://www.raskas.be/blog/howtos/centos-base-image/">CentOS base image</a> document.<br />
One important change was in the yum line.</p>
<p>Previously it would do a groupinstall of <b>Base</b>, which results in a total of 300 packages. This is the same amount of packages when it is installed from cd and minimal install is checked.<br />
But this minimal install includes way to much and useless packages like pcmcia, irda, isdn, &#8230;<br />
The groupinstall of <b>Core</b> gives a better result. Now only a bit more than 100 packages are installed. Even yum or openssh aren&#8217;t installed. So you will have to add some extra packages but at least you&#8217;re not stuck with all those unused packages and running services.</p>
<p>The same happens when you kickstart. By default it will install the base and core groups. But again this results in 300 packages. Just mentioning core or not mentioning base in the packages section doesn&#8217;t solve the problem.<br />
Luckily there is an, undocumented, option for the packages section. You can pass &#8211;nobase if you don&#8217;t want to install the complete Base group. But now you will have to mention the Core group or it will install not enough packages.<br />
This is how your packages section in the kickstart file can look like:<br />
<code><br />
% packages --nobase<br />
@ Core<br />
yum<br />
openssh-clients<br />
openssh-server<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2007/03/07/less-than-minimal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Multi Bridge Xen</title>
		<link>http://www.raskas.be/blog/2007/02/11/multi-bridge-xen/</link>
		<comments>http://www.raskas.be/blog/2007/02/11/multi-bridge-xen/#comments</comments>
		<pubDate>Sun, 11 Feb 2007 10:34:54 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/2007/02/12/multi-bridge-xen/</guid>
		<description><![CDATA[Kris explained in a previous blog post how you can create multiple bridges.
While testing the multiple bridges in a situation where every bridge is connected to a physical interface and that every virtual interface must be connected to the correct bridge (peth0->xenbr0->vifX.0; peth1->xenbr1->vifX.1; &#8230;) I noticed something strange.
The vif interface was not always connected to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.x-tend.be/~kb/blog/">Kris</a> explained in <a href="http://www.x-tend.be/~kb/blog/index.php?2007/02/08/315-multi-bridge-xen">a previous blog post</a> how you can create multiple bridges.</p>
<p>While testing the multiple bridges in a situation where every bridge is connected to a physical interface and that every virtual interface must be connected to the correct bridge (peth0->xenbr0->vifX.0; peth1->xenbr1->vifX.1; &#8230;) I noticed something strange.</p>
<p>The vif interface was not always connected to the correct bridge. When the bridgename is provided in the configuration file (with or without the mac address) the first entry is not always mapped to vifX.0.</p>
<p>A wrapper script brought again a solution. The vif-wrapper-bridge script will chech the name of the vif interface and use the last number (interface number) to define the bridge. That bridgename is stored in the xenstore and used by the vif-bridge script.</p>
<p><code><br />
[root@GW-Y ~]$ grep wrapper xend-config.sxp<br />
(network-script network-wrapper-bridge)<br />
(vif-script vif-wrapper-bridge)<br />
</code></p>
<p><b>vif-wrapper-bridge</b><code><br />
#!/bin/sh<br />
&nbsp;<br />
if [ $1 = "online" ]<br />
then<br />
&nbsp;&nbsp;# load some general functions<br />
&nbsp;&nbsp;dir=$(dirname "$0")<br />
&nbsp;&nbsp;. "$dir/vif-common.sh"<br />
&nbsp;&nbsp;# find the bridge number out of the vif interface name<br />
&nbsp;&nbsp;brnum=$(echo $vif | sed 's/vif.*\.//')<br />
&nbsp;&nbsp;bridge=xenbr$brnum<br />
&nbsp;&nbsp;# store the bridgename in xenstore<br />
&nbsp;&nbsp;bridge=$(xenstore_write "$XENBUS_PATH/bridge" "$bridge")<br />
fi<br />
&nbsp;<br />
# load the real vif-bridge script<br />
/etc/xen/scripts/vif-bridge $1<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2007/02/11/multi-bridge-xen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Xen dom0 and heartbeat</title>
		<link>http://www.raskas.be/blog/2007/02/09/xen-dom0-and-heartbeat/</link>
		<comments>http://www.raskas.be/blog/2007/02/09/xen-dom0-and-heartbeat/#comments</comments>
		<pubDate>Fri, 09 Feb 2007 15:21:51 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/2007/02/09/xen-dom0-and-heartbeat/</guid>
		<description><![CDATA[During testing of heartbeat 1 on a xen dom0, some strange errors appeared. One of the error messages was:
ERROR: No local heartbeat. Forcing shutdown
This error message was explained in the heartbeat FAQ but the explained causes didn&#8217;t make any sense.
An update from Xen 3 to Xen 3.0.4 didn&#8217;t solve the problem.
Updating heartbeat from v1 to [...]]]></description>
			<content:encoded><![CDATA[<p>During testing of heartbeat 1 on a xen dom0, some strange errors appeared. One of the error messages was:<br />
<code>ERROR: No local heartbeat. Forcing shutdown</code></p>
<p>This error message was explained in the heartbeat FAQ but the explained causes didn&#8217;t make any sense.<br />
An update from Xen 3 to Xen 3.0.4 didn&#8217;t solve the problem.<br />
Updating heartbeat from v1 to v2 made the error disappear and heartbeat was now working without any problems.<br />
Heartbeat v2 has a complete new config file. The main config file (ha.cf) is now an xml file. But don&#8217;t worry, if you don&#8217;t want to upgrade the config file, you can keep working with a v1 config file. You can&#8217;t take advantage of the new features of heartbeat v2 but at least you&#8217;re taking advantage of the bugfixes <img src='http://www.raskas.be/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2007/02/09/xen-dom0-and-heartbeat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen kernel-panic</title>
		<link>http://www.raskas.be/blog/2007/02/08/xen-kernel-panic/</link>
		<comments>http://www.raskas.be/blog/2007/02/08/xen-kernel-panic/#comments</comments>
		<pubDate>Thu, 08 Feb 2007 17:17:56 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/2007/02/08/xen-kernel-panic/</guid>
		<description><![CDATA[I repeadetly tried to install xen. The installation of the rpms, downloaded from the xen site, succeeded but when I rebooted into the xen kernel a kernel panic occured.
A message like no version for &#8220;struct_module&#8221; found: kernel tainted scrolled over the screen during the loading of the modules. A deeper look into that message showed [...]]]></description>
			<content:encoded><![CDATA[<p>I repeadetly tried to install xen. The installation of the rpms, downloaded from the xen site, succeeded but when I rebooted into the xen kernel a kernel panic occured.<br />
A message like <i>no version for &#8220;struct_module&#8221; found: kernel tainted</i> scrolled over the screen during the loading of the modules. A deeper look into that message showed me that it was not fatal and the kernel panic was caused by something else.</p>
<p>A lot of kernel panics are caused because they can&#8217;t find the harddisk. This happens because the correct module isn&#8217;t build into the kernel or available in the initrd. The same problem occured here. The xen kernel has not as many build in modules as a normal centos kernel and the needed modules aren&#8217;t automatically added in the initrd.</p>
<p>The solution is easy: include the needed modules in the initrd.<br />
But which module is the correct one? That depends on the hardware in your system. You can start finding the correct modules by reading the dmesg when you boot that system with a working kernel.</p>
<p>Following command worked on my home machine:<br />
<code><br />
[root@xen ~]# mkinitrd -v -f --with=ide-generic /boot/initrd-2.6.16.33-xen_3.0.4.1.img 2.6.16.33-xen_3.0.4.1<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2007/02/08/xen-kernel-panic/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using a serial link on a xen dom0</title>
		<link>http://www.raskas.be/blog/2007/02/05/using-a-serial-link-on-a-xen-dom0/</link>
		<comments>http://www.raskas.be/blog/2007/02/05/using-a-serial-link-on-a-xen-dom0/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 14:40:27 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/2007/02/05/using-a-serial-link-on-a-xen-dom0/</guid>
		<description><![CDATA[By default xen will bind it&#8217;s console on ttyS0 and following message is visible in /var/log/message
kernel: Xen virtual console successfully installed as ttyS0
At this moment you can&#8217;t send messages over a serial cable connected to your system because the device is already in use by xen.
Adding following parameter in the grub config file, the default [...]]]></description>
			<content:encoded><![CDATA[<p>By default xen will bind it&#8217;s console on ttyS0 and following message is visible in /var/log/message<br />
<code>kernel: Xen virtual console successfully installed as ttyS0</code></p>
<p>At this moment you can&#8217;t send messages over a serial cable connected to your system because the device is already in use by xen.</p>
<p>Adding following parameter in the grub config file, the default ttyS0 will be changed to whatever you provide or removed if you enter xencons=off.<br />
<code>module /boot/vmlinuz-2.6-xen ro root=/dev/sda1 xencons=ttyS9</code></p>
<p>ttyS0 will be unused after a reboot and the module providing the serial devices can be loaded, the module is called <b>8250</b>.<br />
Normally the serial modules are compiled in the kernel and nothing is implemented to load them during boot. But we want to load when the system is booted. Therefore I added that module in /etc/modprobe.conf:<code><br />
# loading the module for serial devices. We want this at boot time therefore it is aliased to snd-card.<br />
alias snd-card-0 8250<br />
alias snd-card-0 8250_pci<br />
alias snd-card-0 8250_pnp<br />
</code></p>
<p>This is how you can test the serial connection between 2 machine:<br />
* On machine 1 open the serial device: <i>cat /dev/ttyS0</i><br />
* On machine 2 send a message over the link: <i>echo &#8220;Hello World&#8221; > /dev/ttyS0</i><br />
The message should appear on machine 1.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2007/02/05/using-a-serial-link-on-a-xen-dom0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
