<?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>info.michael-simons.eu &#187; OEL5</title>
	<atom:link href="http://info.michael-simons.eu/tag/oel5/feed/" rel="self" type="application/rss+xml" />
	<link>http://info.michael-simons.eu</link>
	<description>Just another nerd blog</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:26:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Different day, same shit, today: Java 5 on Oracle Enterprise Linux 5</title>
		<link>http://info.michael-simons.eu/2009/01/19/different-day-same-shit-today-java-5-on-oracle-enterprise-linux-5/</link>
		<comments>http://info.michael-simons.eu/2009/01/19/different-day-same-shit-today-java-5-on-oracle-enterprise-linux-5/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 12:00:17 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[OEL5]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/?p=255</guid>
		<description><![CDATA[Worlds collide: Oracle and Sun JDK. Perfect start to ruin a not so bad Monday morning. Background: Need to have a Tomcat Server deployed on a Oracle Enterprise Linux 5 system. I was happy, when i saw a tomcat5 package in the repositories. Great, i thought. All i need. Well. Not. Under Windows you&#8217;ll get [...]]]></description>
			<content:encoded><![CDATA[<p>Worlds collide: Oracle and Sun JDK. Perfect start to ruin a not so bad Monday morning.</p>
<p>Background: Need to have a <a href="http://tomcat.apache.org/">Tomcat Server</a> deployed on a <a href="http://www.oracle.com/technologies/linux/index.html">Oracle Enterprise Linux 5</a> system.</p>
<p>I was happy, when i saw a tomcat5 package in the repositories. Great, i thought. All i need. Well. Not.</p>
<p>Under Windows you&#8217;ll get between one and ten JVM versions installed with on Oracle product (slight exaggerated), within the OEL5 there was only one ancient 1.4.2 JDK. *sigh* Did i mention that  the application that is supposed to run on that thing uses a buttload of Java 5 features?</p>
<p>&#8220;yum search java-&#8221;&#8230; No Java 5. WtF? </p>
<p>There is no Java 5.</p>
<p>Again, do it yourself:</p>
<p><a href="http://wiki.centos.org/HowTos/JavaOnCentOS">This is a nice entry</a> that describes howto build rpms for the &#8220;official&#8221; Sun Java 5 jdk.</p>
<p>I used the following steps to build my rpms:</p>
<ul>
<li>Downloaded this <a href="http://mirrors.dotsrc.org/jpackage/1.7/generic/SRPMS.non-free/java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm">rpm</a></li>
<li>Downloaded <em>jdk-1_5_0_15-linux-i586.bin</em> from the <a href="http://java.sun.com/products/archive/">Sun JDK archive page</a></li>
<li>Put the later one into <em>/usr/src/redhat/SOURCES/</em></li>
<li>Built the rpms with <em>rpmbuild &#8211;rebuild java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm</em>. If rpmbuild is not installed, it&#8217;s hidden in the package <em>rpm-build</em>, not rpmbuild.</li>
<li>Installed missing libXp</li>
<li>Installed the rpms:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>i586<span style="color: #000000; font-weight: bold;">/</span>java-1.5.0-sun-1.5.0.15-1jpp.i586.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>i586<span style="color: #000000; font-weight: bold;">/</span>java-1.5.0-sun-devel-1.5.0.15-1jpp.i586.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>i586<span style="color: #000000; font-weight: bold;">/</span>java-1.5.0-sun-src-1.5.0.15-1jpp.i586.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>i586<span style="color: #000000; font-weight: bold;">/</span>java-1.5.0-sun-demo-1.5.0.15-1jpp.i586.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>i586<span style="color: #000000; font-weight: bold;">/</span>java-1.5.0-sun-plugin-1.5.0.15-1jpp.i586.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>i586<span style="color: #000000; font-weight: bold;">/</span>java-1.5.0-sun-fonts-1.5.0.15-1jpp.i586.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>i586<span style="color: #000000; font-weight: bold;">/</span>java-1.5.0-sun-alsa-1.5.0.15-1jpp.i586.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>i586<span style="color: #000000; font-weight: bold;">/</span>java-1.5.0-sun-jdbc-1.5.0.15-1jpp.i586.rpm</pre></div></div>

</li>
<li>Last step: Choose the right java version with <em>alternatives &#8211;config java</em></li>
</ul>
<p>After that, everything could be fine. Well, it wasn&#8217;t:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sun.misc.InvalidJarIndexException: Invalid index</pre></div></div>

<p>Jehova! Finally not a NPE but something new, at least to me. Sometimes i wonder why i always run into bugs like <a href="http://forums.fedoraforum.org/showthread.php?p=802366">these</a>.</p>
<p>Some script changes and repackages all jar files in some weird ways so that a standard JDK has funny problems. </p>
<p>My solution to it: Reindex everything in <em>/usr/share/java</em> after you&#8217;ve chosen your newly installed java with the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-iname</span> <span style="color: #ff0000;">&quot;jakarta*commons*.jar&quot;</span> <span style="color: #660033;">-exec</span> jar <span style="color: #660033;">-i</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p>I opted to reindex only the jakarta commons files, that got Tomcat up and running with Java 5.</p>
<p>One last note: The <em>/usr/bin/dtomcat5</em> is broken imho, at least when run from /etc/init.d/tomcat5. In ignores <em>/etc/tomcat5/tomcat5.conf</em> and therefore cannot stop Tomcat.</p>
<p>My solution: Replace</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$CATALINA_HOME</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">TOMCAT_CFG</span>=<span style="color: #ff0000;">&quot;/etc/tomcat5/tomcat5.conf&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>(in line 55 on my setup) with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$CATALINA_HOME</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">TOMCAT_CFG</span>=<span style="color: #ff0000;">&quot;/etc/tomcat5/tomcat5.conf&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TOMCAT_CFG</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> . <span style="color: #ff0000;">&quot;<span style="color: #007800;">${TOMCAT_CFG}</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>and remove</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$CATALINA_HOME</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TOMCAT_CFG</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> . <span style="color: #ff0000;">&quot;<span style="color: #007800;">${TOMCAT_CFG}</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>(in line 105 on my setup).</p>
<p>I wonder why simple things like these always are a pain in the ass. Stupid nuisances that keeps people from getting their work done. *sigh* Not a good start for the week.</p>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=255&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_255" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2009/01/19/different-day-same-shit-today-java-5-on-oracle-enterprise-linux-5/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Notes on RedHat / Oracle Enterprise Linux, ADS und Samba</title>
		<link>http://info.michael-simons.eu/2008/01/17/notes-on-redhat-oracle-enterprise-linux-ads-und-samba/</link>
		<comments>http://info.michael-simons.eu/2008/01/17/notes-on-redhat-oracle-enterprise-linux-ads-und-samba/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 12:33:27 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Shortcuts]]></category>
		<category><![CDATA[OEL5]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/2008/01/17/notes-on-redhat-oracle-enterprise-linux-ads-und-samba/</guid>
		<description><![CDATA[Recently i needed windows clients to access a directory on the database server from which CLOBs where created. Since the server is an Oracle Enterprise Linux, i could follow the steps explained behind the following link to get Samba up and running with the Active Directory run by a Windows 2k3 server: Which steps must [...]]]></description>
			<content:encoded><![CDATA[<p>Recently i needed windows clients to access a directory on the database server from which CLOBs where created. Since the server is an Oracle Enterprise Linux, i could follow the steps explained behind the following link to get Samba up and running with the Active Directory run by a Windows 2k3 server:</p>
<p><a href="http://wiki.samba.org/index.php/Samba_&#038;_Active_Directory#system-Config-authentication">Which steps must be done to run Samba with AD-Integration</a></p>
<p>In short:</p>
<p>Setup Kerberos:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>logging<span style="color: #7a0874; font-weight: bold;">&#93;</span>
default = FILE:<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>krb5libs.log
kdc = FILE:<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>krb5kdc.log
admin_server = FILE:<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>kadmind.log
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>libdefaults<span style="color: #7a0874; font-weight: bold;">&#93;</span>
default_realm = WINDOWS.JARA23.CO.UK
dns_lookup_realm = <span style="color: #c20cb9; font-weight: bold;">false</span>
dns_lookup_kdc = <span style="color: #c20cb9; font-weight: bold;">false</span>
ticket_lifetime = 24h
forwardable = <span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>realms<span style="color: #7a0874; font-weight: bold;">&#93;</span>
WINDOWS.JARA23.CO.UK = <span style="color: #7a0874; font-weight: bold;">&#123;</span>
   kdc = server.windows.jara23.co.uk
   admin_server = server.windows.jara23.co.uk
   default_domain = windows.jara23.co.uk
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>domain_realm<span style="color: #7a0874; font-weight: bold;">&#93;</span>
.kerberos.server = WINDOWS.JARA23.CO.UK
.windows.jara23.co.uk = WINDOWS.JARA23.CO.UK
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>kdc<span style="color: #7a0874; font-weight: bold;">&#93;</span>
profile = <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>kerberos<span style="color: #000000; font-weight: bold;">/</span>krb5kdc<span style="color: #000000; font-weight: bold;">/</span>kdc.conf
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>appdefaults<span style="color: #7a0874; font-weight: bold;">&#93;</span>
pam = <span style="color: #7a0874; font-weight: bold;">&#123;</span>
   debug = <span style="color: #c20cb9; font-weight: bold;">false</span>
   ticket_lifetime = <span style="color: #000000;">36000</span>
   renew_lifetime = <span style="color: #000000;">36000</span>
   forwardable = <span style="color: #c20cb9; font-weight: bold;">true</span>
   krb4_convert = <span style="color: #c20cb9; font-weight: bold;">false</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>Test this with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">kinit admin<span style="color: #000000; font-weight: bold;">@</span>WINDOWS.JARA23.CO.UK</pre></div></div>

<p>After entering a valid password, this command should give no error.</p>
<p>Setup a minimal Samba configuration:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#GLOBAL PARAMETERS</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>global<span style="color: #7a0874; font-weight: bold;">&#93;</span>
   workgroup = MIDGARD
   realm = WINDOWS.JARA23.CO.UK
   preferred master = no
   server string = Linux Test Machine
   security = ADS
   encrypt passwords = <span style="color: #c20cb9; font-weight: bold;">yes</span>
   log level = <span style="color: #000000;">3</span>
   log <span style="color: #c20cb9; font-weight: bold;">file</span> = <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>samba<span style="color: #000000; font-weight: bold;">/%</span>m
   max log <span style="color: #c20cb9; font-weight: bold;">size</span> = <span style="color: #000000;">50</span>
   printcap name = cups
   printing = cups
   winbind enum <span style="color: #c20cb9; font-weight: bold;">users</span> = Yes
   winbind enum <span style="color: #c20cb9; font-weight: bold;">groups</span> = Yes
   winbind use default domain = Yes
   winbind nested <span style="color: #c20cb9; font-weight: bold;">groups</span> = Yes
   winbind separator = +
   idmap uid = <span style="color: #000000;">600</span>-<span style="color: #000000;">20000</span>
   idmap gid = <span style="color: #000000;">600</span>-<span style="color: #000000;">20000</span>
   ;template primary group = <span style="color: #ff0000;">&quot;Domain Users&quot;</span>
   template shell = <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>homes<span style="color: #7a0874; font-weight: bold;">&#93;</span>
   comment = Home Direcotries
   valid <span style="color: #c20cb9; font-weight: bold;">users</span> = <span style="color: #000000; font-weight: bold;">%</span>S
   <span style="color: #c20cb9; font-weight: bold;">read</span> only = No
   browseable = No
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>printers<span style="color: #7a0874; font-weight: bold;">&#93;</span>
   comment = All Printers
   path = <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>spool<span style="color: #000000; font-weight: bold;">/</span>cups
   browseable = no
   printable = <span style="color: #c20cb9; font-weight: bold;">yes</span>
   guest ok = <span style="color: #c20cb9; font-weight: bold;">yes</span></pre></div></div>

<p>Enable winbind, pam and other parameters with <i>system-config-authentication</i>.</p>
<p>Start Samba and join the domain with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">net ads <span style="color: #c20cb9; font-weight: bold;">join</span> <span style="color: #660033;">-U</span> Administrator</pre></div></div>

<p class="akst_link"><a href="http://info.michael-simons.eu/?p=141&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_141" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2008/01/17/notes-on-redhat-oracle-enterprise-linux-ads-und-samba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Oracle Enterprise Linux 5 as a VM in Oracle VM Server</title>
		<link>http://info.michael-simons.eu/2007/12/12/installing-oracle-enterprise-linux-5-as-a-vm-in-oracle-vm-server/</link>
		<comments>http://info.michael-simons.eu/2007/12/12/installing-oracle-enterprise-linux-5-as-a-vm-in-oracle-vm-server/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 13:34:07 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[OEL5]]></category>
		<category><![CDATA[Oracle VM]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/2007/12/12/installing-oracle-enterprise-linux-5-as-a-vm-in-oracle-vm-server/</guid>
		<description><![CDATA[Installing the latest incarnation of Oracle Enterprise Linux 5 as a paravirtualized machine in Oracle VM Server is a bit tricky. The OEL5 is delivered as 5 iso files, cd images they are. The Oracle VM Manager is only able to install the patched paravirtualized guest system from one installation medium. Damn it, they praise [...]]]></description>
			<content:encoded><![CDATA[<p>Installing the latest incarnation of Oracle Enterprise Linux 5 as a paravirtualized machine in Oracle VM Server is a bit tricky. </p>
<p>The OEL5 is delivered as 5 iso files, cd images they are. The Oracle VM Manager is only able to install the patched paravirtualized guest system from one installation medium. Damn it, they praise their system as blazing fast under their own VM and didn&#8217;t manage to deliver the stuff as one dvd image?</p>
<p>After a lot of googling i found the following <a href="http://isoredirect.centos.org/centos/build/mkdvdiso.sh">script</a>. Its a CentOS script to combine their installation mediums into on, big iso file. I thought, give it a try as CentOS is based on RedHat as well is OEL5. It ate a lot of diskspace but in the end, i got a working DVD that i mounted via the loop device.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> rw,loop <span style="color: #000000; font-weight: bold;">/</span>OVS<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>oel5dvd.iso <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>oel5<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>The next step requires the installation medium available either via http, ftp or nfs. Starting nfsd and exporting the fs is done easily via:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc <span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nfs start
exportfs <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>oel5<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>I had all the iso and the resulting dvd on my Oracle VM Server. The default installation is rather strict with the iptable rules. </p>
<p>Although Oracle VM Manager will except an nfs://127.0.0.1/&#8230; path and also do the initial patching, the installation will fail afterwards.</p>
<p>To get NFS working, i followed <a href="http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f7/howto/nfs.html">these</a> instructions to pin all needed ports and open them in iptables.</p>
<p>Installation itself was after that straigt forward. I deselected all prepackaged environments since the server was destined to be a database server. </p>
<p>I didn&#8217;t realize that this was going to be a problem.</p>
<p>There is no centralized repository in the RHEL or OEL world like the one in Debian or Ubuntu. Either hunt the rpms down or subscribe to the services both manufactures offers, in my case the Oracle Unbreakable Linux Network. Hello? I just wanted to install a gcc, for example.</p>
<p>Their is no possibility in the gui to reuse your installation medium as a repository for &#8220;YUM&#8221; or &#8220;Pirut&#8221;.</p>
<p>Bummer! After a lot of searching i found <a href="http://www.markwilson.co.uk/blog/2007/07/trying-to-get-red-hat-enterprise-linux-to-accept-a-dvd-based-repository.htm">this</a>, but this method didn&#8217;t work for me. Nevertheless, i&#8217;ve learnd how to configure repositories for yum. Pirut did find the installation medium but wasn&#8217;t able to install a package due to an &#8220;uropen error unknown url type: media&#8221;.</p>
<p>My solution was to copy all rpms from the /Server directories of the original installation disk along with &#8220;comps-rhel5-server-core.xml&#8221; from the first disc found in /Server/repodata/ to disk, running</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">createrepo <span style="color: #660033;">-g</span> comps-rhel5-server-core.xml .</pre></div></div>

<p>and finally exporting this directory as a nfs share, configuring it to yum with the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>oel5<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">name</span>=Oracle Enterprise Linux <span style="color: #000000;">5</span>
<span style="color: #007800;">baseurl</span>=<span style="color: #c20cb9; font-weight: bold;">file</span>:<span style="color: #000000; font-weight: bold;">///</span>tmp<span style="color: #000000; font-weight: bold;">/</span>oel5_repository
<span style="color: #007800;">enabled</span>=<span style="color: #000000;">1</span>
<span style="color: #007800;">gpgcheck</span>=<span style="color: #000000;">0</span></pre></div></div>

<p>After a &#8220;yum clean all&#8221;, pirut can add and remove packages from the &#8220;original&#8221; medium without any hassle.</p>
<p>I installed the following packages:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> binutils
yum <span style="color: #c20cb9; font-weight: bold;">install</span> compat-libstdc++
yum <span style="color: #c20cb9; font-weight: bold;">install</span> elfutils-libelf
yum <span style="color: #c20cb9; font-weight: bold;">install</span> elfutils-libelf-devel
yum <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">gcc</span>
yum <span style="color: #c20cb9; font-weight: bold;">install</span> gcc-c++
yum <span style="color: #c20cb9; font-weight: bold;">install</span> glibc
yum <span style="color: #c20cb9; font-weight: bold;">install</span> glibc-common
yum <span style="color: #c20cb9; font-weight: bold;">install</span> glibc-devel
yum <span style="color: #c20cb9; font-weight: bold;">install</span> glibc-headers
yum <span style="color: #c20cb9; font-weight: bold;">install</span> libaio
yum <span style="color: #c20cb9; font-weight: bold;">install</span> libaio-devel
yum <span style="color: #c20cb9; font-weight: bold;">install</span> libgcc
yum <span style="color: #c20cb9; font-weight: bold;">install</span> libstdc++
yum <span style="color: #c20cb9; font-weight: bold;">install</span> libstdc++-devel
yum <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
yum <span style="color: #c20cb9; font-weight: bold;">install</span> sysstat
yum <span style="color: #c20cb9; font-weight: bold;">install</span> unixODBC
yum <span style="color: #c20cb9; font-weight: bold;">install</span> unixODBC-devel</pre></div></div>

<p>preparing the next post which is about installing Oracle 11g on Oracle Enterprise Linux 5.</p>
<h3>Resources:</h3>
<ul>
<li><a href="http://isoredirect.centos.org/centos/build/">CentOS Build and mkdvdiso</a>, <a href="/wp-content/uploads/2007/12/mkdvdiso.sh">local mirror of the mkdvdiso.sh script</li>
<li><a href="http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f7/howto/nfs.html">F7 Network File System (NFS)</a>, <a href="/wp-content/uploads/2007/12/F7_Network_File_System_(NFS).pdf">local PDF Mirror</a></li>
<li><a href="http://www.markwilson.co.uk/blog/2007/07/trying-to-get-red-hat-enterprise-linux-to-accept-a-dvd-based-repository.htm">markwilson.it » Trying to get Red Hat Enterprise Linux to accept a DVD-based repository</a>, <a href="/wp-content/uploads/2007/12/yum_dvd_repository.pdf">local PDF Mirror</a></li>
<li><a href="http://en.wikipedia.org/wiki/Yellow_dog_Updater,_Modified">YUM &#8211; Yellow dog Updater, Modified / Pirut</a></li>
<li>
<li><a href="/wp-content/uploads/2007/12/oel5.repo">Sample YUM DVD Repository file</a></li>
</ul>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=134&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_134" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2007/12/12/installing-oracle-enterprise-linux-5-as-a-vm-in-oracle-vm-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.655 seconds -->

