<?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; virtualization</title>
	<atom:link href="http://www.michelhiemstra.nl/blog/tag/virtualization/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>
	</channel>
</rss>

