Create a Live CD

UPDATE Feb 2013 available images :

  • CF_SLC_62_LIVE
  • CF_SLC_63_LIVE
  • CF_SLC_64_LIVE

Install livecd-tools and patch it.

  • Install livecd-tools from scientific linux 6 repository (Not SLC(soon:) and redhat one's are broken)
  • Patch live.py __write_dracut_conf function:
       def __write_dracut_conf(self, path):
            if not os.path.exists(os.path.dirname(path)):
                makedirs(os.path.dirname(path))
            f = open(path, "a")
            f.write('filesystems+="' + self.__extra_filesystems() + ' "\n')
            f.write('drivers+="' + self.__extra_drivers() + ' "\n')
            f.write('add_dracutmodules+=" dmsquash-live "')
            f.close()
       
  • Edit kickstart file if you want to add additional package. slc62-live-base.ks
  • Generate livecd :
        LANG=C time livecd-creator --config=slc62-live-base.ks --fslabel="SLC6-LiveCD" --tmpdir=/home/livecd/tmp
         

USB booting

If your USB device is /dev/sdb1

livecd-iso-to-disk SLC6-LiveCD.iso /dev/sdb1
A lot of option are avaialable:
livecd-iso-to-disk --help

Add to aims2

Generate initrd / vmlinuz

livecd-iso-to-pxeboot SLC6-LiveCD.iso

It will generate the needed files in the tftpboot directory. Please note you need to store them on AFS for initial upload in AIMS2.

aims2

> aims2 addimg --arch x86_64 --desc 'LiveCD SLC 6.2 for CF' --vmlinuz ./vmlinuz0 --initrd ./initrd0.img --kopts '' --name CF_SLC_62_LIVE

> aims2 showimg CF_SLC_62_LIVE --all
-------------------------------------------------------------------------------
Image NAME:                CF_SLC_62_LIVE
Architecture:              x86_64
Description:               LIVECD SLC 6.2 FOR CF
Boot options:              [none]
Authorized groups:         everybody
Kernel source:             /afs/cern.ch/project/linux/dev/CF_SLC_62_LIVE/tftpboot/vmlinuz0
Kernel size:               3941392 bytes
Kernel MD5 sum:            bcca57661f88178b5dbd34a250fe5189
Initial RAM disk source:   /afs/cern.ch/project/linux/dev/CF_SLC_62_LIVE/tftpboot/initrd0.img
Initial RAM disk size:     241896950 bytes
Initial RAM disk MD5 sum:  76ea39ca019b58fa8dfd4a218770d0c9
Image OWNER:               toulevey
Image uploaded at:         2012/04/05 09:56:39
Synchronized:              YYN
-------------------------------------------------------------------------------

Be sure the Synchronised state is set to Y.

Boot a host

aims2 addhost --kopts 'rootflags=loop root=live:/SLC6-LiveCD.iso rootfstype=auto ro liveimg' <hostname>
aims2client pxeon --hostname <hostname> --name CF_SLC_62_LIVE

Workflow for CF

  • Boot livecd
  • rc.local will wget and execute a script.
  • script run ' yum install '

Test

  • Validate hardware models, drivers etc..

Todo

  • Web link for the script
  • SSH access / keys before end of the month
  • HW Repository link
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatks slc62-live-base.ks r1 manage 20.9 K 2012-04-05 - 14:50 ThomasOulevey  
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r7 - 2013-03-22 - ThomasOulevey
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LinuxSupport All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback