RE: Re: RHEL 7 problems.
Andrew Simpson <[email protected]> Wed, 8 Jun 2016 09:07:04 -0400
| Newsgroups | gmane.linux.redhat.kickstart.general |
|---|---|
| Message-ID | <CAFzrdOwmJ62N3Ozz70kOeCVntfjf2F-kH-tUpzbrLVe+QAaNKA@mail.gmail.com> |
--===============7758500145618223488== Content-Type: multipart/alternative; boundary=94eb2c056f127203900534c3fb5e --94eb2c056f127203900534c3fb5e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable No. and you might want to use genisoimage going forward. On Jun 8, 2016 9:05 AM, "Hearn, Stan J." <[email protected]> wrote: > Do I have to build the ISO on a RHEL 7 system? > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Mr. Pushpendra Chavan > *Sent:* Wednesday, June 08, 2016 8:41 AM > *To:* Discussion list about Kickstart > *Subject:* [EXTERNAL] Re: RHEL 7 problems. > > > > Hello, > > Here are the steps which I follow to modify my ISO for adding Kickstart, > you might want to give it a try. One can run these steps on RHEL7/CentOS7 > machine. > > 1. Mount the DVD iso at some location: > > # mount -o loop /path/to/rhel-server-7.2-x86_64-dvd.iso /mnt > > 2. Then create a directory and copy all the contents of the ISO into the > same. > > # mkdir /tmp/rhel7 > # shopt -s dotglob > # cp -avRf /mnt/* /tmp/rhel7 > > 3. Verify that all hidden files like .treeinfo are there in /tmp/rhel7 > > # cd /tmp/rhel7 > # ls -a > > 4. Get the kickstart file and rename it to ks.cfg > > # cd /tmp/rhel7 > # wget ftp://192.168.122.254/rhel7/ks.cfg <=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D or simply copy > your kickstart file > > 5. Confirm the LABEL of the DVD iso. > > # blkid /path/to/rhel-server-7.2-x86_64-dvd.iso > > 6. Add the stanza in /tmp/rhel7/isolinux/isolinux.cfg file as follows. > > ####################################### > label kickstart > menu label ^Kickstart Installation of RHEL7.2 > kernel vmlinuz > append initrd=3Dinitrd.img inst.stage2=3Dhd:LABEL=3DRHEL-7.2\x20Server.= x86_64 > inst.ks=3Dcdrom:/ks.cfg > ####################################### > > Make sure that the stanza has inst.stage2 and the correct label. > > 7. Now, save the file and create the ISO as follows. > > # mkisofs -J -T -o /tmp/rhel7test.iso -b isolinux/isolinux.bin -c > isolinux/boot.cat > <http://secure-web.cisco.com/1UMmCKqlVs5S02IVStJ2oWf5O2EAILD6pDZSIRHEYfHn= X1NT0NI0br2PNX4vXs4STSwWWTwhuAANnKzx2UK3KCuZIFO4KNRwSnfrdkVhxA_i-zlra-ffDUB= uKkdidpZest4x1YnWOuItfMbvoXPN6UDyGYl-hRMoCwGIuWUW39FL8x8jRlaLfyUuywEXebUncW= Yc_4f8qAi3_whsHnUh5pT-zL4kMrp18NTNHs4uqd3OSW2LUShL2htSsA7bva4zr/http%3A%2F%= 2Fboot.cat> > -no-emul-boot -boot-load-size 4 -boot-info-table -R -m TRANS.TBL > -graft-points -V "RHEL-7.2 Server.x86_64" /tmp/rhel7/ > > The ISO /tmp/rhel7test.iso will be bootable. This will be for Legacy Boot > only, for UEFI boot, the procedure will be a little bit different. Just f= ew > more steps added/replaced. > > Regards, > > Pushpendra Chavan. > > > > _______________________________________________ > Kickstart-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/kickstart-list > --94eb2c056f127203900534c3fb5e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr">No.=C2=A0=C2=A0 and you might want to use genisoimage going = forward.=C2=A0=C2=A0 </p> <div class=3D"gmail_quote">On Jun 8, 2016 9:05 AM, "Hearn, Stan J.&quo= t; <<a href=3D"mailto:[email protected]">[email protected]</a>&g= t; wrote:<br type=3D"attribution"><blockquote class=3D"gmail_quote" style= =3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div lang=3D"EN-US" link=3D"blue" vlink=3D"purple"> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">Do I have to build the IS= O on a RHEL 7 system?<u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d"><u></u>=C2=A0<u></u></spa= n></p> <p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"= ;Tahoma","sans-serif"">From:</span></b><span style=3D"font-s= ize:10.0pt;font-family:"Tahoma","sans-serif""> <a href= =3D"mailto:[email protected]" target=3D"_blank">kickstart-l= [email protected]</a> [mailto:<a href=3D"mailto:kickstart-list-bounces= @redhat.com" target=3D"_blank">[email protected]</a>] <b>On Behalf Of </b>Mr. Pushpendra Chavan<br> <b>Sent:</b> Wednesday, June 08, 2016 8:41 AM<br> <b>To:</b> Discussion list about Kickstart<br> <b>Subject:</b> [EXTERNAL] Re: RHEL 7 problems.<u></u><u></u></span></p> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> <div> <div> <p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><span style=3D"font-f= amily:"Arial","sans-serif";color:#274e13">Hello,<u></u>= <u></u></span></p> </div> <div> <p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><span style=3D"font-f= amily:"Arial","sans-serif";color:#274e13">Here are the = steps which I follow to modify my ISO for adding Kickstart, you might want = to give it a try. One can run these steps on RHEL7/CentOS7 machine.<br> <br> 1. Mount the DVD iso at some location:<br> <br> </span><span style=3D"font-family:"Tahoma","sans-serif"= ;color:#274e13">=C2=A0=C2=A0=C2=A0 # mount -o loop /path/to/rhel-server-7.2= -x86_64-dvd.iso /mnt</span><span style=3D"font-family:"Arial",&qu= ot;sans-serif";color:#274e13"><br> <br> 2. Then create a directory and copy all the contents of the ISO into the sa= me.<br> <br> </span><span style=3D"font-family:"Tahoma","sans-serif"= ;color:#274e13">=C2=A0=C2=A0=C2=A0 # mkdir /tmp/rhel7<br> =C2=A0=C2=A0=C2=A0 # shopt -s dotglob<br> =C2=A0=C2=A0=C2=A0 # cp -avRf /mnt/* /tmp/rhel7</span><span style=3D"font-f= amily:"Arial","sans-serif";color:#274e13"><br> <br> 3. Verify that all hidden files like .treeinfo are there in /tmp/rhel7<br> <br> </span><span style=3D"font-family:"Tahoma","sans-serif"= ;color:#274e13">=C2=A0=C2=A0=C2=A0 # cd /tmp/rhel7<br> =C2=A0=C2=A0=C2=A0 #=C2=A0 ls -a</span><span style=3D"font-family:"Ari= al","sans-serif";color:#274e13"><br> <br> 4. Get the kickstart file and rename it to ks.cfg<br> <br> </span><span style=3D"font-family:"Tahoma","sans-serif"= ;color:#274e13">=C2=A0=C2=A0=C2=A0 # cd /tmp/rhel7<br> =C2=A0=C2=A0=C2=A0 # wget <a href=3D"ftp://192.168.122.254/rhel7/ks.cfg" ta= rget=3D"_blank">ftp://192.168.122.254/rhel7/ks.cfg</a> </span><span style=3D"font-family:"Arial","sans-serif";= color:#274e13"><=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D or simply copy your kicks= tart file<br> <br> 5. Confirm the LABEL of the DVD iso.<br> <br> </span><span style=3D"font-family:"Tahoma","sans-serif"= ;color:#274e13">=C2=A0=C2=A0=C2=A0 # blkid /path/to/rhel-server-7.2-x86_64-= dvd.iso </span><span style=3D"font-family:"Arial","sans-serif";= color:#274e13"><br> <br> 6. Add the stanza in /tmp/rhel7/isolinux/isolinux.cfg file as follows.<br> <br> </span><span style=3D"font-family:"Tahoma","sans-serif"= ;color:#274e13">#######################################<br> label kickstart<br> =C2=A0 menu label ^Kickstart Installation of RHEL7.2<br> =C2=A0 kernel vmlinuz<br> =C2=A0 append initrd=3Dinitrd.img inst.stage2=3Dhd:LABEL=3DRHEL-7.2\x20Serv= er.x86_64 inst.ks=3Dcdrom:/ks.cfg<br> #######################################</span><span style=3D"font-family:&q= uot;Arial","sans-serif";color:#274e13"><br> <br> Make sure that the stanza has inst.stage2 and the correct label.<br> <br> 7. Now, save the file and create the ISO as follows.<br> <br> </span><span style=3D"font-family:"Tahoma","sans-serif"= ;color:#274e13">=C2=A0=C2=A0=C2=A0 # mkisofs -J -T -o /tmp/rhel7test.iso -b= isolinux/isolinux.bin -c isolinux/<a href=3D"http://secure-web.cisco.com/1= UMmCKqlVs5S02IVStJ2oWf5O2EAILD6pDZSIRHEYfHnX1NT0NI0br2PNX4vXs4STSwWWTwhuAAN= nKzx2UK3KCuZIFO4KNRwSnfrdkVhxA_i-zlra-ffDUBuKkdidpZest4x1YnWOuItfMbvoXPN6UD= yGYl-hRMoCwGIuWUW39FL8x8jRlaLfyUuywEXebUncWYc_4f8qAi3_whsHnUh5pT-zL4kMrp18N= TNHs4uqd3OSW2LUShL2htSsA7bva4zr/http%3A%2F%2Fboot.cat" target=3D"_blank">bo= ot.cat</a> -no-emul-boot -boot-load-size 4 -boot-info-table -R -m TRANS.TBL -graft-po= ints -V "RHEL-7.2 Server.x86_64" /tmp/rhel7/</span><span style=3D= "font-family:"Arial","sans-serif";color:#274e13"><br> <br> The ISO /tmp/rhel7test.iso will be bootable. This will be for Legacy Boot o= nly, for UEFI boot, the procedure will be a little bit different. Just few = more steps added/replaced.<u></u><u></u></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-family:"Arial","s= ans-serif";color:#274e13">Regards,<u></u><u></u></span></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-family:"Arial","s= ans-serif";color:#274e13">Pushpendra Chavan.<u></u><u></u></span></p> </div> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> </div> </div> </div> <br>_______________________________________________<br> Kickstart-list mailing list<br> <a href=3D"mailto:[email protected]">[email protected]</a><= br> <a href=3D"https://www.redhat.com/mailman/listinfo/kickstart-list" rel=3D"n= oreferrer" target=3D"_blank">https://www.redhat.com/mailman/listinfo/kickst= art-list</a><br></blockquote></div> --94eb2c056f127203900534c3fb5e-- --===============7758500145618223488== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kickstart-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/kickstart-list --===============7758500145618223488==--