<div dir="ltr">Hi,<div><br></div><div>Would you let me know how your kickstart file looks like ?</div><div><br></div><div>And also confirm that is your kickstart being picked up by installer ?</div><div><br></div><div>i think you can access and Check the logs on tty3 .</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 29, 2015 at 2:49 PM, Netravali, Ganesh <span dir="ltr"><<a href="mailto:gnetravali@sonusnet.com" target="_blank">gnetravali@sonusnet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi.<br>
<br>
Thanks for your suggestions. That didn't go well. What exactly I am trying is.<br>
<br>
Pre condition.<br>
1. System is installed with rhel version(No specific version).<br>
<br>
Target.<br>
1. Copy the RHEL customized ISO to the system disk and start the installation from that ISO when system boots p next time.<br>
<br>
Procedure followed.<br>
1. Copy the ISO to RHEL preinstalled system.<br>
2. Modified the grub.conf with below lines so that I can boot the system to start the installation.<br>
<span class="">        title RedHat Install<br>
                root (hd0,2)<br>
          kernel /boot/vmlinuz ro root=UUID=9684465d-8ded-43cc-8069-de5ff713dd40  ks=hd:sda2:/ks-sa.cfg repo=/mnt/isodir stage2=hd:sda2:/images/install.img<br>
                initrd /boot/initrd.img<br>
</span>  3. created the tar out of cdrom contents and kept in / dir 3. Below are is the content of kickstart file to copy the repo to tmpfs created out of system RAM.<br>
<span class=""><br>
mount -t tmpfs -o size=1g tmpfs /mnt/isodir mkdir /mnt/isomount<br>
mount /dev/sda2 /mnt/isomount<br>
cd /mnt/isodir<br>
tar -xzvf /mnt/isomount/repo.tgz<br>
umount /dev/sda2<br>
<br>
</span>This is somehow not picking up the ISO since anaconda look for ISO and stage 2  in sda2. Is there any way I can do the installation from tmpfs ?<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888">Ganesh<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:kickstart-list-bounces@redhat.com">kickstart-list-bounces@redhat.com</a> [mailto:<a href="mailto:kickstart-list-bounces@redhat.com">kickstart-list-bounces@redhat.com</a>] On Behalf Of Fisher, Robert L (ROB)<br>
Sent: Tuesday, July 21, 2015 8:06 PM<br>
To: Discussion list about Kickstart<br>
Subject: RE: Install RHEL6 from tmpfs<br>
<br>
Howdy, you might need to clear the disk before you configure it.<br>
<br>
Try adding this line:<br>
clearpart --initlabel --all --drives=sda<br>
<br>
<br>
<br>
Rob Fisher<br>
Verizon<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:kickstart-list-bounces@redhat.com">kickstart-list-bounces@redhat.com</a> [mailto:<a href="mailto:kickstart-list-bounces@redhat.com">kickstart-list-bounces@redhat.com</a>] On Behalf Of Netravali, Ganesh<br>
Sent: Tuesday, July 21, 2015 6:35 AM<br>
To: <a href="mailto:kickstart-list@redhat.com">kickstart-list@redhat.com</a><br>
Subject: Install RHEL6 from tmpfs<br>
<br>
Hi<br>
<br>
I have a situation where I can access the system remotely from BMC and access the console and need to do the automated kickstart installation. Presently system is installed with RHEL6 and followed the below step for hard disk based installation.<br>
<br>
1. Copied automated ks.cfg to vmlinuz, initrd.img and images dir to / folder from ISO.<br>
<br>
Modified the grub.conf with below lines.<br>
<br>
title RedHat Install<br>
        root (hd0,2)<br>
        kernel /boot/vmlinuz ro root=UUID=9684465d-8ded-43cc-8069-de5ff713dd40  ks=hd:sda2:/ks-sa.cfg repo=/mnt/isodir stage2=hd:sda2:/images/install.img<br>
        initrd /boot/initrd.img<br>
<br>
<br>
2. created the tar out of cdrom contents and kept in / dir 3. Below are is the content of kickstart file to copy the repo to tmpfs created out of system RAM.<br>
<br>
harddrive --partition=tmpfs --dir=/mnt/isodir<br>
<br>
<br>
Preinstall section code to create the install repository<br>
<br>
mount -t tmpfs -o size=1g tmpfs /mnt/isodir mkdir /mnt/isomount mount /dev/sda2 /mnt/isomount cd /mnt/isodir tar -xzvf /mnt/isomount/repo.tgz umount /dev/sda2<br>
<br>
<br>
reboot the system and boot from "Redhat Install" and this triggers the installation. Presently I got struck in partitioning the sda. Any one tried this before?  Is there any suggestions or good pointers?<br>
<br>
Thanks<br>
Ganesh<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>
<br>
_______________________________________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>
<br>
_______________________________________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>
</div></div></blockquote></div><br></div>