<?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>Pervasive Code &#187; xen</title>
	<atom:link href="http://www.pervasivecode.com/blog/category/xen/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pervasivecode.com/blog</link>
	<description>Jamie Flournoy's Software Development Blog</description>
	<lastBuildDate>Mon, 26 Jul 2010 05:29:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu 8.10 and 9.04 (Intrepid Ibex and Jaunty Jackalope) upgrade notes</title>
		<link>http://www.pervasivecode.com/blog/2009/05/30/ubuntu-jaunty-jackalope-upgrade-notes/</link>
		<comments>http://www.pervasivecode.com/blog/2009/05/30/ubuntu-jaunty-jackalope-upgrade-notes/#comments</comments>
		<pubDate>Sat, 30 May 2009 22:54:18 +0000</pubDate>
		<dc:creator>Jamie Flournoy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.pervasivecode.com/blog/?p=96</guid>
		<description><![CDATA[I&#8217;m at WordCamp San Francisco today and decided that running a year old version of WordPress (on a year old version of Ubuntu Linux) was undesirable. So, with the confidence that comes from many relatively easy Ubuntu OS upgrades, I charged ahead. For (I think) the second time ever, things went badly. Here&#8217;s what I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m at <a href="http://2009.sf.wordcamp.org/">WordCamp San Francisco</a> today and decided that running a year old version of WordPress (on a year old version of <a href="http://www.ubuntu.com/">Ubuntu Linux</a>) was undesirable. So, with the confidence that comes from many relatively easy Ubuntu OS upgrades, I charged ahead. For (I think) the second time ever, things went badly. Here&#8217;s what I did and how I fixed it.<br />
<span id="more-96"></span><br />
First, I had to figure out what release of Ubuntu was currently installed:<br />
<code>lsb_release -a</code></p>
<p>I was on &#8220;hardy&#8221;, a.k.a. the <a href="https://wiki.ubuntu.com/HardyHeron/">Hardy Heron</a> release, a.k.a. Ubuntu 8.04 LTS.</p>
<p>I had not bothered to install <a href="https://wiki.ubuntu.com/IntrepidIbex/">Ubuntu 8.10 / &#8220;Intrepid Ibex&#8221;</a> because I didn&#8217;t have a reason to when it was release. I now wanted to upgrade to <a href="https://wiki.ubuntu.com/JauntyJackalope">Ubuntu 9.04 &#8220;Jaunty Jackalope&#8221;</a> which has <a href="http://wordpress.org/">WordPress</a> 2.7.1, the current release (as of today).</p>
<p>The way to upgrade from 8.04 to 9.04 is to upgrade to 8.10 first. So I did that:</p>
<p><a href="https://help.ubuntu.com/community/IntrepidUpgrades#Network%20Upgrade%20for%20Ubuntu%20Servers%20(Recommended)">Intrepid Upgrades: Network Upgrade for Ubuntu Servers</a> worked really well. I had to do a little bit of manual file merging as usual (I still don&#8217;t understand why dpkg can&#8217;t merge changes from the old file into a new file) but that was it. Easy!</p>
<p>When I rebooted the VPS, it kernel panicked: can&#8217;t mount the root filesystem. Oh crap. /dev/xvda1 is missing? Really? I told the VPS to hard reboot and it came up fine. But that&#8217;s a little scary. (I think this is something more related to my VPS hosting provider than Ubuntu, but I haven&#8217;t yet upgraded my laptop VMWare Ubuntu VPS&#8217;s yet so I&#8217;m not sure.)</p>
<p>The second stage didn&#8217;t go so well. I did the same sort of simple upgrade: the Jaunty <a href="http://www.ubuntu.com/getubuntu/upgrading#Network%20Upgrade%20for%20Ubuntu%20Servers%20%28Recommended%29">Network Upgrade for Ubuntu Servers</a> instructions are the same as the ones for Intrepid. Upgrade, edit a couple of config files, reboot. Kernel panic again, same reason, reboot. Should work, right?</p>
<p>It booted, but had no network access. I was able to log in via my VPS hosting provider&#8217;s SSH remote console feature, so I was able to see that /etc/init.d/networking was failing to start. It was the same problem that&#8217;s described in <a href="http://www.fs3.ph/article/ubuntu-904-in-an-openvz-ve">Ubuntu 9.04 in an OpenVZ VE</a>. Adding that one line to <code>/etc/init.d/networking</code> fixed the problem. Reboot, all better.</p>
<p>So if you&#8217;re doing this upgrade on a VPS, make sure you&#8217;ve added that little 1-line hack after you do the Jaunty upgrade and before you reboot.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pervasivecode.com/blog/2009/05/30/ubuntu-jaunty-jackalope-upgrade-notes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CentOS 5.3 Minimal VPS Install Guide</title>
		<link>http://www.pervasivecode.com/blog/2009/05/30/centos-53-minimal-vps-install-guide/</link>
		<comments>http://www.pervasivecode.com/blog/2009/05/30/centos-53-minimal-vps-install-guide/#comments</comments>
		<pubDate>Sat, 30 May 2009 16:52:14 +0000</pubDate>
		<dc:creator>Jamie Flournoy</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Parallels]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.pervasivecode.com/blog/?p=95</guid>
		<description><![CDATA[I just did this yesterday; you can pretty much just follow my CentOS 5.1 Minimal VPS Install Guide.
The differences are:

When you get to the &#8220;More Minimizing&#8221; section, yum -C grouplist will show a package called &#8220;Yum Utilities&#8221; which you probably want to leave installed.
The Deployment_Guide-en-US file is not there so you don&#8217;t need to remove [...]]]></description>
			<content:encoded><![CDATA[<p>I just did this yesterday; you can pretty much just follow my <a href="http://www.pervasivecode.com/blog/2008/03/29/centos-51-minimal-vps-install-guide/">CentOS 5.1 Minimal VPS Install Guide</a>.</p>
<p>The differences are:</p>
<ul>
<li>When you get to the &#8220;More Minimizing&#8221; section, <code>yum -C grouplist</code> will show a package called &#8220;Yum Utilities&#8221; which you probably want to leave installed.</li>
<li>The <code>Deployment_Guide-en-US</code> file is not there so you don&#8217;t need to remove it.</li>
</ul>
<p>That&#8217;s it.</p>
<p>I should also note that downloading a 3.9GB DVD ISO image in order to build a ~700MB installed OS may not be very efficient. I didn&#8217;t bother looking for a network installer but that might be the way to get this done faster.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pervasivecode.com/blog/2009/05/30/centos-53-minimal-vps-install-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5.1 Minimal VPS Install Guide</title>
		<link>http://www.pervasivecode.com/blog/2008/03/29/centos-51-minimal-vps-install-guide/</link>
		<comments>http://www.pervasivecode.com/blog/2008/03/29/centos-51-minimal-vps-install-guide/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 07:00:25 +0000</pubDate>
		<dc:creator>Jamie Flournoy</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2008/03/29/centos-51-minimal-vps-install-guide/</guid>
		<description><![CDATA[I&#8217;m working on a project that is deploying on CentOS 5.1, and I found it not entirely obvious how to install a really stripped down server, as a starting point for a lean and mean, hardened production server. Since I&#8217;m doing work on this at home on VMWare, and it&#8217;s being deployed on a VPS [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a project that is deploying on CentOS 5.1, and I found it not entirely obvious how to install a really stripped down server, as a starting point for a lean and mean, hardened production server. Since I&#8217;m doing work on this at home on VMWare, and it&#8217;s being deployed on a VPS initially (and probably will remain virtualized for ease of management as it scales up), this guide is specifically aimed at this kind of configuration.</p>
<p><span id="more-63"></span></p>
<p><b>Assumptions:</b></p>
<ul>
<li>this server uses an x86_64 CPU architecture, not i386 (or for an ultra-small disk footprint, consider i386 since it doesn&#8217;t need duplicate 64 and 32 bit glibc libraries)</li>
<li>this is a server VPS (running in VMware or Xen) so it isn&#8217;t interested in low-level hardware management</li>
<ul>
<li>no need for ACPI (sleep/hibernate)</li>
<li>no need for laptop CPU power reduction</li>
<li>no need for SMART disk monitoring (since the VPS disk is virtualized)</li>
<li>no need for MD (software RAID) since it&#8217;s a VPS; any RAID is happening at a lower level (host OS / dom0)</li>
<li>no need to use LVM2 to mirror a logical volume (again because RAID is handled outside of the VPS)</li>
<li>no need for bluetooth, hot-plug hardware, or PCMCIA</li>
</ul>
<li>this server may have more than one CPU (or may be given additional VCPUs later due to load) so multi-CPU support is desired</li>
<li>this is a headless server so no GUI features are desirable</li>
<li>there are no legacy services that need RPC</li>
<li>NFS will not be used</li>
<li>SELinux will be left in the default configuration (&#8221;Enforcing&#8221; the &#8220;Targeted&#8221; policy).</li>
</ul>
<p><b>Basic Installation:</b></p>
<p>Start with the Centos 5.1 x86_64 install DVD.<br />
Boot the DVD.<br />
Select English language and U.S. English keyboard layout.<br />
Choose to Install the OS (not upgrade).<br />
Choose &#8220;Remove linux partitions on selected drives and create default layout.&#8221;<br />
Select DHCP network configuration, or the static IP address for this server.<br />
  (I choose DHCP, and tell the DHCP server to use a specific IP for this host based on its Ethernet MAC address.)<br />
Choose the time zone the server is in (for me this is America/Los Angeles), and enable the &#8220;System clock uses UTC&#8221; option.<br />
Pick a complex root password (https://grc.com/passwords can generate one for you) and enter it.<br />
When given a chance to install additional tasks, uncheck everything (no additional tasks) and choose the &#8220;Customize now&#8221; radio button.<br />
In the next screen, go into every group and uncheck everything. (*Nothing* should be checked when you&#8217;re done. Be careful not to miss anything!)<br />
Confirm that you want the installer to begin the installation process. (For me this process took about 6 minutes.)<br />
Confirm that you want to reboot, and make sure that the server will boot from the hard disk instead of the installation media.<br />
When the server boots, log in as root. (You can disconnect from the console and use SSH instead at this point if it&#8217;s more convenient.)</p>
<p><b>More Minimizing:</b><br />
Run this command to tell yum to go grab the latest package info from out on the internet.<br />
  <code>yum grouplist</code><br />
Run this command to make sure you didn&#8217;t install anything other than the bare minimum:<br />
  <code>yum -C grouplist</code><br />
You shouldn&#8217;t see a section called &#8220;Installed Groups:&#8221;. If you do see it, it means you missed something you were supposed to disable in the previous section.<br />
In that case, run this to remove it and all the packages in it:<br />
  <code>yum -C groupremove SomeGroupName</code></p>
<p>You can also run this command to count how many packages have been installed already:<br />
  <code>yum -C list installed | wc -l</code><br />
The resulting count of packages installed should be 154.</p>
<p>Next, run &#8220;<code>chkconfig --list | grep 3:on</code>&#8221; to see what services are enabled.<br />
Several of them can safely be disabled (provided that the assumptions at the top of this guide are true), so run this:<br />
  <code>for i in haldaemon lvm2-monitor messagebus netfs; do chkconfig $i off; done</code><br />
These are useful and should stay enabled:<br />
  ip6tables<br />
  iptables<br />
  kudzu<br />
  mcstrans<br />
  network<br />
  restorecond<br />
  sshd<br />
  syslog<br />
If for some reason there are others that are still enabled that aren&#8217;t on that list, you&#8217;ll have to decide for yourself.</p>
<p>Run this command to remove a 9.7MB standalone documentation package that you almost certainly won&#8217;t be reading from the server:<br />
  <code>yum -C remove Deployment_Guide-en-US</code></p>
<p>If you wish, run this command to update your installed packages to the latest stable version.<br />
  <code>yum update</code><br />
  As of 3/27/2008 this installed a new kernel, updated 19 other packages, and required a 54MB download.<br />
  Accept the CentOS package-signing GPG key when asked.<br />
  If a kernel update is installed, it would be a good idea to reboot soon to make sure it works.<br />
  You can also remove your old kernel (use &#8220;rpm -qa | grep kern&#8221; to find old ones) to save ~75MB.<br />
    <code>yum remove kernel-2.6.18-53.el5</code> NOTE! ONLY do this if you updated your kernel and have 2 installed now.</p>
<p><b>Useful Things You May Want To Install:</b></p>
<p>These packages are very useful for administering servers, deploying software and data to them, and performing backups:<br />
  <code>yum install bzip2 lsof man man-pages mlocate quota rsync sysstat vixie-cron wget which</code></p>
<p>If your server has more than 1 CPU you may wish to install irqbalance, to distribute interrupt servicing duty across CPUs:<br />
  <code>yum install irqbalance</code></p>
<p>This package makes the system boot slightly faster using a very simple, safe technique:<br />
  <code>yum install readahead</code></p>
<p>If you aren&#8217;t familiar with the vim text editor, you can install nano, which is less powerful but very easy to use:<br />
  <code>yum install nano</code></p>
<p>Have fun! Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pervasivecode.com/blog/2008/03/29/centos-51-minimal-vps-install-guide/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Upgrading to Ubuntu 7.10 &#8220;Gutsy Gibbon&#8221; on Xen</title>
		<link>http://www.pervasivecode.com/blog/2008/02/12/upgrading-to-ubuntu-710-gutsy-gibbon-on-xen/</link>
		<comments>http://www.pervasivecode.com/blog/2008/02/12/upgrading-to-ubuntu-710-gutsy-gibbon-on-xen/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 23:02:17 +0000</pubDate>
		<dc:creator>Jamie Flournoy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2008/02/12/upgrading-to-ubuntu-710-gutsy-gibbon-on-xen/</guid>
		<description><![CDATA[I have a VPS hosted at RimuHosting.com. I waited a while (3 months) for bugs to be squashed before upgrading it to Ubuntu Linux 7.10 (&#8221;Gutsy Gibbon&#8221;). There was one new issue.
BTW, my non-Rimu home server was the first thing I updated. Notes are here.
The only Xen wrinkle is that you need the libc6-xen package. [...]]]></description>
			<content:encoded><![CDATA[<p>I have a VPS hosted at RimuHosting.com. I waited a while (3 months) for bugs to be squashed before upgrading it to Ubuntu Linux 7.10 (&#8221;Gutsy Gibbon&#8221;). There was one new issue.</p>
<p>BTW, my non-Rimu home server was the first thing I updated. Notes are <a href="http://www.pervasivecode.com/blog/2007/12/28/ubuntu-linux-710-gutsy-gibbon-upgrade-report/">here</a>.</p>
<p>The only Xen wrinkle is that you need the <code>libc6-xen</code> package. I don&#8217;t know if that&#8217;s in Feisty or not. In my case I experienced a slew of scary Segmentation Fault errors in the package configuration stage. I found <a href="http://www.unixshell.com/forum/showpost.php?s=f92ba4537077b59a864833c94d6cd724&#038;p=8458&#038;postcount=6">:this post</a> which contains a solution for the problem. But if possible you might want to try installing that package before upgrading. If that doesn&#8217;t work, just use the method described in that post.</p>
<p>After doing that and running <code>dpkg --configure -a</code>, it was okay. It did complain about AppArmor and being unable to do something with modules, but that seems to be not germane to Xen so I ignored it and rebooted, and everything seems fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pervasivecode.com/blog/2008/02/12/upgrading-to-ubuntu-710-gutsy-gibbon-on-xen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking forward to LinuxWorld Expo SF 2007</title>
		<link>http://www.pervasivecode.com/blog/2007/07/27/looking-forward-to-linuxworld-expo-sf-2007/</link>
		<comments>http://www.pervasivecode.com/blog/2007/07/27/looking-forward-to-linuxworld-expo-sf-2007/#comments</comments>
		<pubDate>Sat, 28 Jul 2007 02:58:52 +0000</pubDate>
		<dc:creator>Jamie Flournoy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[gfs]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.pervasivecode.com/blog/2007/07/27/looking-forward-to-linuxworld-expo-sf-2007/</guid>
		<description><![CDATA[Last year I was doing mobile development and there was interesting Linux-as-smartphone-OS stuff going on. Now I&#8217;m doing Ruby on Rails development and there&#8217;s interesting server grid stuff going on. Here&#8217;s what I&#8217;m looking forward to finding out more about (all of these are things I&#8217;ve been watching or directly researching already):

Xen:
Xen seems to have [...]]]></description>
			<content:encoded><![CDATA[<p>Last year I was doing mobile development and there was interesting Linux-as-smartphone-OS stuff going on. Now I&#8217;m doing Ruby on Rails development and there&#8217;s interesting server grid stuff going on. Here&#8217;s what I&#8217;m looking forward to finding out more about (all of these are things I&#8217;ve been watching or directly researching already):<br />
<span id="more-36"></span><br />
<b>Xen</b>:<br />
<a href="http://www.xensource.com/products/xen/">Xen</a> seems to have eclipsed <a href="http://www.vmware.com/">VMware</a> as the standard low-cost virtualization solution, and virtualization looks like a giant sysadmin time saver for people like me who want to start dirt cheap (tens of dollars / month for a single Xen VPS) and potentially have dozens of servers in multiple data centers a few months later. I&#8217;d like to see what people are doing with it, especially along the lines of turning distro ISOs into preinstalled Xen images, and making tools to ease the creation and deployment of existing custom Xen images.</p>
<p><b>GFS, ZFS:</b><br />
I&#8217;m also interested in distributed filesystems like <a href="http://www.redhat.com/software/rha/gfs/">GFS</a>. I was under the impression until a few months ago that <a href="http://www.linuxinsight.com/ols2006_why_nfs_sucks.html">gross ugly NFS</a> was still the state of the art, but apparently somebody has finally addressed that. <em>Correction: GFS is a SAN filesystem, not a distributed filesystem, so it isn&#8217;t really comparable with NFS.</em><br />
<a href="http://www.opensolaris.org/os/community/zfs/">ZFS</a> is also interesting, because RAID has turned out to be complicated and expensive, mainly because it has to provide a transparent abstraction of a simple low-level block device. In classic time-sharing situations where many users run many applications on one volume that made more sense than it does now, where many users share one clustered application that has one dominant usage pattern across a large number of servers, each of which has several disks. The smaller set of requirements means that you can customize the clustered storage behavior and get major cost and performance savings, and ZFS seems to be a really good halfway point between application-level 100% custom clustered storage code, and kernel or hardware-level 100% generic RAID. The goal here would be to have dozens of cheap servers with several cheap drives each connected to cheap (motherboard-based) controllers, with HA and parallelization provided in software. </p>
<p><b>PostgreSQL:</b><br />
Also I&#8217;m becoming a total <a href="http://www.postgresql.org/">PostgreSQL</a> weenie and I want to see how they&#8217;re presenting themselves, and who&#8217;s making closed-source enterprise add-ons, esp. since Sun is increasingly investing in PostgreSQL (in a way that benefits the PostgreSQL community, not just Sun and Sun&#8217;s customers). Sun&#8217;s wagon is no longer hitched to Oracle on Solaris on SPARC, and the open stack of PostgreSQL on Linux (or Solaris) on x86 is proving to be extremely cost effective without sacrificing features, data integrity, or SMP scalability (as has been the case with MySQL). I think the &#8220;who&#8217;s the big fast fancy database of choice&#8221; tipping point from Oracle-&gt;PostgreSQL is already here and the world just hasn&#8217;t fully recognized that yet. The only thing left is built-in multimaster clustering (there&#8217;s <a href="http://www.pgcluster.org/">PGCluster</a> but it doesn&#8217;t look like a healthy project, and it&#8217;s not built in) but I think that&#8217;s just a matter of time now, since it&#8217;s such a desirable feature for the kind of customers Sun is courting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pervasivecode.com/blog/2007/07/27/looking-forward-to-linuxworld-expo-sf-2007/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
