If you do not read what I write and if you do not answer my questions then I cannot help you. Sorry.
Sure, i will follow your suggestions, now currently we could not be able to create customized ISO image please see below error while using same fdi-bootable-3.3.1.iso.
[root@hylformanproxy remaster]# cd /var/tmp/foreman/foreman-discovery-image
[root@hylformanproxy foreman-discovery-image]# ls -l
total 84
-rw-râr-- 1 root root 718 Apr 4 10:09 00-repos-centos8.ks
-rw-râr-- 1 root root 494 Apr 4 10:09 10-header.ks
-rw-râr-- 1 root root 2025 Apr 4 10:09 20-packages.ks
-rw-râr-- 1 root root 5899 Apr 4 10:09 22-discovery.ks
-rw-râr-- 1 root root 3471 Apr 4 10:09 25-minimize.ks
-rw-râr-- 1 root root 1582 Apr 4 10:09 anaconda-rhsm-BZ2034601.patch
drwxr-xr-x 5 root root 131 Apr 4 10:09 aux
-rwxr-xr-x 1 root root 1379 Apr 4 10:09 build-livecd
-rwxr-xr-x 1 root root 3436 Apr 4 10:09 build-livecd-root
-rwxr-xr-x 1 root root 45 Apr 4 10:09 clean-cache
drwxr-xr-x 6 root root 93 Apr 4 10:09 example_zip
-rwxr-xr-x 1 root root 74 Apr 4 10:09 extract-strings
-rw-râr-- 1 root root 148 Apr 4 10:09 fdi-centos8.ks
-rw-râr-- 1 root root 119 Apr 4 10:09 fdi-empty.ks
-rw-râr-- 1 root root 18027 Apr 4 10:09 LICENSE
-rw-râr-- 1 root root 11529 Apr 4 10:09 README.md
drwxr-xr-x 5 root root 39 Apr 4 10:09 root
[root@hylformanproxy foreman-discovery-image]# cd /var/tmp/foreman/foreman-discovery-image/aux/remaster
[root@hylformanproxy remaster]# ls -l
total 242692
-rwxr-xr-x 1 root root 3762 Apr 4 10:09 discovery-remaster
-rw-râr-- 1 root root 248512512 Jan 4 2017 fdi-bootable-3.3.1.iso
[root@hylformanproxy remaster]# bash ./discovery-remaster fdi-bootable-3.3.1.iso âproxy.url=https://hylformanproxy.micron.com proxy.type=proxy fdi.pxauto=1âCopying contents to temporary directoryâŚ
Making hardlinks so inodes can be cached to save spaceâŚ
/tmp/tmp.NZoEUZ1iO3 /var/tmp/foreman/foreman-discovery-image/aux/remaster
ln: failed to access âisolinux/initrd.imgâ: No such file or directory
ln: failed to access âisolinux/vmlinuzâ: No such file or directory
/var/tmp/foreman/foreman-discovery-image/aux/remaster
Configuring bootloadersâŚ
Copy grub config to the ESP imageâŚ
Canât open /tmp/tmp.NZoEUZ1iO3/images/efiboot.img: No such file or directory
Cannot initialize â::â
Bad target ::EFI/BOOT/grub.cfg
Building new ISO imageâŚ
Warning: creating filesystem that does not conform to ISO-9660.
Size of boot image is 4 sectors â No emulation
4.13% done, estimate finish Tue Apr 4 11:06:20 2023
8.26% done, estimate finish Tue Apr 4 11:06:20 2023
12.40% done, estimate finish Tue Apr 4 11:06:20 2023
16.53% done, estimate finish Tue Apr 4 11:06:20 2023
20.65% done, estimate finish Tue Apr 4 11:06:20 2023
24.78% done, estimate finish Tue Apr 4 11:06:20 2023
28.92% done, estimate finish Tue Apr 4 11:06:20 2023
33.04% done, estimate finish Tue Apr 4 11:06:20 2023
37.18% done, estimate finish Tue Apr 4 11:06:20 2023
41.30% done, estimate finish Tue Apr 4 11:06:20 2023
45.44% done, estimate finish Tue Apr 4 11:06:20 2023
49.56% done, estimate finish Tue Apr 4 11:06:20 2023
53.69% done, estimate finish Tue Apr 4 11:06:20 2023
57.82% done, estimate finish Tue Apr 4 11:06:20 2023
61.95% done, estimate finish Tue Apr 4 11:06:20 2023
66.08% done, estimate finish Tue Apr 4 11:06:20 2023
70.21% done, estimate finish Tue Apr 4 11:06:20 2023
74.33% done, estimate finish Tue Apr 4 11:06:20 2023
78.47% done, estimate finish Tue Apr 4 11:06:20 2023
82.59% done, estimate finish Tue Apr 4 11:06:20 2023
86.73% done, estimate finish Tue Apr 4 11:06:20 2023
90.85% done, estimate finish Tue Apr 4 11:06:20 2023
94.99% done, estimate finish Tue Apr 4 11:06:20 2023
99.11% done, estimate finish Tue Apr 4 11:06:20 2023
Total translation table size: 6249
Total rockridge attributes bytes: 2866
Total directory bytes: 10240
Path table size(bytes): 78
Max brk space used 22000
121085 extents written (236 MB)
isohybrid: proxy.type=proxy: unable to find efi image
Inserting md5sum into iso imageâŚ
md5 = 119a2646ef01eab583417f987dd528c9
Inserting fragment md5sums into iso imageâŚ
fragmd5 = 57d7d2429b86ecec69ea41c66c393aa26f2259b62cb448328bd6892ac912
frags = 20
Setting supported flag to 0
Created: proxy.type=proxy (BIOS-only compatible)
Cleaning up temporary directoryâŚ
[root@hylformanproxy remaster]# ls -l
total 484864
-rwxr-xr-x 1 root root 3762 Apr 4 10:09 discovery-remaster
-rw-râr-- 1 root root 248512512 Jan 4 2017 fdi-bootable-3.3.1.iso
-rw-râr-- 1 root root 247982080 Apr 4 11:06 proxy.type=proxy
[root@hylformanproxy remaster]#
the git used to create customized ISO image for our environment. Please suggest me how do i modify about my proxy server name?
step1 ) GitHub - theforeman/foreman-discovery-image: Foreman discovery image live distro
cloned above one
step2 ) wget http://downloads.theforeman.org/discovery/releases/3.3/fdi-bootable-3.3.1.iso
[root@hylformanproxy image]# ls -ltr
total 242868
-rw-râr-- 1 root root 3762 Mar 27 14:18 dis
-rw-râr-- 1 root root 248512512 Mar 27 17:00 fdi-bootable-3.3.1.iso
-rw-râr-- 1 root root 180009 Mar 30 14:01 discovery-remaster
[root@hylformanproxy image]# bash ./discovery-remaster fdi-bootable-3.3.1.iso âproxy.url=https://hylformanproxy.micron.com proxy.type=proxy fdi.pxauto=1â
./discovery-remaster: line 8: syntax error near unexpected token newline' ./discovery-remaster: line 8:
â
[root@hylformanproxy image]#
SolutionReply
srikanthm
If you do not read what I write and if you do not answer my questions then I cannot help you. Sorry.
SolutionReply
Jan
Sure, i will follow your suggestions, now currently we could not be able to create customized ISO image please see below error while using same fdi-bootable-3.3.1.iso.
[root@hylformanproxy remaster]# cd /var/tmp/foreman/foreman-discovery-image
[root@hylformanproxy foreman-discovery-image]# ls -l
total 84
-rw-râr-- 1 root root 718 Apr 4 10:09 00-repos-centos8.ks
-rw-râr-- 1 root root 494 Apr 4 10:09 10-header.ks
-rw-râr-- 1 root root 2025 Apr 4 10:09 20-packages.ks
-rw-râr-- 1 root root 5899 Apr 4 10:09 22-discovery.ks
-rw-râr-- 1 root root 3471 Apr 4 10:09 25-minimize.ks
-rw-râr-- 1 root root 1582 Apr 4 10:09 anaconda-rhsm-BZ2034601.patch
drwxr-xr-x 5 root root 131 Apr 4 10:09 aux
-rwxr-xr-x 1 root root 1379 Apr 4 10:09 build-livecd
-rwxr-xr-x 1 root root 3436 Apr 4 10:09 build-livecd-root
-rwxr-xr-x 1 root root 45 Apr 4 10:09 clean-cache
drwxr-xr-x 6 root root 93 Apr 4 10:09 example_zip
-rwxr-xr-x 1 root root 74 Apr 4 10:09 extract-strings
-rw-râr-- 1 root root 148 Apr 4 10:09 fdi-centos8.ks
-rw-râr-- 1 root root 119 Apr 4 10:09 fdi-empty.ks
-rw-râr-- 1 root root 18027 Apr 4 10:09 LICENSE
-rw-râr-- 1 root root 11529 Apr 4 10:09 README.md
drwxr-xr-x 5 root root 39 Apr 4 10:09 root
[root@hylformanproxy foreman-discovery-image]# cd /var/tmp/foreman/foreman-discovery-image/aux/remaster
[root@hylformanproxy remaster]# ls -l
total 242692
-rwxr-xr-x 1 root root 3762 Apr 4 10:09 discovery-remaster
-rw-râr-- 1 root root 248512512 Jan 4 2017 fdi-bootable-3.3.1.iso
[root@hylformanproxy remaster]# bash ./discovery-remaster fdi-bootable-3.3.1.iso âproxy.url=https://hylformanproxy.micron.com proxy.type=proxy fdi.pxauto=1âCopying contents to temporary directoryâŚ
Making hardlinks so inodes can be cached to save spaceâŚ
/tmp/tmp.NZoEUZ1iO3 /var/tmp/foreman/foreman-discovery-image/aux/remaster
ln: failed to access âisolinux/initrd.imgâ: No such file or directory
ln: failed to access âisolinux/vmlinuzâ: No such file or directory
/var/tmp/foreman/foreman-discovery-image/aux/remaster
Configuring bootloadersâŚ
Copy grub config to the ESP imageâŚ
Canât open /tmp/tmp.NZoEUZ1iO3/images/efiboot.img: No such file or directory
Cannot initialize â::â
Bad target ::EFI/BOOT/grub.cfg
Building new ISO imageâŚ
Warning: creating filesystem that does not conform to ISO-9660.
Size of boot image is 4 sectors â No emulation
4.13% done, estimate finish Tue Apr 4 11:06:20 2023
8.26% done, estimate finish Tue Apr 4 11:06:20 2023
12.40% done, estimate finish Tue Apr 4 11:06:20 2023
16.53% done, estimate finish Tue Apr 4 11:06:20 2023
20.65% done, estimate finish Tue Apr 4 11:06:20 2023
24.78% done, estimate finish Tue Apr 4 11:06:20 2023
28.92% done, estimate finish Tue Apr 4 11:06:20 2023
33.04% done, estimate finish Tue Apr 4 11:06:20 2023
37.18% done, estimate finish Tue Apr 4 11:06:20 2023
41.30% done, estimate finish Tue Apr 4 11:06:20 2023
45.44% done, estimate finish Tue Apr 4 11:06:20 2023
49.56% done, estimate finish Tue Apr 4 11:06:20 2023
53.69% done, estimate finish Tue Apr 4 11:06:20 2023
57.82% done, estimate finish Tue Apr 4 11:06:20 2023
61.95% done, estimate finish Tue Apr 4 11:06:20 2023
66.08% done, estimate finish Tue Apr 4 11:06:20 2023
70.21% done, estimate finish Tue Apr 4 11:06:20 2023
74.33% done, estimate finish Tue Apr 4 11:06:20 2023
78.47% done, estimate finish Tue Apr 4 11:06:20 2023
82.59% done, estimate finish Tue Apr 4 11:06:20 2023
86.73% done, estimate finish Tue Apr 4 11:06:20 2023
90.85% done, estimate finish Tue Apr 4 11:06:20 2023
94.99% done, estimate finish Tue Apr 4 11:06:20 2023
99.11% done, estimate finish Tue Apr 4 11:06:20 2023
Total translation table size: 6249
Total rockridge attributes bytes: 2866
Total directory bytes: 10240
Path table size(bytes): 78
Max brk space used 22000
121085 extents written (236 MB)
isohybrid: proxy.type=proxy: unable to find efi image
Inserting md5sum into iso imageâŚ
md5 = 119a2646ef01eab583417f987dd528c9
Inserting fragment md5sums into iso imageâŚ
fragmd5 = 57d7d2429b86ecec69ea41c66c393aa26f2259b62cb448328bd6892ac912
frags = 20
Setting supported flag to 0
Created: proxy.type=proxy (BIOS-only compatible)
Cleaning up temporary directoryâŚ
[root@hylformanproxy remaster]# ls -l
total 484864
-rwxr-xr-x 1 root root 3762 Apr 4 10:09 discovery-remaster
-rw-râr-- 1 root root 248512512 Jan 4 2017 fdi-bootable-3.3.1.iso
-rw-râr-- 1 root root 247982080 Apr 4 11:06 proxy.type=proxy
[root@hylformanproxy remaster]#
First of all, please format your console output as Preformatted text
for better reading.
Second:
Please answer what you see there.
Third:
From your latest output I can (hardly see, because no preformatted text) that your discovery-remaster
call seems to be buggy:
You end up with an ISO file with proxy.type=proxy
as filename. So the option was not parsed correctly by bash. Please type the following line and do not copy. Look out to use correct quote characters!
bash ./discovery-remaster fdi-bootable-3.3.1.iso "proxy.url=https://hylformanproxy.micron.com proxy.type=proxy fdi.pxauto=1"
[root@hylformanproxy remaster]# ls -l
total 1559656
-rwxr-xr-x 1 root root 3762 Apr 4 10:09 discovery-remaster
-rwxrwxrwx 1 root root 247982080 Apr 4 11:50 fdi3.3.iso
-rw-râr-- 1 root root 550502400 Jul 19 2022 fdi-4.1.0-24d62de.iso
-rw-râr-- 1 root root 248512512 Jan 4 2017 fdi-bootable-3.3.1.iso
-rw-râr-- 1 root root 550502400 Apr 4 11:43 fdi.iso
[root@hylformanproxy remaster]# bash ./discovery-remaster fdi-bootable-3.3.1.iso âproxy.url=https://hylformanproxy.micron.com proxy.type=proxy fdi.pxauto=1â
Copying contents to temporary directoryâŚ
Making hardlinks so inodes can be cached to save spaceâŚ
/tmp/tmp.7BB54Rxghp /var/tmp/foreman/foreman-discovery-image/aux/remaster
ln: failed to access âisolinux/initrd.imgâ: No such file or directory
ln: failed to access âisolinux/vmlinuzâ: No such file or directory
/var/tmp/foreman/foreman-discovery-image/aux/remaster
Configuring bootloadersâŚ
Copy grub config to the ESP imageâŚ
Canât open /tmp/tmp.7BB54Rxghp/images/efiboot.img: No such file or directory
Cannot initialize â::â
Bad target ::EFI/BOOT/grub.cfg
Building new ISO imageâŚ
Warning: creating filesystem that does not conform to ISO-9660.
Size of boot image is 4 sectors â No emulation
4.13% done, estimate finish Tue Apr 4 18:11:36 2023
8.26% done, estimate finish Tue Apr 4 18:11:36 2023
12.40% done, estimate finish Tue Apr 4 18:11:36 2023
16.53% done, estimate finish Tue Apr 4 18:11:36 2023
20.65% done, estimate finish Tue Apr 4 18:11:36 2023
24.78% done, estimate finish Tue Apr 4 18:11:36 2023
28.92% done, estimate finish Tue Apr 4 18:11:36 2023
33.04% done, estimate finish Tue Apr 4 18:11:36 2023
37.18% done, estimate finish Tue Apr 4 18:11:36 2023
41.30% done, estimate finish Tue Apr 4 18:11:36 2023
45.44% done, estimate finish Tue Apr 4 18:11:36 2023
49.56% done, estimate finish Tue Apr 4 18:11:36 2023
53.69% done, estimate finish Tue Apr 4 18:11:36 2023
57.82% done, estimate finish Tue Apr 4 18:11:36 2023
61.95% done, estimate finish Tue Apr 4 18:11:36 2023
66.08% done, estimate finish Tue Apr 4 18:11:36 2023
70.21% done, estimate finish Tue Apr 4 18:11:36 2023
74.33% done, estimate finish Tue Apr 4 18:11:36 2023
78.47% done, estimate finish Tue Apr 4 18:11:36 2023
82.59% done, estimate finish Tue Apr 4 18:11:36 2023
86.73% done, estimate finish Tue Apr 4 18:11:36 2023
90.85% done, estimate finish Tue Apr 4 18:11:36 2023
94.99% done, estimate finish Tue Apr 4 18:11:36 2023
99.11% done, estimate finish Tue Apr 4 18:11:36 2023
Total translation table size: 6249
Total rockridge attributes bytes: 2866
Total directory bytes: 10240
Path table size(bytes): 78
Max brk space used 22000
121085 extents written (236 MB)
isohybrid: fdi-bootable-3.3.1-230404_181116.iso: unable to find efi image
Inserting md5sum into iso imageâŚ
md5 = 96b0bb3e154864f0794b7f4e640cb329
Inserting fragment md5sums into iso imageâŚ
fragmd5 = 38d85f3dded5d29caec193d8dad41f693c72affdd275276e47f478ac77b8
frags = 20
Setting supported flag to 0
Created: fdi-bootable-3.3.1-230404_181116.iso (BIOS-only compatible)
Cleaning up temporary directoryâŚ
[root@hylformanproxy remaster]#
I already provided answers to all of your issues.
Again:
Do NOT use latest version of discovery-remaster
script from Github in combination with FDI v3.3.1!!!
You need use the following revision of this script: b94bf01e26be01edffc1290b8c726f2d6ecdceec
To get this revision of this file, simply do:
$ wget https://raw.githubusercontent.com/theforeman/foreman-discovery-image/b94bf01e26be01edffc1290b8c726f2d6ecdceec/aux/remaster/discovery-remaster
It is IMPORTANT that you copy the whole URL including the revision for wget
!
To double check if you use correct version do:
$ sha1sum ./discovery-remaster
eaf21614913d4c10dcca5282ab8e040807324852 ./discovery-remaster
If you donât have exactly same SHA hashsum, I give up!
If you have exactly the same SHA hashsum, run again:
$ bash ./discovery-remaster fdi-bootable-3.3.1.iso "proxy.url=https://hylformanproxy.micron.com proxy.type=proxy fdi.pxauto=1"
Upload built ISO to vSphere, set as CD-ROM and boot from it.
created new iso image using with above instruction then whie booting with ISO image which is getting error
[root@hylformanproxy remaster]# ./discovery-remaster fdi-bootable-3.3.1.iso âproxy.url=https://hylformanproxy.micron.com:9090 proxy.type=proxy fdi.pxauto=1â
Copying contents to temporary directoryâŚ
Making hardlinks so inodes can be cached to save spaceâŚ
/tmp/tmp.4tqXJhDqo7 /var/tmp/foreman/foreman-discovery-image/aux/remaster
ln: failed to access âisolinux/initrd.imgâ: No such file or directory
ln: failed to access âisolinux/vmlinuzâ: No such file or directory
/var/tmp/foreman/foreman-discovery-image/aux/remaster
Configuring bootloadersâŚ
Copy grub config to the ESP imageâŚ
Canât open /tmp/tmp.4tqXJhDqo7/images/efiboot.img: No such file or directory
Cannot initialize â::â
Bad target ::EFI/BOOT/grub.cfg
Building new ISO imageâŚ
Warning: creating filesystem that does not conform to ISO-9660.
Size of boot image is 4 sectors â No emulation
4.13% done, estimate finish Tue Apr 4 19:00:32 2023
8.26% done, estimate finish Tue Apr 4 19:00:32 2023
12.40% done, estimate finish Tue Apr 4 19:00:32 2023
16.53% done, estimate finish Tue Apr 4 19:00:32 2023
20.65% done, estimate finish Tue Apr 4 19:00:32 2023
24.78% done, estimate finish Tue Apr 4 19:00:32 2023
28.92% done, estimate finish Tue Apr 4 19:00:32 2023
33.04% done, estimate finish Tue Apr 4 19:00:32 2023
37.18% done, estimate finish Tue Apr 4 19:00:32 2023
41.30% done, estimate finish Tue Apr 4 19:00:32 2023
45.44% done, estimate finish Tue Apr 4 19:00:32 2023
49.56% done, estimate finish Tue Apr 4 19:00:32 2023
53.69% done, estimate finish Tue Apr 4 19:00:32 2023
57.82% done, estimate finish Tue Apr 4 19:00:32 2023
61.95% done, estimate finish Tue Apr 4 19:00:32 2023
66.08% done, estimate finish Tue Apr 4 19:00:32 2023
70.21% done, estimate finish Tue Apr 4 19:00:32 2023
74.33% done, estimate finish Tue Apr 4 19:00:32 2023
78.47% done, estimate finish Tue Apr 4 19:00:32 2023
82.59% done, estimate finish Tue Apr 4 19:00:32 2023
86.73% done, estimate finish Tue Apr 4 19:00:32 2023
90.85% done, estimate finish Tue Apr 4 19:00:32 2023
94.99% done, estimate finish Tue Apr 4 19:00:32 2023
99.11% done, estimate finish Tue Apr 4 19:00:32 2023
Total translation table size: 6249
Total rockridge attributes bytes: 2866
Total directory bytes: 10240
Path table size(bytes): 78
Max brk space used 22000
121085 extents written (236 MB)
isohybrid: fdi-bootable-3.3.1-230404_190011.iso: unable to find efi image
Inserting md5sum into iso imageâŚ
md5 = 5032e0503d381850334ed6497c14736e
Inserting fragment md5sums into iso imageâŚ
fragmd5 = b94d69f3651f4c9ee26d83a581286c81b8f3f1956a63efe56acad9a3f7d1
frags = 20
Setting supported flag to 0
Created: fdi-bootable-3.3.1-230404_190011.iso (BIOS-only compatible)
Cleaning up temporary directoryâŚ
[root@hylformanproxy remaster]#
Please suggest me why we required to resend again to get SUCCESS state.
thank you for your help on it
yes it can be use for others above solutions.