# Custom rocky 8.10 iso file with kickstart is failing to install with error "Error setting up software source"

**URL:** <https://forums.rockylinux.org/t/custom-rocky-8-10-iso-file-with-kickstart-is-failing-to-install-with-error-error-setting-up-software-source/14451>\
**Category:** Rocky Linux Help & Support\
**Created:** [June 5, 2024, 6:00pm UTC](https://forums.rockylinux.org/t/custom-rocky-8-10-iso-file-with-kickstart-is-failing-to-install-with-error-error-setting-up-software-source/14451 "2024-06-05T18:00:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekatamil](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ekatamil](https://forums.rockylinux.org/u/ekatamil)\
**Post date:** [June 5, 2024, 6:00pm UTC](https://forums.rockylinux.org/t/custom-rocky-8-10-iso-file-with-kickstart-is-failing-to-install-with-error-error-setting-up-software-source/14451/1 "2024-06-05T18:00:36Z")

</div>

I have been trying to create a custom iso package with kickstart on top of recently released Rocky-8-10-x86\_64-dvd.iso file. We wanted to include all the packages as part of ISO itself as we did not want to download the packages from internet during installation process.

> [root@localhost rocky\_iso]# ls -lh  
> total 16K  
> drwxr-xr-x. 4 lcp-operator lcp-operator 38 May 27 20:33 AppStream  
> drwxr-xr-x. 4 lcp-operator lcp-operator 38 May 27 20:33 BaseOS  
> drwxr-xr-x. 4 root root 55 Jun 5 22:48 CustomRepo  
> dr-xr-xr-x. 3 lcp-operator lcp-operator 18 May 27 19:42 EFI  
> dr-xr-xr-x. 3 lcp-operator lcp-operator 59 Jun 3 13:46 images  
> drwxrwxr-x. 2 lcp-operator lcp-operator 4.0K Jun 3 13:46 isolinux  
> -rwxr-xr-x. 1 lcp-operator lcp-operator 1.6K Jun 5 22:49 ks.cfg  
> -rw-r–r–. 1 lcp-operator lcp-operator 2.2K Apr 4 07:38 LICENSE  
> -r–r–r–. 1 lcp-operator lcp-operator 89 May 27 20:33 media.repo

CustomRepo contains the extra packages we needed. I used createrepo command as follows _ **“createrepo -g /root/rocky\_iso/CustomRepo/comps.xml /root/rocky\_iso/CustomRepo/”** _ and generated a repo.

Content of comps.xml file is as below

```auto
<?xml version="1.0" encoding="UTF-8"?>
<comps>
  <group>
    <id>kubernetes</id>
    <name>kubernetes</name>
    <description>Kubernetes packages required for lightening cloud</description>
    <packagelist>
      <packagereq type="mandatory">containerd.io</packagereq>
      <packagereq type="mandatory">kubeadm</packagereq>
      <packagereq type="mandatory">kubectl</packagereq>
      <packagereq type="mandatory">kubelet</packagereq> 
    </packagelist>
  </group>
  
  <group>
    <id>realtime</id>
    <name>realtime</name>
    <description>Realtime packages needed for lightening cloud</description>
    <packagelist>
      <packagereq type="mandatory">kernel-rt</packagereq>
    </packagelist>
  </group>
  
  <environment>
    <id>lightening_cloud_environment</id>
    <name>lightening_cloud</name>
    <description>Provides a lightening cloud environment</description>
    <grouplist>
      <groupid>kubernetes</groupid>
      <groupid>realtime</groupid>
    </grouplist>
  </environment>
</comps>

```

> Following is my kickstart file content  
> #version=RHEL8
> 
> # Use text mode install
> 
> text
> 
> # System language
> 
> lang en\_US.UTF-8
> 
> # Keyboard layouts
> 
> keyboard us
> 
> # Sy stem timezone
> 
> timezone Asia/Kolkata --isUtc
> 
> network --hostname=localhost
> 
> logging --level=debug
> 
> # Include the harddrive directive dynamically
> 
> #cdrom
> 
> url --url=file:///run/install/repo
> 
> harddrive --partition=/dev/sda --dir=/
> 
> repo --name=“CustomRepo” --baseurl=file:///run/install/repo/CustomRepo
> 
> # Root password
> 
> rootpw --iscrypted $6$iv6kBUl5hyN588E6$7iNqzDV2KeZ8Jwfh0lksjdflkjdfsoiAVi2LvxjEMQR9klUvDs.7MIfA4xp9lz2KM2YTkCHhx7CYz7kmiiVc/  
> user --name=lcp-operator --password=$6$S9CiLWTzdw7ynjxg$SlhozjoVwDAaTlkjdsflksjdfDBKvbv6Lvc5rpyLfZrzKzY2vsWuuPv9FzAejLfwgERC4zZwoRmKkfQz3RxVaJ0c/Y/ --iscrypted --gecos=“lcp-operator” --groups=“wheel”
> 
> # Run the Setup Agent on first boot
> 
> firstboot --enable
> 
> # System authorization information
> 
> #auth --useshadow --passalgo=sha512
> 
> # Reboot after installation
> 
> reboot
> 
> zerombr
> 
> ignoredisk --only-use=nvme0n1
> 
> # Partition clearing information
> 
> clearpart --all --initlabel --drives=nvme0n1
> 
> # Disk partitioning information for /dev/sda
> 
> part /boot/efi --fstype=efi --size=600 --ondisk=nvme0n1  
> part /boot --fstype=“xfs” --size=1024 --ondisk=nvme0n1  
> part / --fstype=“xfs” --size=409600 --ondisk=nvme0n1 --grow  
> part /home --fstype=“xfs” --size=204800 --ondisk=nvme0n1 --grow
> 
> # System bootloader configuration for UEFI
> 
> #bootloader --location=none --boot-drive=sda
> 
> # Packages to be installed
> 
> %packages  
> @^minimal-environment  
> @core  
> @^lightening-cloud-environment  
> %end
> 
> # Post-installation scripts
> 
> %post  
> %end

When I try to install the OS by creating a bootable USB drive in one of our servers, I see an error “Error setting up software source”.

Attached the screenshot of the issue and error log from anaconda.log

 ![1717610244927](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/d/dfdd22b52fd7ba0e3f4023a2fd8b5ca69a1cf397.jpeg)  
 ![1717610244936](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/0/031b115059c22a197f3666af059a5f3a0ef5b764.jpeg)

Any help to overcome this issue will be appreciated.

Thanks,  
Ekambaram A

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [August 4, 2024, 6:01pm UTC](https://forums.rockylinux.org/t/custom-rocky-8-10-iso-file-with-kickstart-is-failing-to-install-with-error-error-setting-up-software-source/14451/2 "2024-08-04T18:01:01Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
