You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by bu...@apache.org on 2013/01/25 21:35:56 UTC

svn commit: r847959 - in /websites/staging/vcl/trunk/content: ./ confluence_export/adding-xcat-kickstart-based-image.html

Author: buildbot
Date: Fri Jan 25 20:35:56 2013
New Revision: 847959

Log:
Staging update by buildbot for vcl

Modified:
    websites/staging/vcl/trunk/content/   (props changed)
    websites/staging/vcl/trunk/content/confluence_export/adding-xcat-kickstart-based-image.html

Propchange: websites/staging/vcl/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Jan 25 20:35:56 2013
@@ -1 +1 @@
-1438027
+1438691

Modified: websites/staging/vcl/trunk/content/confluence_export/adding-xcat-kickstart-based-image.html
==============================================================================
--- websites/staging/vcl/trunk/content/confluence_export/adding-xcat-kickstart-based-image.html (original)
+++ websites/staging/vcl/trunk/content/confluence_export/adding-xcat-kickstart-based-image.html Fri Jan 25 20:35:56 2013
@@ -78,87 +78,87 @@
   
   <div id="content">
     <h1 class="title">Adding xCAT kickstart based image</h1>
-    <p><a name="AddingxCATkickstartbasedimage-GuideforaddingkickstartinstallsusingxCATtotheVCLdatabase."></a></p>
-<h3 id="guide-for-adding-kickstart-installs-using-xcat-to-the-vcl-database">Guide for adding kickstart installs using xCAT to the VCL database.</h3>
+    <h1 id="guide-for-adding-kickstart-installs-using-xcat-to-the-vcl-database">Guide for adding kickstart installs using xCAT to the VCL database.</h1>
 <p>xCAT is the bare-metal provisioning tool primarily used within VCL. It has
-the ability to install&nbsp;physical nodes with an operating system such
-as; windows Red Hat, CentOS, ESX, SLES on x86 based hardware.&nbsp; This
+the ability to install physical nodes with an operating system such
+as; windows Red Hat, CentOS, ESX, SLES on x86 based hardware. This
 guide will discuss adding support to VCL for kickstart based or diskfull
-installs.&nbsp;</p>
-<p>Prerequisites&nbsp;are that you need to have a working xCAT install. Please
-see xCAT installation guide in order to install and configure xCAT.&nbsp;
-<em> xCAT main page:&nbsp;<a href="http://xcat.sourceforge.net/">http://xcat.sourceforge.net/</a>
-</em> xCAT Getting Started guide:&nbsp;<a href="http://sourceforge.net/apps/mediawiki/xcat/index.php?title=XCAT_Documentation">http://sourceforge.net/apps/mediawiki/xcat/index.php?title=XCAT_Documentation</a></p>
-<p><a name="AddingxCATkickstartbasedimage-KickstartTemplatefiles"></a></p>
-<h3 id="kickstart-template-files">Kickstart Template files</h3>
+installs.</p>
+<p>Prerequisites are that you need to have a working xCAT install. Please
+see xCAT installation guide in order to install and configure xCAT.</p>
+<ul>
+<li>xCAT main page: <a href="http://xcat.sourceforge.net/">http://xcat.sourceforge.net/</a></li>
+<li>xCAT Getting Started guide: <a href="http://sourceforge.net/apps/mediawiki/xcat/index.php?title=XCAT_Documentation">http://sourceforge.net/apps/mediawiki/xcat/index.php?title=XCAT_Documentation</a></li>
+</ul>
+<h2 id="kickstart-template-files">Kickstart Template files</h2>
 <p>The template files used by xCAT reside in
-/opt/xcat/share/xcat/install/<distro>. distro can be rh, centos, fedora,
+/opt/xcat/share/xcat/install/&lt;distro&gt;. distro can be rh, centos, fedora,
 esx, etc. Make sure to have a working template file. There are several
 examples in either of the distro directories that can used as a starting
 point. Once you have a working template, proceed to adding to the VCL
 database.</p>
-<p><a name="AddingxCATkickstartbasedimage-AddingkickstartbasedinstalltotheVCLdatabase&nbsp;"></a></p>
-<h3 id="adding-kickstart-based-install-to-the-vcl-databasewzxhzdk14">Adding kickstart based install to the VCL database&nbsp;</h3>
+<h2 id="adding-kickstart-based-install-to-the-vcl-database">Adding kickstart based install to the VCL database</h2>
 <p>The name of the template file and the image.name must match. VCL uses this
 name to check for and properly load using kickstart method. The xcat name
 will have the .tmpl, for example the vcl image.name entry of
-<em>rhel5-base25-v0</em> the template file for xcat will be
-<em>rhel5-base25-v0.tmpl.</em>&nbsp;</p>
+<strong>rhel5-base25-v0</strong> the template file for xcat will be
+<strong>rhel5-base25-v0.tmpl.</strong></p>
 <p>There are three tables that need to have entries before you can start using
-the image through the VCL web interface. The tables used are:
-<em> image
-</em> imagerevision
-* resource</p>
+the image through the VCL web interface. The tables used are:</p>
+<ul>
+<li>image</li>
+<li>imagerevision</li>
+<li>resource</li>
+</ul>
 <p>Depending on your OS and the version of VCL, you might need to also create
 a new entry in the OS table. An example of adding a new OSid is discussed
 below.</p>
 <p>In our sql statement examples we will use RedHat 5 and the image id of 25
-as above&nbsp;<em>rhel5-base25-v0.</em> &nbsp;In the below sql statement make any
+as above <strong>rhel5-base25-v0.</strong> In the below sql statement make any
 changes as needed such as ownerid, in this example it is set to 1 or the
 admin user id.</p>
-<p>{tip:icon=false}{color:#222222}INSERT INTO <code>image</code> (id, <code>name</code>,
-<code>prettyname</code>, <code>ownerid</code>, <code>platformid</code>, <code>OSid</code>, <code>minram</code>, <code>minprocnumber</code>,
-<code>minprocspeed</code>, <code>minnetwork</code>,{color}
-{color:#222222}<code>reloadtime</code>, <code>deleted</code>, <code>lastupdate</code>, <code>forcheckout</code>,
-<code>maxinitialtime</code>,<code>project</code>, <code>size</code>) VALUES (25, 'rhel5-base25-v0', 'RHEL 5
-base', 1, 1, 19, 1024, 1, 0, 10, 14, 0, NOW(), 1, 0, 'vcl',
-1045);{color}{tip}</p>
-<p>{tip:icon=false}INSERT INTO <code>imagerevision</code> (<code>imageid</code>, <code>revision</code>,
-<code>userid</code>, <code>datecreated</code>, <code>deleted</code>, <code>production</code>,
-<code>comments</code>, <code>imagename</code>) VALUES (25, 0, 1, NOW(), 0, 1, NULL,
-'rhel5-base25-v0');{tip}
-{tip:icon=false}</p>
-<p>{color:#222222}INSERT INTO <code>resource</code> (<code>resourcetypeid</code>, <code>subid</code>) VALUES
-(13, 25);{color}</p>
-<p>{tip} {color:}&nbsp;Again, the xCAT template .tmpl file must match the the
-entry VCL database entry of image.name. &nbsp;{color}
-{color:}{color}
-VCL image.name = rhel5-base25-v0 {color:}xCAT template file name =
-rhel5-base25-v0.tmpl{color}
-{color:}At this point you will be able to manage this image through the VCL
-interface.&nbsp;{color}
-<em> {color:#222222}Go to Manage images&nbsp;{color}
-</em> {color:#222222}Edit image grouping{color}
-<em> {color:#222222}Select image group mapped to load onto your bare-metal blades. See{color} {color:#222222}<a href="https://cwiki.apache.org/VCL/vcl-221-further-steps-if-using-xcat.html">adding computers to VCL</a>
-{color} {color:#222222}if you have not added any&nbsp;physical&nbsp;nodes
-yet.{color}
-</em> {color:#222222}Add '{color}{color:#222222}RHEL 5 base' to the desired
-image group{color}</p>
-<p><a name="AddingxCATkickstartbasedimage-{color:#222222}Testingkickstartfile{color}"></a></p>
-<h3 id="color222222testing-kickstart-filecolor">{color:#222222}Testing kickstart file{color}</h3>
-<p>{color:#222222}Test the load, by either making a reservation for the new
-environment or try to reload
-a&nbsp;{color}{color:#222222}physical&nbsp;node through manage computers
+<div class="codehilite"><pre><span class="n">INSERT</span> <span class="n">INTO</span> <span class="sb">`image`</span> <span class="p">(</span><span class="n">id</span><span class="p">,</span> <span class="sb">`name`</span><span class="p">,</span> <span class="sb">`prettyname`</span><span class="p">,</span> <span class="sb">`ownerid`</span><span class="p">,</span> <span class="sb">`platformid`</span><span class="p">,</span> <span class="sb">`OSid`</span><span class="p">,</span> 
+<span class="sb">`minram`</span><span class="p">,</span> <span class="sb">`minprocnumber`</span><span class="p">,</span> <span class="sb">`minprocspeed`</span><span class="p">,</span> <span class="sb">`minnetwork`</span><span class="p">,</span><span class="sb">`reloadtime`</span><span class="p">,</span> <span class="sb">`deleted`</span><span class="p">,</span> 
+<span class="sb">`lastupdate`</span><span class="p">,</span> <span class="sb">`forcheckout`</span><span class="p">,</span> <span class="sb">`maxinitialtime`</span><span class="p">,</span><span class="sb">`project`</span><span class="p">,</span> <span class="sb">`size`</span><span class="p">)</span> 
+<span class="n">VALUES</span> <span class="p">(</span><span class="mi">25</span><span class="p">,</span> <span class="s">&#39;rhel5-base25-v0&#39;</span><span class="p">,</span> <span class="s">&#39;RHEL 5 base&#39;</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">19</span><span class="p">,</span> <span class="mi">1024</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span> <span class="mi">14</span><span class="p">,</span> 
+<span class="mi">0</span><span class="p">,</span> <span class="n">NOW</span><span class="p">(),</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="s">&#39;vcl&#39;</span><span class="p">,</span> <span class="mi">1045</span><span class="p">);</span>
+
+<span class="o">::</span><span class="p">:</span><span class="n">MySqlLexer</span>
+<span class="n">INSERT</span> <span class="n">INTO</span> <span class="sb">`imagerevision`</span> <span class="p">(</span><span class="sb">`imageid`</span><span class="p">,</span> <span class="sb">`revision`</span><span class="p">,</span> <span class="sb">`userid`</span><span class="p">,</span> <span class="sb">`datecreated`</span><span class="p">,</span> 
+<span class="sb">`deleted`</span><span class="p">,</span> <span class="sb">`production`</span><span class="p">,</span> <span class="sb">`comments`</span><span class="p">,</span> <span class="sb">`imagename`</span><span class="p">)</span> 
+<span class="n">VALUES</span> <span class="p">(</span><span class="mi">25</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="n">NOW</span><span class="p">(),</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="n">NULL</span><span class="p">,</span> <span class="s">&#39;rhel5-base25-v0&#39;</span><span class="p">);</span>
+
+<span class="o">::</span><span class="p">:</span><span class="n">MySqlLexer</span>
+<span class="n">INSERT</span> <span class="n">INTO</span> <span class="sb">`resource`</span> <span class="p">(</span><span class="sb">`resourcetypeid`</span><span class="p">,</span> <span class="sb">`subid`</span><span class="p">)</span> <span class="n">VALUES</span> <span class="p">(</span><span class="mi">13</span><span class="p">,</span> <span class="mi">25</span><span class="p">);</span>
+</pre></div>
+
+
+<p>Again, the xCAT template .tmpl file must match the the
+entry VCL database entry of image.name.</p>
+<p>VCL image.name = <strong>rhel5-base25-v0</strong><br>
+xCAT template file name = <strong>rhel5-base25-v0.tmpl</strong></p>
+<p>At this point you will be able to manage this image through the VCL
+interface.</p>
+<ul>
+<li>Go to Manage images</li>
+<li>Edit image grouping</li>
+<li>Select image group mapped to load onto your bare-metal blades. See 
+<a href="docs/addcomputers.html">Add computers</a> if you have not added any physical nodes
+yet.</li>
+<li>Add <strong>RHEL 5 base</strong> to the desired image group</li>
+</ul>
+<h2 id="testing-kickstart-file">Testing kickstart file</h2>
+<p>Test the load, by either making a reservation for the new
+environment or try to reload a physical node through manage computers
 computer utilities. Watch the vcld.log file to view the processing and to
-debug any issues that may occur.{color}</p>
-<p><a name="AddingxCATkickstartbasedimage-ExtendingtheOStable"></a></p>
-<h3 id="extending-the-os-table">Extending the OS table</h3>
+debug any issues that may occur.</p>
+<h2 id="extending-the-os-table">Extending the OS table</h2>
 <p>If VCL supports the OS, extending the OS table for a new OS is fairly
 straight forward. In this example we will use Red Hat 6.</p>
-<p>{tip:icon=false}INSERT INTO <code>OS</code> (<code>name</code>, <code>prettyname</code>, <code>type</code>,
-<code>installtype</code>, <code>sourcepath</code>, <code>moduleid</code>) VALUES('rhel6','RedHat Enterprise
-6','linux','kickstart','rhel6',(SELECT <code>id</code> FROM <code>module</code> WHERE <code>name</code> LIKE
-'os_linux'));{tip}</p>
+<div class="codehilite"><pre><span class="n">INSERT</span> <span class="n">INTO</span> <span class="sb">`OS`</span> <span class="p">(</span><span class="sb">`name`</span><span class="p">,</span> <span class="sb">`prettyname`</span><span class="p">,</span> <span class="sb">`type`</span><span class="p">,</span> <span class="sb">`installtype`</span><span class="p">,</span> <span class="sb">`sourcepath`</span><span class="p">,</span> 
+<span class="sb">`moduleid`</span><span class="p">)</span> <span class="n">VALUES</span><span class="p">(</span><span class="s">&#39;rhel6&#39;</span><span class="p">,</span><span class="s">&#39;RedHat Enterprise 6&#39;</span><span class="p">,</span><span class="s">&#39;linux&#39;</span><span class="p">,</span><span class="s">&#39;kickstart&#39;</span><span class="p">,</span><span class="s">&#39;rhel6&#39;</span><span class="p">,</span>
+<span class="p">(</span><span class="n">SELECT</span> <span class="sb">`id`</span> <span class="n">FROM</span> <span class="sb">`module`</span> <span class="n">WHERE</span> <span class="sb">`name`</span> <span class="n">LIKE</span> <span class="s">&#39;os_linux&#39;</span><span class="p">));</span>
+</pre></div>
   </div>
   
   <div id="footer">