<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=InstallFilesNewOS</id>
	<title>InstallFilesNewOS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=InstallFilesNewOS"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=InstallFilesNewOS&amp;action=history"/>
	<updated>2026-04-20T10:45:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=InstallFilesNewOS&amp;diff=146&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; === Install files for a new OS === ==== SL5 OS ==== *Connect to quattorrepository.begrid.be *Each directory under /data/html/begrid/install corresponds to an OS+architectu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=InstallFilesNewOS&amp;diff=146&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === Install files for a new OS === ==== SL5 OS ==== *Connect to quattorrepository.begrid.be *Each directory under /data/html/begrid/install corresponds to an OS+architectu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=== Install files for a new OS ===&lt;br /&gt;
==== SL5 OS ====&lt;br /&gt;
*Connect to quattorrepository.begrid.be&lt;br /&gt;
*Each directory under /data/html/begrid/install corresponds to an OS+architecture :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls -al /data/html/begrid/install/&lt;br /&gt;
...&lt;br /&gt;
drwxr-xr-x.  3 apache apache      4096 Nov 18  2010 sl440-x86_64&lt;br /&gt;
drwxr-xr-x.  4 apache apache      4096 Nov 17  2010 sl450-i386&lt;br /&gt;
drwxr-xr-x.  4 apache apache      4096 Nov 18  2010 sl500-i386&lt;br /&gt;
drwxr-xr-x.  5 apache apache      4096 Nov 18  2010 sl500-x86_64&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Let&amp;#039;s we want the install files for SL53 64 bits :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /data/html/begrid/install/&lt;br /&gt;
mkdir sl530-x86_64&lt;br /&gt;
nohup rsync -avSH --delete --exclude=build --exclude=contrib --exclude=isolinux --exclude=RHupdates --exclude=RPM-GPG-KEYs --exclude=sites --exclude=SL.documentation --exclude=updates rsync://rsync.scientificlinux.org/scientific/53/x86_64/ /data/html/begrid/install/sl530-x86_64/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*The directory must be owned by apache :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chown -R apache:apache /data/html/begrid/install/sl530-x86_64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== SL6 OS ====&lt;br /&gt;
The procedure is the same as the one for SL5 OS, except for the rsync. Let&amp;#039;s say we want the install files for SL63 64 bits :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /data/html/begrid/install/&lt;br /&gt;
mkdir sl630-x86_64&lt;br /&gt;
nohup rsync -avkSH --delete rsync://rsync.scientificlinux.org/scientific/6.3/x86_64/os/ /data/html/begrid/install/sl630-x86_64/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== PXE files for a new OS ===&lt;br /&gt;
*Log in on the Quattor client.&lt;br /&gt;
*Let&amp;#039;s say you want to add support for SL53 64 bits :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /osinstall/nbp/sl530_x86_64&lt;br /&gt;
cd /osinstall/nbp/sl530_x86_64&lt;br /&gt;
wget ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/scientific-linux/53/x86_64/images/pxeboot/initrd.img&lt;br /&gt;
wget ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/scientific-linux/53/x86_64/images/pxeboot/vmlinuz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Generation of OS PAN templates ===&lt;br /&gt;
As an example, we will show how to generate OS templates for SL64 :&lt;br /&gt;
*Log in as root on the Quattor repository.&lt;br /&gt;
*In /root/quattor_os_templates, you will find the directories external and misc, containing the tools to generate the templates. These directories were obtained by doing :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /root/quattor_os_templates&lt;br /&gt;
svn co https://svn.lal.in2p3.fr/LCG/QWG/SCDB/trunk/utils/misc&lt;br /&gt;
svn co https://svn.lal.in2p3.fr/LCG/QWG/SCDB/trunk/external&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 In the same location, you must also create the directory where to put the PAN templates :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p /root/quattor_os_templates/sl64_templates/rpms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 Very important : the path of this last directory must end with &amp;quot;rpms&amp;quot;.&lt;br /&gt;
*Copy the file comps.dtd to the repodata directory of the OS installation files :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp /usr/share/doc/comps-extras-17.8/comps.dtd /data/html/begrid/install/sl640-x86_64/repodata/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Go to the misc directory and make sure that the the scripts that will be used have the &amp;quot;x&amp;quot; permission :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod u+x buildOSTemplates&lt;br /&gt;
chmod u+x *.pl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Run the following command :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./buildOSTemplates --compsdir repodata --compsxml comps-sl6-x86_64.xml --debug --rpmdir Packages --scdbroot /root/quattor_os_templates /data/html/begrid/install/sl640-x86_64 /root/quattor_os_templates/sl64_templates/rpms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can file useful information on this page : https://wiki.nikhef.nl/grid/Installing_updates:_OS,_CAs,_Quattor,_VL-e&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>