{"id":29,"date":"2012-03-01T02:20:22","date_gmt":"2012-03-01T02:20:22","guid":{"rendered":"http:\/\/www.linuxauthority.com\/wordpress\/?p=29"},"modified":"2012-03-01T02:20:22","modified_gmt":"2012-03-01T02:20:22","slug":"network-install-point-httpd-with-centos-or-rhel6-using-kickstart","status":"publish","type":"post","link":"http:\/\/www.linuxauthority.com\/wordpress\/?p=29","title":{"rendered":"Network install point httpd with Centos or RHEL6 using kickstart"},"content":{"rendered":"\n<!-- ALL ADSENSE ADS DISABLED -->\n<p>Why set up a network install point? So you can do consistent Linux installations. Really so you can do the same installation over and over again and come out with consistent results. Today&#8217;s article is how to set up the install point and have it work. There is credit for the source article below but by itself that article will not work for Centos 6.<\/p>\n<p>The chosen install path is \/var\/www\/html\/centos\/6.2<\/p>\n<p>When it is released Centos 6.3 will go in a directory named 6.3<\/p>\n<p>My source iso images are in a bootable partition, not an lvm mount called \/iso<\/p>\n<p>Partial ll listing:<\/p>\n<p>-rw-r&#8211;r&#8211;. 1 root\u00a0\u00a0 root\u00a0\u00a0 4423129088 Dec 15 20:50 CentOS-6.2-x86_64-bin-DVD1.iso<br \/>\n-rw-r&#8211;r&#8211;. 1 root\u00a0\u00a0 root\u00a0\u00a0 1317967872 Dec 15 20:50 CentOS-6.2-x86_64-bin-DVD2.iso<\/p>\n<p>&nbsp;<\/p>\n<pre><strong>mount -o loop \/iso\/CentOS-6.2-x86_64-bin-DVD1.iso \/mnt<\/strong>\r\n# The file name does not matter a bit. Just use the one you have downloaded.\r\n# Make sure nothing is already mounted on \/mnt folder<\/pre>\n<p>Copy the install point to your target directory.<\/p>\n<pre><strong>cp -rvf \/mnt\/* \/var\/www\/html\/centos\/6.2<\/strong><\/pre>\n<p>This will miss two files, .discinfo and .treeinfo which kickstart needs to work right.<\/p>\n<pre><strong><strong>cp \/mnt\/.discinfo \/var\/www\/html\/centos\/6.2 <\/strong><\/strong><\/pre>\n<pre><strong><strong><strong><strong>cp \/mnt\/.treeinfo \/var\/www\/html\/centos\/6.2 <\/strong><\/strong><\/strong><\/strong>What the install depot should look like:\r\n<strong> <\/strong>umount and repeat for DVD2<strong> ls -lart \/var\/www\/html\/centos\/6.2<\/strong>\r\n\r\nOutput:\r\n[root@solaria 6.2]# ls -lart \/var\/www\/html\/centos\/6.2\r\ntotal 536\r\ndrwxr-xr-x. 3 root root\u00a0\u00a0 4096 Feb 21 20:52 EFI\r\n-rw-r--r--. 1 root root\u00a0 18009 Feb 21 20:52 GPL\r\ndrwxr-xr-x. 3 root root\u00a0\u00a0 4096 Feb 21 20:52 images\r\ndrwxr-xr-x. 2 root root\u00a0\u00a0 4096 Feb 21 20:52 isolinux\r\n-rw-r--r--. 1 root root\u00a0\u00a0 1354 Feb 21 20:53 RELEASE-NOTES-en-US.html\r\n-rw-r--r--. 1 root root\u00a0\u00a0\u00a0\u00a0 14 Feb 21 20:54 CentOS_BuildTag\r\n-rw-r--r--. 1 root root\u00a0\u00a0\u00a0 212 Feb 21 20:54 EULA\r\ndrwxr-xr-x. 2 root root 450560 Feb 21 20:55 Packages\r\n-rw-r--r--. 1 root root\u00a0\u00a0 1706 Feb 21 20:55 RPM-GPG-KEY-CentOS-6\r\n-rw-r--r--. 1 root root\u00a0\u00a0 1730 Feb 21 20:55 RPM-GPG-KEY-CentOS-Debug-6\r\n-rw-r--r--. 1 root root\u00a0\u00a0 1730 Feb 21 20:55 RPM-GPG-KEY-CentOS-Security-6\r\n-rw-r--r--. 1 root root\u00a0\u00a0 1734 Feb 21 20:55 RPM-GPG-KEY-CentOS-Testing-6\r\n-r--r--r--. 1 root root\u00a0\u00a0 2056 Feb 21 20:55 TRANS.TBL\r\ndrwxr-xr-x. 3 root root\u00a0\u00a0 4096 Feb 22 21:51 ..\r\n-rw-r--r--. 1 root root\u00a0\u00a0\u00a0\u00a0 31 Feb 23 22:22 .discinfo\r\n-rw-r--r--. 1 root root\u00a0\u00a0\u00a0 338 Feb 23 22:22 .treeinfo\r\n-rw-r--r--. 1 root root\u00a0\u00a0 2952 Feb 28 20:05 mars-ks.cfg\r\n-rw-r--r--. 1 root root\u00a0\u00a0 2975 Feb 28 20:05 columbia-ks.cfg\r\n-rw-r--r--. 1 root root\u00a0\u00a0 2975 Feb 28 20:33 pacifica-ks.cfg\r\ndrwxr-xr-x. 7 root root\u00a0\u00a0 4096 Feb 28 20:33 .\r\ndrwxr-xr-x. 3 root root\u00a0\u00a0 4096 Feb 29 20:12 repodata\r\n\r\n<strong><strong><strong><strong><\/strong><\/strong><\/strong><\/strong><\/pre>\n<pre>for the install from kickstart to work, you will need to update the repodata and create the group information to avoid some nasty install issues that will frustrate you a lot.\r\n<strong> cd \/var\/www\/html\/centos\/6.2<\/strong><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>createrepo -u -g \/var\/www\/html\/centos\/6.2\/repodata\/<\/strong><\/p>\n<p>Output<\/p>\n<p>[root@solaria 6.2]# createrepo -u -g \/var\/www\/html\/centos\/6.2\/repodata\/<\/p>\n<p>Saving Primary metadata<br \/>\nSaving file lists metadata<br \/>\nSaving other metadata<\/p>\n<p>&nbsp;<\/p>\n<p>Source material: <a title=\"Source material came from here.\" href=\"http:\/\/diznix.com\/articles\/installing-linux-via-the-network\/\">http:\/\/diznix.com\/articles\/installing-linux-via-the-network\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why set up a network install point? So you can do consistent Linux installations. Really so you can do the same installation over and over again and come out with consistent results. Today&#8217;s article is how to set up the install point and have it work. There is credit for the source article below but [&hellip;]<\/p>\n<a role=\"link\" class=\"rtp-readmore\" title=\"Read more on Network install point httpd with Centos or RHEL6 using kickstart\" href=\"http:\/\/www.linuxauthority.com\/wordpress\/?p=29\" rel=\"nofollow\">Read More &rarr;<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,21,23],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-networking","category-systems-administration","category-virtualization"],"_links":{"self":[{"href":"http:\/\/www.linuxauthority.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/29"}],"collection":[{"href":"http:\/\/www.linuxauthority.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.linuxauthority.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.linuxauthority.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.linuxauthority.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29"}],"version-history":[{"count":7,"href":"http:\/\/www.linuxauthority.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":36,"href":"http:\/\/www.linuxauthority.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/29\/revisions\/36"}],"wp:attachment":[{"href":"http:\/\/www.linuxauthority.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.linuxauthority.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.linuxauthority.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}