How to build a live Fedora CD using Kadischi
by Jon Benedict
Kadischi was created in 2005 by Darko Ilic specifically for creating Fedora based Live CDs. Although it is still in active early development, it is still quite usable. What this means to the average user, is that there currently are not any RPMs for Kadischi; it is only downloadable from CVS. Fear not, this is covered below, and it’s quite easy to build.
Also, as Max Speveck pointed out in his Fedora Corner article in January, the Live CD is a major goal for Fedora 7. Perhaps Kadischi will be in RPM form by then…
Basic setup
This tutorial assumes that Fedora Core 6 is already installed on a system with a graphical interface. There needs to be a software repository of between 3 GB and 5 GB as well as a build directory of approximately 2 GB ( or 8 GB for a DVD build).
- Install necessary utilities as root or using sudo
[root@buildhost ~]$ yum install fedora busybox-anaconda syslinux mkisofs squashfs-tools zisofs-tools e2fsprogs createrepo yum-utils gnome-python2-extras cvs
- Be sure you have the space available for the build directory (/LiveFC6 in this case)
[root@buildhost ~]$ df -h / Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 48G 9.0G 36G 21% /In this case, there is plenty of room (36 GB) to place our build directory under “/”.
- Create and populate your repo from the ISO images for Fedora Core 6. In this example the DVD ISO was used to save time by not having to continually mount and unmount the CD ISOs.
[root@buildhost ~]$ mkdir /LiveFC6 [root@buildhost ~]$ cp -av /media/FC6/Fedora/ /LiveFC6 [root@buildhost ~]$ cp -av /media/FC6/repodata /LiveFC6
- Checkout Kadischi from cvs
[root@buildhost ~] $ cd /LiveFC6 [root@buildhost ~] $ export CVSROOT=:pserver:anonymous@cvs.fedora.redhat.com:/cvs/devel [root@buildhost ~]$ cvs -z3 login [root@buildhost ~]$ cvs -z3 co kadischi
Note: The “export” line above should be all on one line, not broken up.
- Build and install Kadischi
[root@buildhost ~] $ cd /LiveFC6/kadischi [root@buildhost ~] $ ./autogen.sh [root@buildhost ~] $ make [root@buildhost ~] $ make install
- Configure Kadischi to use your preferred Live CD bootloader (GRUB and isolinux are the choices)
[root@buildhost ~] $ vi /etc/kadischi/kadischi.conf ~snip~ BOOTLOADER=isolinux
Build the live CD
The build process follows similar steps in building a system from CD. It uses anaconda to detect hardware, and the same dialogs are used to make selections like packages and localization.
Note: This process does not seem to work well in a VMware environment. It’s probably possible, but there is a fair amount of debugging to be done in order to get it working.
- Start the process of configuring the Live CD
[root@buildhost ~] $ kadischi /LiveFC6 /LiveFC6/Live-FC6.iso
OR, if a kickstart file is available, use
[root@buildhost ~] $ kadischi -C /LiveFC6 /LiveFC6/Live-FC6.iso --kickstart=/path/to/ks.cfg
Note: The above command should be typed on one line.
- If the non-Kickstart version was selected, follow the prompts to make localization, hostname, and package selection. When the process is complete, the installer will ask the user to “reboot”. This does not actually initiate a reboot, but it does send the process into the next step.
- Next, a TUI will ask about firewall, services, and user configuration. It may take a few minutes to get from the end of the “reboot” phase to the “tui”. The ISO image will be created at this point.
Note: The ISO image creation will definitely a while (20 minutes or so), so find something to do in the meantime.
- The last step will prompt the user as to whether or not the new ISO is to be burned. Regardless of the answer, the new ISO image is in the directory specified at the beginning. In this example, /LiveFC6/Live-FC6.iso.
- Boot the new ISO.
Additional resources
- Kadischi’s official web site
- Jon Benedict also reviewed Live Linux CDs: Building & customizing bootables, which covers building Fedora Live CDs (and others) in a more in depth fashion.







March 2nd, 2007 at 11:24 am
I thought most of the momentum these days was in the newer “pilgrim” tool. Perhaps you should write about that as a follow-up!
March 4th, 2007 at 3:42 pm
A very good article indeed Mr Jon Benedict! It helped me a leap forward in the right direction towards building a Live CD of Fedora Core 6 x86_64.
I have tried to follow this paper on a FC5 X86_64 system with varied results. Firstly the repository was on a FTP site – ftp://ftp.chl.chalmers.se/…./os – and kadischi really worked from that address. So it was a success from two points of views before trouble started to glace my eyes – kadischi did build on FC5 and downloaded files from FTP. Not to soon I ran into a total failure when the screen saver kicked in and disrupted anaconda and the whole installation process was abandoned. The installation process was interrupted when anaconda was about to probe for the grapics card – the screen saver had already kicked in before probing took place. So it was just to start over again and disable the screen saver in FC5. After the second run of kadischi it performed smoothly – anaconda did its job and downloaded a system on the HDD. But this time a file could not be copied from the FC5 system to the newly downloaded FC6 system due to the exact path did not exist. Kadischi panicked once again and interrupted the making of the ISO image. The file to be copied should have been from path “/usr/share/grub/x86_64-redhat/stage2_eltorito” instead of the faulty “/usr/share/grub/i386-redhat/stage2_eltorito”.
I managed to copy the file myself manually after a lot of reading in the various files “kadischi.py” and some “install***.sh”. I used the command “mkisofs” manually and built the corresponding ISO file from the compressed source directory and eventually burned the ISO file down onto a DVD. At last – the DVD did boot nearly perfectly but lacked some IP addresses put in the anaconda installation process earlier. I am very happy to admit that kadischi did perform nearly flawlessly regarding the build of the compressed directory and the very core process of making a FC system run on a DVD+R media, though there are a few rough edges left in need of sharpening.
Well a few last words to summit kadischi:
*Disable the screen saver before running kadischi!
*It performs well even if it is not a finished product yet.
*You might need a friend that understands scripts and python.
*Don’t forget to change the path to “stage2_eltorito” in one of the install scripts that come with kadischi – if you run a x86_64 system.
Once again thanks for the support and I hope You will be writing articles like this one in the future Jon…
/Henrik
April 16th, 2007 at 10:48 am
Hello
I would like to know if it’s possible to make a live DVD of redhat or centos !!??
If yes how to do that ?
Thanks a lot
April 16th, 2007 at 7:21 pm
I have been trying to do just that, but am facing a lot of problems
October 26th, 2008 at 9:05 pm
my god!
here cvs.fedora.redhat.com:/cvs/devel
haven’t kadischi dir
where do I download it!
thanks a lot!
if you can
can you email me that result