Re: RHEL 7 problems.
"Mr. Pushpendra Chavan" <[email protected]> Wed, 8 Jun 2016 18:11:01 +0530
| Newsgroups | gmane.linux.redhat.kickstart.general |
|---|---|
| Message-ID | <CADEOTdEKKsy5jH6N02y12o_Zmc6sCyiqeCiBRPafZ_EZ1sDZrA@mail.gmail.com> |
--===============6285655991671022370==
Content-Type: multipart/alternative; boundary=001a1144b7d0438b690534c39e8d
--001a1144b7d0438b690534c39e8d
Content-Type: text/plain; charset=UTF-8
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 <========== 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=initrd.img inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64
inst.ks=cdrom:/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 -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 few
more steps added/replaced.
Regards,
Pushpendra Chavan.
--001a1144b7d0438b690534c39e8d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif;font-size:small;color:rgb(39,78,19)">Hello,<br><br></div=
><div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-ser=
if;font-size:small;color:rgb(39,78,19)">Here are the steps which I follow t=
o 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 a=
t some location:<br><br><span style=3D"font-family:tahoma,sans-serif">=C2=
=A0=C2=A0=C2=A0 # mount -o loop /path/to/rhel-server-7.2-x86_64-dvd.iso /mn=
t</span><br><br>2. Then create a directory and copy all the contents of the=
ISO into the same.<br><br><span style=3D"font-family:tahoma,sans-serif">=
=C2=A0=C2=A0=C2=A0 # mkdir /tmp/rhel7<br>=C2=A0=C2=A0=C2=A0 # shopt -s dotg=
lob<br>=C2=A0=C2=A0=C2=A0 # cp -avRf /mnt/* /tmp/rhel7</span><br><br>3. Ver=
ify that all hidden files like .treeinfo are there in /tmp/rhel7<br><br><sp=
an style=3D"font-family:tahoma,sans-serif">=C2=A0=C2=A0=C2=A0 # cd /tmp/rhe=
l7<br>=C2=A0=C2=A0=C2=A0 #=C2=A0 ls -a</span><br><br>4. Get the kickstart f=
ile and rename it to ks.cfg<br><br><span style=3D"font-family:tahoma,sans-s=
erif">=C2=A0=C2=A0=C2=A0 # cd /tmp/rhel7<br>=C2=A0=C2=A0=C2=A0 # wget <a hr=
ef=3D"ftp://192.168.122.254/rhel7/ks.cfg">ftp://192.168.122.254/rhel7/ks.cf=
g</a> </span><=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D or simply copy your kicksta=
rt file<br><br>5. Confirm the LABEL of the DVD iso.<br><br><span style=3D"f=
ont-family:tahoma,sans-serif">=C2=A0=C2=A0=C2=A0 # blkid /path/to/rhel-serv=
er-7.2-x86_64-dvd.iso </span><br><br>6. Add the stanza in /tmp/rhel7/isolin=
ux/isolinux.cfg file as follows.<br><br><span style=3D"font-family:tahoma,s=
ans-serif">#######################################<br>label kickstart<br>=
=C2=A0 menu label ^Kickstart Installation of RHEL7.2<br>=C2=A0 kernel vmlin=
uz<br>=C2=A0 append initrd=3Dinitrd.img inst.stage2=3Dhd:LABEL=3DRHEL-7.2\x=
20Server.x86_64 inst.ks=3Dcdrom:/ks.cfg<br>################################=
#######</span><br><br>Make sure that the stanza has inst.stage2 and the cor=
rect label.<br><br>7. Now, save the file and create the ISO as follows.<br>=
<br><span style=3D"font-family:tahoma,sans-serif">=C2=A0=C2=A0=C2=A0 # mkis=
ofs -J -T -o /tmp/rhel7test.iso -b isolinux/isolinux.bin -c isolinux/<a hre=
f=3D"http://boot.cat">boot.cat</a> -no-emul-boot -boot-load-size 4 -boot-in=
fo-table -R -m TRANS.TBL -graft-points -V "RHEL-7.2 Server.x86_64"=
; /tmp/rhel7/</span><br><br>The ISO /tmp/rhel7test.iso will be bootable. Th=
is will be for Legacy Boot only, for UEFI boot, the procedure will be a lit=
tle bit different. Just few more steps added/replaced.<br><br></div><div cl=
ass=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;font-=
size:small;color:rgb(39,78,19)">Regards,<br></div><div class=3D"gmail_defau=
lt" style=3D"font-family:arial,helvetica,sans-serif;font-size:small;color:r=
gb(39,78,19)">Pushpendra Chavan.<br></div><br></div>
--001a1144b7d0438b690534c39e8d--
--===============6285655991671022370==
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
--===============6285655991671022370==--