<?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>notes from Ken &#187; Linux</title>
	<atom:link href="http://www.notes.xythian.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.notes.xythian.net</link>
	<description>Links, technical notes, whatnot.</description>
	<lastBuildDate>Sun, 04 Jul 2010 19:01:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Ubuntu 9.04 and python-virtualenv</title>
		<link>http://www.notes.xythian.net/2009/05/31/ubuntu-904-and-python-virtualenv/</link>
		<comments>http://www.notes.xythian.net/2009/05/31/ubuntu-904-and-python-virtualenv/#comments</comments>
		<pubDate>Sun, 31 May 2009 19:26:17 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[Experience]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.notes.xythian.net/?p=245</guid>
		<description><![CDATA[I recently upgraded a bunch of physical and virtual machines from various Ubuntu v.older version to Ubuntu 9.04. Naturally, this broke my Python development environment since Python was upgraded from 2.5 to 2.6. I had instructed easy_install to put things into /usr/local. The upgrades from Ubuntu v.older to 9.04 went quite smoothly on every machine [...]]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded a bunch of physical and virtual machines from various Ubuntu v.older version to Ubuntu 9.04.   Naturally, this broke my Python development environment since Python was upgraded from 2.5 to 2.6.  I had instructed easy_install to put things into /usr/local.</p>
<p>The upgrades from Ubuntu v.older to 9.04 went quite smoothly on every machine including the ones where I had to do several stepped upgrades since on various machines I skipped one or more upgrades prior to 9.04.</p>
<p>Rather than return to my old ways of just hosing packages (and, worse, &#8220;setup.py develop&#8221; symlinks) into /usr/local I&#8217;ve decided to use python-virtualenv to create some non-root-owned Python environments to work on my various Python-y apps.  The main difference to me is being able to keep things I&#8217;m working on separate from one another.</p>
<p>We&#8217;ll see how it goes.</p>
<p>I&#8217;m afraid all these years of using package-managed software has made me soft &#8212; now a piece of software not having a nice package means I need to think a bit harder about if it&#8217;s worth dealing with the hassle of having that software outside of the package manager.  (That applies to when I&#8217;d like to be using a more recent version of the package, too, though generally on Ubuntu I run into that a lot less frequently than I did on Debian.)   I have mixed feelings about setuptools and easy_install.</p>
<p>I am pleased that now mod_wsgi is in a package so I can switch to that version rather than the one I installed by hand.   mod_wsgi was worth it to install by hand to use until there was a nice package available.  It&#8217;s Just Better than my previous mechanisms for running WSGI apps in, under, or behind Apache.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.notes.xythian.net/2009/05/31/ubuntu-904-and-python-virtualenv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crashing Xen</title>
		<link>http://www.notes.xythian.net/2006/08/15/crashing-xen/</link>
		<comments>http://www.notes.xythian.net/2006/08/15/crashing-xen/#comments</comments>
		<pubDate>Wed, 16 Aug 2006 04:06:09 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.notes.xythian.net/2006/08/15/crashing-xen/</guid>
		<description><![CDATA[Right about the time I finished migrating everything over to my Xen-running Linux box things fell apart. It started crashing in one form or another every night when the backups ran. Sometimes, the whole machine rebooted. Other times, one of the domains (usually the one being backe up) would crash and burn and remain hung [...]]]></description>
			<content:encoded><![CDATA[<p>Right about the time I finished migrating everything over to my Xen-running Linux box things fell apart.   It started crashing in one form or another every night when the backups ran.  Sometimes, the whole machine rebooted.  Other times, one of the domains (usually the one being backe up) would crash and burn and remain hung until I destroyed it, manually removed the snapshot against its partition, and then restarted it.</p>
<p>I investigated a little and found some evidence that Xen had some Issues with some motherboard chipsets when the machine was under load (as when it&#8217;s running the backups, for example).   Curious, though, since I ran backups for an entire day before the last migration without a problem.    Sadly, this happened as I ran out of energy for doing home sysadmin work, so my response after brief investigation was: migrate everything important back to the still-running &#8220;normal&#8221; Linux box and shut the Xen machine off. </p>
<p>Xen 3.0.3 was supposed to be out at he end of July and apparently will contain a fix for the bug that might have been causing my crashes.  It might also have been LVM2/snapshot-related &#8212; I never relaly got the warm fuzzy feeling about LVM2 and snapshots after I had some trouble getting it working and it was only reported to work in very recent kernel revisions.   I can&#8217;t believe the LVM folks rewrote everything (LVM -> LVM2) but broke snapshots for several releases.</p>
<p>Anyway, my Xen experiment has come to a close for the time being.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.notes.xythian.net/2006/08/15/crashing-xen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen and restoring state</title>
		<link>http://www.notes.xythian.net/2006/07/21/xen-and-restoring-state/</link>
		<comments>http://www.notes.xythian.net/2006/07/21/xen-and-restoring-state/#comments</comments>
		<pubDate>Sat, 22 Jul 2006 04:36:19 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.notes.xythian.net/2006/07/21/xen-and-restoring-state/</guid>
		<description><![CDATA[I finally got around to hooking up the serial cable from the UPS to the Linux box so it can be safely shut down. During testing, I had a bunch of Xen domains up, including one running vncserver and I was connected to the vncserver using a client on the Windows box. The machine shut [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got around to hooking up the serial cable from the UPS to the Linux box so it can be safely shut down.    During testing, I had a bunch of Xen domains up, including one running vncserver and I was connected to the vncserver using a client on the Windows box.</p>
<p>The machine shut down safely and came back up properly&#8230;. and the VNC viewer stayed connected.   The state of the domain running the vncserver was restored as if the host machine hadn&#8217;t just been powered off.   It&#8217;s one thing to know something is supposed to work a given way and another to actually see it happen. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.notes.xythian.net/2006/07/21/xen-and-restoring-state/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen</title>
		<link>http://www.notes.xythian.net/2006/07/09/xen/</link>
		<comments>http://www.notes.xythian.net/2006/07/09/xen/#comments</comments>
		<pubDate>Mon, 10 Jul 2006 04:02:47 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.notes.xythian.net/2006/07/09/xen/</guid>
		<description><![CDATA[I lunged into Xen yesterday evening (and early this morning, it turned out). I built Xen 3.0.2 from source mostly following instructions from Xen Debian Quick Start. I used my existing Debian sarge install for Domain 0. I made a Debian sarge root image and swap following Creating a Debian VM with debootstrap. Then I [...]]]></description>
			<content:encoded><![CDATA[<p>I lunged into Xen yesterday evening (and early this morning, it turned out).   I built Xen 3.0.2 from source mostly following instructions from <a href="http://www.howtoforge.com/perfect_setup_xen3_debian">Xen Debian Quick Start</a>.   I used my existing Debian sarge install for Domain 0.   </p>
<p>I made a Debian sarge root image and swap following <a href="http://www.option-c.com/xwiki/Create_a_Debian_VM_with_debootstrap">Creating a Debian VM with debootstrap</a>.   Then I cloned it and edited the hostname so I had two of them.   Then, I configured the MAC address of their virtual adapters so I could set up static DHCP mappings and DNS entries on my LAN for them.</p>
<p>I wanted shared disk between my dom0 host and domX domains.   NFS was, apparently, too easy for me, so I did some research into clustered filesystems to play with.   I found two free possibilities that both looked reasonably mature and easy enough to install.  GFS is from RedHat and OCFS2 is from Oracle.  Both are open source.   OCFS2 shipped with the kernel I already had built.   GFS didn&#8217;t.   So I decided to try OCFS2. I installed ocfs2-tools from Debian sarge.   <a href="http://lairds.org/Kyler/Linux/Xen/ocfs2_notes">ocfs2_notes</a> was a handy reference except I used ocfs2-tools from Debian sarge and the ocfs2 kernel module I built with the 2.6.16-xen kernel rather than installing from source as that guide shows.   I set up a cluster named &#8220;ocfs2&#8243; with my two Xen domains and the host in it.</p>
<p>It seemed to work when running against a loopback file.     I then brought the machine into single user and used parted to resize one of the partitions to make some free space to use LVM2 against.    I created a logical volume to put the OCFS2 partition that will be shared between the Domain0 host and some of the DomainUs.</p>
<p>My plan is to set up some domains to continue to test Xen over a longer period of time.   Assuming it all goes well I&#8217;ll eventually migrate the services from the other machine(s) they currently run on into domains.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.notes.xythian.net/2006/07/09/xen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
