Difference: CobblerSetup (1 vs. 10)

Revision 10
16 Oct 2009 - Main.TomRockwell
Line: 1 to 1
Changed:
<
<
META TOPICPARENT name="Trash.Tier3WebHome"
>
>
META TOPICPARENT name="Trash.Trash/Tier3WebHome"
 

Cobbler

Revision 9
13 Oct 2009 - Main.ChipBrock
Line: 1 to 1
Changed:
<
<
META TOPICPARENT name="WebHome"
>
>
META TOPICPARENT name="Trash.Tier3WebHome"
 

Cobbler

Revision 8
03 May 2009 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Line: 29 to 29
 

Added:
>
>
 

Changes to Cobbler

Revision 7
30 Apr 2009 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Line: 27 to 27
 

Local:
Added:
>
>
 

Changes to Cobbler

Revision 5
06 Apr 2009 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Line: 18 to 18
 

References

Added:
>
>
 
Added:
>
>
 

Changes to Cobbler

Line: 71 to 74
  Want to import Scientific Linux 4.7 distro, which is already on the machine at /opt/distro/sl/47/ and available at http://hep1.pa.msu.edu/sl/47/
Changed:
<
<
[root@hep1 cobbler]# cobbler distro add --arch="x86_64" --breed="redhat" --comment="Scientific Linux 4.7 x86_64"
>
>
[root@hep1 /]# cobbler distro add --arch="x86_64" --breed="redhat" --comment="Scientific Linux 4.7 x86_64"
  --initrd="/opt/distro/sl/47/x86_64/images/SL/pxeboot/initrd.img" --kernel="/opt/distro/sl/47/x86_64/images/SL/pxeboot/vmlinuz" --ksmeta="tree=http://hep1.pa.msu.edu/sl/47/x86_64/" --name="SL47-x86_64" --os-version="rhel4"
Changed:
<
<
[root@hep1 cobbler]# cobbler report --name=SL47-x86_64
>
>
[root@hep1 /]# cobbler report --name=SL47-x86_64
  distro : SL47-x86_64 architecture : x86_64 breed : redhat
Line: 99 to 102
  Add a base profile:
Changed:
<
<
[root@hep1 cobbler]# touch /var/lib/cobbler/kickstarts/local/SL47.ks
>
>
[root@hep1 /]# touch /var/lib/cobbler/kickstarts/local/SL47.ks
 
Changed:
<
<
[root@hep1 cobbler]# cobbler profile add --comment="Base Profile for SL47-x86_64" --distro="SL47-x86_64"
>
>
[root@hep1 /]# cobbler profile add --comment="Base Profile for SL47-x86_64" --distro="SL47-x86_64"
  --enable-menu="no" --kickstart="/var/lib/cobbler/kickstarts/local/SL47.ks" --name="SL47-x86_64"
Deleted:
<
<
 
Added:
>
>
[root@hep1 /]# cobbler profile add --comment="Rescue Mode of Installer" --distro=SL47-x86_64 --kickstart=/var/lib/cobbler/kickstarts/pxerescue.ks --kopts="rescue" --dhcp-tag=default --name=rescue-SL47-x86_64

[root@hep1 /]# cobbler profile add --comment="HEP Desktop Profile for SL47-x86_64" --distro="SL47-x86_64" --enable-menu="yes" --kickstart="/var/lib/cobbler/kickstarts/local/HEP-Desktop.ks" --name="HEP-Desktop-SL47-x86_64"

[root@hep1 /]# cobbler system add --name=hx12 --hostname=hx12.pa.msu.edu --profile=HEP-Desktop-SL47-x86_64 --kickstart=/var/lib/cobbler/kickstarts/local/hx12.ks --comment="Dell Precision"

[root@hep1 /]# cobbler system edit --name=hx12 --ip=35.9.71.94 [root@hep1 /]# cobbler system edit --name=hx12 --ksmeta="ip_address=35.9.71.94"
 
Changed:
<
<
[root@hep1 cobbler]# cobbler buildiso --iso=/tmp/SL47-x86_64.iso --tempdir=/tmp --distro=SL47-x86_64 --standalone --source="/opt/distro/sl/47/x86_64/"
>
>
[root@hep1 /]# cobbler buildiso --iso=/tmp/SL47-x86_64.iso --tempdir=/tmp --distro=SL47-x86_64 --standalone --source="/opt/distro/sl/47/x86_64/"
  - using/creating tempdir: /tmp/buildiso - building tree for isolinux - copying miscellaneous files
Line: 122 to 141
  You may wish to delete: /tmp/buildiso The output file is: /tmp/SL47-x86_64.iso
Changed:
<
<
[root@hep1 cobbler]# rm -rf /tmp/buildiso/ [root@hep1 cobbler]# ls -l /tmp/SL47-x86_64.iso
>
>
[root@hep1 /]# rm -rf /tmp/buildiso/ [root@hep1 /]# ls -l /tmp/SL47-x86_64.iso
  -rw-r--r-- 1 root root 7327744 Apr 5 17:30 /tmp/SL47-x86_64.iso
Added:
>
>
 

Kickstart Template

Revision 4
05 Apr 2009 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Line: 66 to 66
 

Setting up Cobbler

Added:
>
>
Have cobbler 1.6.2-1 installed on system with the above alterations.

Want to import Scientific Linux 4.7 distro, which is already on the machine at /opt/distro/sl/47/ and available at http://hep1.pa.msu.edu/sl/47/

[root@hep1 cobbler]# cobbler distro add --arch="x86_64" --breed="redhat" --comment="Scientific Linux 4.7 x86_64" \
--initrd="/opt/distro/sl/47/x86_64/images/SL/pxeboot/initrd.img" --kernel="/opt/distro/sl/47/x86_64/images/SL/pxeboot/vmlinuz" \
--ksmeta="tree=http://hep1.pa.msu.edu/sl/47/x86_64/" --name="SL47-x86_64" --os-version="rhel4"

[root@hep1 cobbler]# cobbler report --name=SL47-x86_64
distro               : SL47-x86_64
architecture         : x86_64
breed                : redhat
created              : Sun Apr  5 16:52:42 2009
comment              : Scientific Linux 4.7 x86_64
initrd               : /opt/distro/sl/47/x86_64/images/SL/pxeboot/initrd.img
kernel               : /opt/distro/sl/47/x86_64/images/SL/pxeboot/vmlinuz
kernel options       : {}
ks metadata          : {u'tree': u'http://hep1.pa.msu.edu/sl/47/x86_64/'}
tree build time      : Wed Dec 31 19:00:00 1969
modified             : Sun Apr  5 16:52:42 2009
mgmt classes         : []
os version           : rhel4
owners               : [u'admin']
post kernel options  : {}
redhat mgmt key      : <<inherit>>
redhat mgmt server   : <<inherit>>
template files       : {}

Add a base profile:

[root@hep1 cobbler]# touch /var/lib/cobbler/kickstarts/local/SL47.ks

[root@hep1 cobbler]# cobbler profile add --comment="Base Profile for SL47-x86_64" --distro="SL47-x86_64" \
--enable-menu="no" --kickstart="/var/lib/cobbler/kickstarts/local/SL47.ks" --name="SL47-x86_64"

[root@hep1 cobbler]# cobbler buildiso --iso=/tmp/SL47-x86_64.iso --tempdir=/tmp --distro=SL47-x86_64 --standalone --source="/opt/distro/sl/47/x86_64/"
- using/creating tempdir: /tmp/buildiso
- building tree for isolinux
- copying miscellaneous files
- copying kernels and initrds - for standalone distro
- skipping copying distro files to ISO image
- generating a isolinux.cfg
- Not changing install source to CD
- done writing config
- running: mkisofs -quiet -o /tmp/SL47-x86_64.iso -r -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -V Cobbler\ Install -R -J -T /tmp/buildiso
Unknown file type (unallocated) /tmp/buildiso/.. - ignoring and continuing.
ISO build complete
You may wish to delete: /tmp/buildiso
The output file is: /tmp/SL47-x86_64.iso

[root@hep1 cobbler]# rm -rf /tmp/buildiso/
[root@hep1 cobbler]# ls -l /tmp/SL47-x86_64.iso 
-rw-r--r--  1 root root 7327744 Apr  5 17:30 /tmp/SL47-x86_64.iso
 

Kickstart Template

Revision 3
05 Apr 2009 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Line: 23 to 23
 

Changes to Cobbler

Changed:
<
<
Cobbler knows official Redhat distro directory structures and CentOS, but bot Scientific Linux. When importing a Scientific Linux distro, you might see the error:
>
>
Here are some alterations to cobbler for our use.

Importing SL Distro

Cobbler knows about official Redhat distro directory structures and CentOS, but about Scientific Linux. When importing a Scientific Linux distro, you might see the error:
 
Added:
>
>
No distro signature for kernel at /some/path
 
Changed:
<
<
make this change to recognise Scientific Linux, near line ??? in ???:
>
>
make this change to recognize Scientific Linux, near line 820 in action_import.py:
 
Added:
>
>
signatures = [ [ 'pool' , "debian" ], [ 'SL/RPMS' , "redhat" ], [ 'RedHat/RPMS' , "redhat" ],
 

ISO image generation
Changed:
<
<
We want to use the native "standalone" ISO image generation, but we don't want' to actually put the distro files into the ISO. There are two changes to effect this. Near line ??? in action_buildiso.py, simply comment out the lines that copy the distro RPM files into the ISO image:
>
>
We want to use the native "standalone" ISO image generation, but we don't want to actually put the distro files into the ISO. There are two changes to effect this. Near line 285 in action_buildiso.py, simply comment out the lines that copy the distro RPM files into the ISO image:
 
Added:
>
>
print _("- skipping copying distro files to ISO image") # cmd = "rsync -rlptgu --exclude=boot.cat --exclude=TRANS.TBL --exclude=isolinux/ %s/ %s/../" % (filesource, isolinuxdir) # print _("- copying distro %s files (%s)" % (distname,cmd)) # rc = sub_process.call(cmd, shell=True, close_fds=True) # if rc: # raise CX(_("rsync of files failed"))
 
Changed:
<
<
Near line ??? in action_buildiso.py, comment out the lines that force the install source to be the CD:
>
>
Near line 320 in action_buildiso.py, comment out the lines that force the install source to be the CD:
 
Added:
>
>
print _("- Not changing install source to CD") # cdregex = re.compile("url .*\n", re.IGNORECASE) # kickstart_data = cdregex.sub("cdrom\n", kickstart_data)
 
Revision 2
05 Apr 2009 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Line: 16 to 16
 

Cobbler has a similar work flow that is completely in which the ISO image contains all the needed RPMs, but this ISO is big enough that a DVD is required and not all of our machines have DVD readers (and DVD writers are also rare), so the mixed design of having the boot and configuration files put on the ISO, but having the RPMs downloaded via over the net is useful.
Added:
>
>

References

 

Changes to Cobbler

Cobbler knows official Redhat distro directory structures and CentOS, but bot Scientific Linux. When importing a Scientific Linux distro, you might see the error:
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback