<?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>Gordon Turner &#187; linux</title>
	<atom:link href="http://blog.gordonturner.ca/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gordonturner.ca</link>
	<description>A waste of bandwidth</description>
	<lastBuildDate>Wed, 23 Mar 2011 12:53:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Migrating from Xen-Fedora to KVM-Ubuntu</title>
		<link>http://blog.gordonturner.ca/2010/01/28/xen-fedora-to-kvm-ubuntu/</link>
		<comments>http://blog.gordonturner.ca/2010/01/28/xen-fedora-to-kvm-ubuntu/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 16:46:59 +0000</pubDate>
		<dc:creator>Gordo</dc:creator>
				<category><![CDATA[administrivia]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.gordonturner.ca/?p=303</guid>
		<description><![CDATA[Recently I completed my migration from Xen / Fedora Core to KVM / Ubuntu. I have been a long time Redhat user, but I felt that Fedora was no longer stable enough for me. I was tempted to move to CENTOS but it didn&#8217;t feel right, not quite an &#8216;official&#8217; Redhat release. So I decided [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I completed my migration from Xen / Fedora Core to KVM / Ubuntu.  I have been a long time Redhat user, but I felt that Fedora was no longer stable enough for me.  I was tempted to move to CENTOS but it didn&#8217;t feel right, not quite an &#8216;official&#8217; Redhat release.  So I decided on Ubuntu with KVM virtualization.</p>
<p>The transition was reasonably painless, a few adjustments to make, like using <strong>init.d</strong> instead of <strong>service</strong>.  I made some notes for myself that others might find helpful:</p>
<p><a href="http://confluence.gordonturner.ca/display/NOTES/Ubuntu+Notes">Ubuntu Notes</a></p>
<p><a href="http://confluence.gordonturner.ca/display/NOTES/Kernel+Virtual+Machine+Host">Ubuntu KVM Host notes</a></p>
<p><a href="http://confluence.gordonturner.ca/display/NOTES/Kernel+Virtual+Machine+Guest">Ubuntu KVM Guest notes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordonturner.ca/2010/01/28/xen-fedora-to-kvm-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: Xen+LVM guest OS to VMWare guest conversion</title>
		<link>http://blog.gordonturner.ca/2007/08/19/howto-xenlvm-guest-os-to-vmware-guest-conversion/</link>
		<comments>http://blog.gordonturner.ca/2007/08/19/howto-xenlvm-guest-os-to-vmware-guest-conversion/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 19:03:10 +0000</pubDate>
		<dc:creator>Gordo</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.gordonturner.ca/wordpress/2007/08/19/howto-xenlvm-guest-os-to-vmware-guest-conversion/</guid>
		<description><![CDATA[I have several virtual machines (including this webserver) hosted on a Xen Linux host. I wanted to be able to use the same linux configuration in my VMWare player on my desktop for testing. Here are the rough steps that I went through to convert a linux guest that was on a LVM partition to [...]]]></description>
			<content:encoded><![CDATA[<p>I have several virtual machines (including this webserver) hosted on a Xen Linux host.  I wanted to be able to use the same linux configuration in my VMWare player on my desktop for testing.</p>
<p>Here are the rough steps that I went through to convert a linux guest that was on a LVM partition to a raw file on my Windows Desktop that the VMWare player could use.</p>
<p>Software: Redhat Fedora Core 6, Xen, LVM, VMWare Player 2.0.0</p>
<p><span id="more-63"></span></p>
<p>1. The Xen guest is a running a paravirtualized kernel, hopefully I will upgrade the cpu soon.  So, if you are running a Xen specific kernel like I am, you must install the regular, non-paravirutalized kernel.  Login as root onto the guest and run:
<code>
[root@xen-guest ~]# yum install kernel.i686</code></p>
<p>2. Restart the guest and confirm that the new kernel is in the grub startup menu and that the default kernel is still the paravirtualized kernel (don&#8217;t want to mess up the existing system).  Once confirmed, halt the guest.</p>
<p>3. Map the LVM partition.  As root on the Xen Host type:</p>
<p><code>[root@xen-host ~]# kpartx -av /dev/VolGroup00/ImageData00
add map ImageData00p1 : 0 6281352 linear /dev/VolGroup00/ImageData00 63</code></p>
<p>(I have always done the mapping, I am not sure if this is required.)</p>
<p>4. Using dd, copy the partition to an image file.  As root on the Xen Host type:</p>
<p><code>[root@xen-host ~]# dd if=/dev/VolGroup00/ImageData00 of=/some/path/ImageData00.img bs=512
6291456+0 records in
6291456+0 records out
3221225472 bytes (3.2 GB) copied, 276.703 seconds, 11.6 MB/s</code></p>
<p>This step will take a while, the of should be somewhere with lots of space.</p>
<p>Note: copy down the number of records in/out, this is needed later.</p>
<p>5. Unmap the LVM partition.  As root on the Xen Host type:</p>
<p><code>[root@xen ~]# kpartx -dv /dev/VolGroup00/ImageData00
del devmap : ImageData00p1</code></p>
<p>6. Run fdisk on the image file to get the disk geometery.  As root on the Xen Host type:</p>
<p><code>[root@xen FileBackedHosts]# fdisk /dev/VolGroup00/ImageData00</p>
<p>Command (m for help): p</p>
<p>Disk /dev/VolGroup00/ImageData00: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>                       Device Boot      Start         End      Blocks   Id  System
/dev/VolGroup00/ImageData00p1   *           1         391     3140676   83  Linux</code></p>
<p>Note: copy down the head, sectors/track and cylinders values.</p>
<p>7. Copy the image file to the Windows desktop, I used pscp to move it over.</p>
<p>8. Grab a copy of an empty VMWare virtual machine (<a href="http://gordonturner.ca/maven/vmware-image/distributions/">here is mine</a>).  Edit the *.vmdk file to:</p>
<p><code>
version=1
CID=e37454cd
parentCID=ffffffff
createType="monolithicFlat"</p>
<p># Extent description
RW 6281352 FLAT "ImageData00.img" 0</p>
<p># The Disk Data Base 
#DDB</p>
<p>ddb.adapterType = "ide"
ddb.geometry.sectors = "63"
ddb.geometry.heads = "255"
ddb.geometry.cylinders = "391"
ddb.virtualHWVersion = "3"
ddb.toolsVersion = "0"</code></p>
<p>Replace your sectors, heads and cylinders with your values from earlier.  Replace &#8220;6281352&#8243; with your records in/out number.</p>
<p>9. Start the VMWare image.  On first boot, choose the regular kernel in the grub startup menu, edit it to remove the &#8220;console=&#8230;&#8221; and add &#8220;single&#8221; to boot into  single user mode.</p>
<p>10. Once booted in single user mode, edit the /etc/inittab to comment out &#8220;co:2345:respawn&#8230;&#8221; and uncomment other &#8220;1:2345:respawn&#8230;&#8221; consoles.  Reboot and choose the regular kernel again.</p>
<p>11. Once booted, edit the /boot/grub/grub.conf and change &#8220;default=1&#8243; to &#8220;default=0&#8243;, this should be the regular kernel.  From now on, the regular kernel should boot with no problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordonturner.ca/2007/08/19/howto-xenlvm-guest-os-to-vmware-guest-conversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto setup Sendmail to use ISP SMTP server</title>
		<link>http://blog.gordonturner.ca/2007/01/16/setting-up-sendmail-to-use-isps-smtp-server/</link>
		<comments>http://blog.gordonturner.ca/2007/01/16/setting-up-sendmail-to-use-isps-smtp-server/#comments</comments>
		<pubDate>Tue, 16 Jan 2007 12:18:46 +0000</pubDate>
		<dc:creator>Gordo</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.gordonturner.ca/wordpress/2007/01/16/setting-up-sendmail-to-use-isps-smtp-server/</guid>
		<description><![CDATA[Warning, Geek alert. In order for the WordPress emails to go out properly, I had to setup Sendmail to connect to my Internet Service Providers SMTP server. More details after the cut. For most hosted providers, Sendmail is automatically configured. However, if yo are hosting your server on a private machine at home like I [...]]]></description>
			<content:encoded><![CDATA[<p>Warning, Geek alert.</p>
<p>In order for the WordPress emails to go out properly, I had to setup Sendmail to connect to my Internet Service Providers SMTP server.</p>
<p>More details after the cut.</p>
<p><span id="more-7"></span> For most hosted providers, Sendmail is automatically configured.  However, if yo are hosting your server on a private machine at home like I am, with no mail server, you have to use your ISP to send mail.</p>
<p>Here are the instructions on how to do this on Fedora Core 6, with thanks to Dave Pavao.</p>
<p>- All of these steps are done as root.
- Install sendmail-cf:</p>
<pre>yum install sendmail-cf</pre>
<p>- Edit the sendmail.cf file:</p>
<pre>vi /etc/mail/sendmail.mc
...
define(`SMART_HOST', `smtp-rog.mail.yahoo.com')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/isp-info')dnl
...</pre>
<p>- Edit the rogers-info file, here juser and password are your credentials provided by Rogers:</p>
<pre>vi /etc/mail/isp-info
AuthInfo:smtp-rog.mail.yahoo.com "U:juser@rogers.com" "I:juser@rogers.com" "P:password"</pre>
<p>- Run make:</p>
<pre>cd /etc/mail
make</pre>
<p>- Create the isp-info.db file:</p>
<pre>makemap hash /etc/mail/isp-info < /etc/mail/isp-info</pre>
<p>- Restart sendmail:</p>
<pre>service sendmail restart</pre>
<p>That should be it, this will make it into my wiki eventually.</p>
<p>GT.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gordonturner.ca/2007/01/16/setting-up-sendmail-to-use-isps-smtp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

