How to Create a LiveCD for your local Fedora installation

by Manoj 2012-04-11 16:03:37


How to create a Livecd for your Fedora Local installation ?

Answer:

irst we need to Install the necessary software, so to create a live image, the livecd-creator tool is used. Super user privileges are needed. The tool is more or less self-documenting, use the –help option to see options.

yum install livecd-tools spin-kickstartsyum install l10n-kickstartsyum install fedora-kickstarts
- Create a livecd directory

mkdir /root/livecd
cd /root/ livecd
- Copy the kickstart file you’ve chosen to the current directory.

cp /usr/share/spin-kickstarts/fedora-live-base.ks .
or

cp /usr/share/spin-kickstarts/fedora-live-mini.ks .
or Download it from Fedora website

wget https://fedorahosted.org/spin-kickstarts/browser/fedora-live-minimization.kswget https://fedorahosted.org/spin-kickstarts/browser/fedora-live-desktop.ks


Create the Live CD:

Now to start creating the live cd enter the following command:

livecd-creator --config=/root/fedora-live-minimization.ks --fslabel=Fedora-LiveCD --cache=/var/cache/live
Output

mke2fs 1.41.12 (17-May-2010)
Filesystem label=_Fedora-LiveCD
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
262144 inodes, 1048576 blocks
10485 blocks (1.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1073741824
32 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
tune2fs 1.41.12 (17-May-2010)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-14&arch=i386 error was
14: PYCURL ERROR 6 – “”
Error creating Live CD : Unable to download from repo : Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
[root@unixmen-Fedora14 livecd]# livecd-creator –config=/root/livecd/fedora-live-mini.ks –fslabel=Fedora-LiveCD –cache=/var/cache/live
mke2fs 1.41.12 (17-May-2010)
Filesystem label=_Fedora-LiveCD
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
262144 inodes, 1048576 blocks
10485 blocks (1.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1073741824
32 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736

This will take some time to download the repesotories and will generate an iso file , when is done, burn the iso to a cd.

Testing your Live CD using KVM or qemu

As root:

qemu-kvm -m 512 -cdrom filename.iso
If you do not have KVM support, you can use qemu instead

qemu -m 512 --cdrom filename.iso
Replace filename.iso with the name of your created Live CD image. ( Don`t forget to install first KVM Or qemu using yum install command)

{module user9-footer}

Tagged in:

940
like
0
dislike
0
mail
flag

You must LOGIN to add comments