Hi Vratislav, All,
Thank you for responding.
I am providing you more details:-
Regarding booting the Installer
1. I am using network boot and for that I am using RHEL suggested method as below:-
1. Copy the vmlinuz, initrd.img and pxelinux.0 to /var/lib/tftpboot/pxelinux.cfg
2. Create a default file that contains option to boot above kernel vmlinuz and initrd also with ks parameter to pass nfs location of main kickstart file
3. Mount the ISO on server and copy its contents to the directory.
The directory has below folder:-
Packages --> contains packages
EFI --> contaings BOOT directory
isolinux --> contains isolinux.bin vmlinuz initrd.img
images -> contains install.img efidisk.ing pxeboot directory
repodata -> containing comps.xml
kickstart --> folder containing all kickstart files
4. Export this directory via NFS.
5. After that the client system is booted over network (PXE boot)
6. After that Running anaconda message appears.
7. After the screen of running anaconda , below error occurs:-
>Unable to open input kickstart file: Could not open/read
> file:///mnt/stage2/kickstart/Additional.inc
> file:///mnt/stage2/kickstart/Additional.inc
I am providing you snippet of kickstart file as below:-
install
nfs --server=169.254.1.2 --dir=/export/home/agarg/imag
key --skip
lang en_US.UTF-8
keyboard us
% include /mnt/stage2/kickstart/Additional.inc
%packages
@base
@supp
@core
%end
Also I want to confirm an additional query:-
Also there is a pre section in my additional kickstart file which is Additional.inc which is used to probe for system related information and store it in a file.
But I think that %pre script execution from additional kickstart file has been removed, can you please confirm.
Does In RHEL6.6 installer does %pre section script executes only from the main kickstart file and not the additional included files ?
>> Try running
>> $ ls /mnt/sourceI checked the above but this directory is not present, only below two directory is present:-
mnt/stage2
mnt/runtime
and mnt/stage2 contains only contents of /export/home/agarg/imag/images directory which are below:-
install.img
efidisk.ing
pxeboot directory
i will appreciate any further help provided.
i will appreciate any further help provided.
Please let me know in case you require more information.
Thanks and regards,
Anant garg
On Mon, Jun 22, 2015 at 10:11 PM, Vratislav Podzimek <vpodzime@xxxxxxxxxx> wrote:
On Tue, 2015-06-16 at 17:59 +0530, anant garg wrote:
>
> Thank you for replying.
>
>
> I am sharing my understanding of the operation i performed.
>
>
> I configured Network installation server 169.254.1.2 and
> exported /export/home/agarg/imag from Server.
>
>
> Now i make another machine(client ) attached to server to boot via
> network.
> Client System was able to boot via pxe and was able to download initrd
> and install.img images.
> I checked that it was able to recieve the main kickstart in stage1 of
> anaconda installer.
Where is the main kickstart downloaded from?
>
>
> After the screen for running anaconda installer , i see below error
> for installation failure:-
>
>
> ------------------------------------------------------------------------------------------------------------------------------
>
>
>
> The following problem occurred on line 0 of the kickstart file:
>
>
> Unable to open input kickstart file: Could not open/read
> file:///mnt/stage2/kickstart/Additional.inc
>
>
> ------------------------------------------------------------------------------------------------------------------------------
>
>
> I accessed tty2 and check the contents of mnt/stage2/, I see below
> contents were only present:-
>
>
> $ ls mnt/stage2/
> efiboot.img efidisk.img install.img pxeboot TRANS.TBL
>
>
> The above is contents of my images directory present in the ISO
Can you please add the information on how you boot the installer and how
your kickstarts look?
Try running
$ ls /mnt/source
And see if that's the directory your additional ks file lives in or not.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list