<?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>Michel Hiemstra - Web Development &#38; Internet Marketing &#187; centos</title>
	<atom:link href="http://www.michelhiemstra.nl/blog/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michelhiemstra.nl/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 30 Mar 2011 14:59:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Project #1: Installing and configuring Xen 3.0.3 on CentOS 5.4</title>
		<link>http://www.michelhiemstra.nl/blog/project-1-installing-and-configuring-xen-hypervisor-4-0-0/</link>
		<comments>http://www.michelhiemstra.nl/blog/project-1-installing-and-configuring-xen-hypervisor-4-0-0/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 01:10:08 +0000</pubDate>
		<dc:creator>Michel Hiemstra</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.michelhiemstra.nl/blog/?p=86</guid>
		<description><![CDATA[Hi there,
I don&#8217;t often write something to my blog, mostly because I can&#8217;t find the time or the subject to write about, or the subject I can disclose to the public that is ^^. Anyway, I want to bust two bugs in one slap. That is writing something that is helpful to anyone interested and <a href="http://www.michelhiemstra.nl/blog/project-1-installing-and-configuring-xen-hypervisor-4-0-0/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Hi there,</p>
<p>I don&#8217;t often write something to my blog, mostly because I can&#8217;t find the time or the subject to write about, or the subject I can disclose to the public that is ^^. Anyway, I want to bust two bugs in one slap. That is writing something that is helpful to anyone interested and also for an archive of my projects. Often I start a personal project, mostly it doesn&#8217;t get completed because i get pulled of due other projects that actually bring food on the table. But this time I&#8217;m approaching it from another direction. Making my projects public for anyone to read. This keeps me motivated to complete the project and hopefully get some nice feedback from it.</p>
<p>My first project I&#8217;m posting is installing Xen 3.0.3 on a fresh server. Recently I&#8217;ve sold my webhosting company because I did not have the time, nor the long-term motivation for it. I&#8217;ve sold the company including the servers. But I managed to keep one server for myself and friends. This server is going to be used in this project so that I and my friends can have their own Virtual Machine.</p>
<p><span style="text-decoration: underline;">Note</span> that this is entirely new for me, and I don&#8217;t have any experience on virtualization what so ever, if you can provide me with any helpful feedback it will be appreciated <img src='http://www.michelhiemstra.nl/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a href="http://www.michelhiemstra.nl/blog/wp-content/uploads/2010/04/xen_logo_small.jpg"><img class="alignright size-full wp-image-104" title="Xen virtualization logo" src="http://www.michelhiemstra.nl/blog/wp-content/uploads/2010/04/xen_logo_small.jpg" alt="Xen virtualization logo" width="118" height="57" /></a>For some reason I have chosen to use <a href="http://www.xen.org/products/xenhyp.html" target="_blank">Xen</a>, why I don&#8217;t know exactly, other then its open source and according to the manual very easy to setup. I did look into other possibilities but it seems Xen is the most complete, and <span style="text-decoration: underline;">free</span> software for virtualization. Also build by some of the most experienced companies out there, that gives me a big boost in confidence on support, communities etc.</p>
<p>I will update this post frequently on the status of the installation, how I did it and a complete log of installation commands that worked for my server. So if this post intrigues you, bookmark it! <img src='http://www.michelhiemstra.nl/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color: #339966;">Project is finished. This website is now running on a Virtual Machine! </span><span id="more-86"></span></p>
<address><strong>Update &#8211; April 28th </strong></address>
<p>I&#8217;ve chosen to use <a href="http://centos.org/" target="_blank">CentOS 5</a> because I&#8217;m familiar to this operating system and it&#8217;s easy to use. I&#8217;m using this OS for my dom0 setup, and also for the clients (domU).</p>
<address><strong>Update &#8211; April 28th &#8211; 20:00<br />
</strong></address>
<p><a href="http://www.michelhiemstra.nl/blog/wp-content/uploads/2010/04/IMG_0837.jpg"><img class="alignright size-thumbnail wp-image-98" title="Server for project 1" src="http://www.michelhiemstra.nl/blog/wp-content/uploads/2010/04/IMG_0837-150x150.jpg" alt="" width="150" height="150" /></a>Just got back from the datacenter, picked up the server I&#8217;m going to use for this project! After 2 years non-stop serving websites I thought let me clean the inside from dust, but surprisingly there was none.. at all..</p>
<address><strong>Update &#8211; April 29th &#8211; 01:20</strong></address>
<p>Attempted to install a clean CentOS 5 installation with the <a href="http://www.linuxh0st.net/howto/centos5/" target="_blank">netinstall</a> ISO, appears my dvd-rom is broken, replaced it with new one; The DVD itself is not OK, that was my last one.. Need to get to the store later. me 0 &#8211; 1 preparation.</p>
<address><strong>Update &#8211; April 30th &#8211; 15:40</strong></address>
<p>Today I configured the RAID, I&#8217;ve chosen for RAID10 with 4x 250GB hdd&#8217;s. This gives me 500GB disk space and a mirror for safety <img src='http://www.michelhiemstra.nl/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Building the array obviously took a long time. Got new CD&#8217;s, burned the netinstall ISO and booted the installation thought a HTTP mirror, works like a charm. But there seems to be an error with the GRUB loader after installation, I tried to fix it for a couple of hours, google-d my ass off but can&#8217;t seem to fix the problem. Called in the help of a friend who happens to be an expert in my eyes. Waiting for him to arrive and hopefully he knows how to fix it.</p>
<address><strong>Update &#8211; April 30th &#8211; 19:00</strong></address>
<p>Problem turned out to be the RAID10 configuration, somehow CentOS doesn&#8217;t &#8216;take&#8217; it. Also Ubuntu doesn&#8217;t like the RAID 10 configuration. Now i configured 2 times RAID1 for all 4 disks. Still gives me 500GB of storage, and mirrors. Installed CentOS 5.4 thought netinstall, now installing Xen.</p>
<p>&#8211; Well, installing Xen was pretty much easy. These are the steps i made:</p>
<p>I want to store all my VM&#8217;s on a big disk, for me that was the root disk. I created a folder on /data/vms/ for my virtual machines. After that I simply ran:</p>
<pre>yum install kernel-xen xen</pre>
<p>This installs Xen and the xen kernel. And it automatically adds the kernel to the Grub boot menu. You do have to make sure it&#8217;s set as default so it will boot that kernel on startup.</p>
<pre>nano /boot/grub/menu.lst</pre>
<p>Change the value of default to 0 (make sure the xen kernel is above other&#8217;s).</p>
<p>Reboot your system,</p>
<pre>shutdown -r now</pre>
<p>And it should boot from the new Xen kernel now!</p>
<p>To check if it is, run</p>
<pre>[root@server ~]# uname -r
2.6.18-164.15.1.el5xen
[root@server ~]#
</pre>
<p>And we are done. We can setup virtual machines (domains) now.</p>
<p>That was pretty simple too, Xen comes with a tool that prompts you with the questions. You only have to enter the name and path basically for Xen to setup the VM. Type:</p>
<pre>virt-install --prompt</pre>
<p><a href="http://www.michelhiemstra.nl/blog/wp-content/uploads/2010/04/Screen-shot-2010-04-30-at-7.19.48-PM.png"><img class="alignright size-thumbnail wp-image-118" title="Screen shot 2010-04-30 at 7.19.48 PM" src="http://www.michelhiemstra.nl/blog/wp-content/uploads/2010/04/Screen-shot-2010-04-30-at-7.19.48-PM-150x150.png" alt="" width="117" height="117" /></a>When Xen ask&#8217;s for the Install URL you can use the images for your prevered flavor of linux, or what ever OS you want to install. I used CentOS for my first VM.</p>
<p>After installation, if you want to automatically boot your VM type on the domain-0:</p>
<pre>ln -s /etc/xen/&lt;vmname&gt; /etc/xen/auto</pre>
<p>For a list of Xen commands you can visit: <a href="http://xen-tools.org/software/xen-shell/commands.html" target="_blank">http://xen-tools.org/software/xen-shell/commands.html</a></p>
<address> </address>
<address><strong>Update &#8211; April 30th 21:10</strong></address>
<p>Well, it was a fast project for sure, all went easy as h*ll, except for the RAID10 issue. But everything is running smoothly and I have 3 VM&#8217;s running on the machine. Going to set it up in the datacenter again somewhere next week, And migrating this website to it! Thank you for reading, commenting is allowed <img src='http://www.michelhiemstra.nl/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  And since it&#8217;s Queens Day here in Holland, im out partying now, bye!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelhiemstra.nl/blog/project-1-installing-and-configuring-xen-hypervisor-4-0-0/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>HowTo: Installing Subversion and Trac on CentOS 4</title>
		<link>http://www.michelhiemstra.nl/blog/howto-installing-subversion-and-trac-on-centos/</link>
		<comments>http://www.michelhiemstra.nl/blog/howto-installing-subversion-and-trac-on-centos/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 10:14:58 +0000</pubDate>
		<dc:creator>Michel Hiemstra</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://www.michelhiemstra.nl/blog/?p=49</guid>
		<description><![CDATA[I installed Subversion on a CentOS box with Trac, and although there are many, many howto&#8217;s on the web none of them seemed to work for my configuration. This is what i did, and worked for me on CentOS 4.


Installing Subversion
Installing Trac
Configuring Apache and Authentication

So, lets begin with installing Subversion. I used the Yum package <a href="http://www.michelhiemstra.nl/blog/howto-installing-subversion-and-trac-on-centos/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>I installed Subversion on a CentOS box with Trac, and although there are many, many howto&#8217;s on the web none of them seemed to work for my configuration. This is what i did, and worked for me on CentOS 4.</p>
<p><span id="more-49"></span></p>
<ul>
<li>Installing Subversion</li>
<li>Installing Trac</li>
<li>Configuring Apache and Authentication</li>
</ul>
<p>So, lets begin with installing Subversion. I used the Yum package manager but whether you install it from source or not doesn&#8217;t matter that much. We are going to need the packages &#8217;subversion&#8217; and &#8216;mod_dav_svn&#8217;, the last one is for serving Subversion repositories through Apache HTTP Server, which i assume you already have installed.</p>
<pre class="brush:bash">[root@repobox ~] yum install mod_dav_svn subversion</pre>
<p>Thats basicly it for installing, the configuration was where i lost time, now lets continue installing Trac.</p>
<p>I installed Trac also again in combination with Apache, now we need python and mod_python:</p>
<pre class="brush:bash">[root@repobox ~] yum install python mod_python</pre>
<p>And we need the mysql-python plugin so python can connect to MySQL, you can download the tarball from <a title="Mysql Python" href="http://sourceforge.net/projects/mysql-python/" target="_blank">http://sourceforge.net/projects/mysql-python</a>, then compile the package:</p>
<pre class="brush:bash">[root@repobox ~] tar xvzf mysql-python-tarball
[root@repobox ~] cd mysql-python-dir
[root@repobox ~] python setup.py build &amp;&amp; python setup.py install</pre>
<p>Install Clearsilver, this is a templating package used by Trac, you can download it from <a title="Clearsilver" href="http://www.clearsilver.net/downloads/" target="_blank">http://www.clearsilver.net/downloads/</a></p>
<pre class="brush:bash">[root@repobox ~] tar xvzf clearsilver-tarball
[root@repobox ~] cd clearsilver-dir
[root@repobox ~] ./configure â€“with-python=/path/to/python &amp;&amp; make &amp;&amp; make install</pre>
<p>Usually the python path is /usr/lib/python2.4 or whatever version you installed</p>
<p>When you have installed all of the above we can continue with installing Trac, first download Trac from <a title="Trac download" href="http://trac.edgewall.org/wiki/TracDownload" target="_blank">http://trac.edgewall.org/wiki/TracDownload</a></p>
<pre class="brush:bash">[root@repobox ~] tar xvzf trac-tarball
[root@repobox ~] cd trac-dir
[root@repobox ~] python ./setup.py install</pre>
<p>All done, now we can configure both subversion and Trac with Apache, and create some user authentication.</p>
<p>We are going to create config files for apache, vhost and trac:</p>
<pre class="brush:bash">[root@repobox ~] cd /etc/httpd/conf.d/
[root@repobox ~] touch vhosts.conf</pre>
<p>Now, <span style="text-decoration: underline;"><em>nano subversion.conf</em></span> and put in the following:</p>
<pre class="brush:bash">   DAV svn
   SVNParentPath /var/www/svn

   # Limit write permission to list of valid users.

      AuthType Basic
      AuthName "SVN Authorisation"
      AuthUserFile /etc/svn_trac-auth-conf
      Require valid-user</pre>
<p>This allows you to view the repository&#8217;s using http://example.org/repos</p>
<p>Now first lets create a svn repository</p>
<pre class="brush:bash">[root@repobox ~] svnadmin create /var/www/svn/projectname
[root@repobox ~] chown -R apache.apache /var/www/svn/projectname</pre>
<p>And a trac project to go along with it</p>
<pre class="brush:bash">[root@repobox ~] trac-admin /var/www/trac/projectname initenv
[root@repobox ~] chown -R apache.apache /var/www/trac/projectname</pre>
<p>Now lets add some security</p>
<pre class="brush:bash">[root@repobox ~] touch /etc/svn_trac-auth-conf
[root@repobox ~] htpasswd -m /etc/svn_trac-auth-conf username</pre>
<p>Now trac has been setup, lets create a apache link to it:</p>
<pre class="brush:bash">[root@repobox ~] nano /etc/httpd/conf.d/trac.conf</pre>
<p>Add the following:</p>
<pre class="brush:bash">        SetHandler mod_python
        PythonInterpreter main_interpreter
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /var/www/trac/projectname
        PythonOption TracUriRoot /trac/projectname</pre>
<p>Now you can open trac on http://example.org/trac/projectname</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelhiemstra.nl/blog/howto-installing-subversion-and-trac-on-centos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

