Mackell, Thomas O wrote:
I have a small problem.
Our current Cobbler setup works fine, with the exception of one item.
With some of our servers, we have to use the buildiso to create a
bootable disk.
Ok...
That’s works fine, with the exception of the system profile not being
used by the booting system.
It would appear that only the distro “profile” defined kickstart file
is being used.
Build ISO in 1.2.X contains an option to include the entries for various
system records on the ISO. Each system will appear by name. If you don't
specify it, they are left off, and you just get the profiles. Naturally
the profile records do not know anything about your system-specific
customizations you have made in cobbler, so to include these, it's just:
cobbler buildiso --systems=sys1,sys2,sys3
And that will put those entires into the menu. We can't put all the
system records in the menu automatically because there are limits to how
long a syslinux menu can be. The Cobbler live cd was intended to be an
alternative to this (it is more dynamic and can look up a system by
searching for the mac address), though this solution does not work in
the static IP case.
I noticed that the network devices do not get defined. Which make
sense as there is no network devices in the profile, only the system
profile has the devices.
The snippet returns nothing all blanks.
Which snippet is this? This sounds like one or yours as 1.2.X does not
contain any snippets for network profiles. I would speculate you're
using the static network setup snippet on the Wiki. I recently upgraded
this for inclusion in Cobbler 1.3, and you can see this version in git's
devel branch -- this supports both static and non-static interfaces. The
snippet up on the Wiki is useful but can be problematic as it does not
do anything if you are doing profile based installs and doesn't know how
to represent non-static interfaces. That's why I haven't included
something based on it until now.
My setup has the high level profile with the kickstart file having
the
filesystems, software packages wanted…
The system profile would have the IP address/mac addresses, etc..
Yeah, "System profile" is somewhat confusing. Cobbler has distributions,
profiles, and systems. I take it you mean "system records" here.
I figure I have forgotten something real basic, not sure at this
point.
Try --systems as an argument to "buildiso" and see if that is what you
need. If it's not quite what you want, let us know, and we can look into
seeing how we might do that better.
My first thought was to name the “system” the same as the mac
address,
as in 00:0d:04… That didn’t appear to work, not sure on that either,
yet if I show the rendered kickstart the devices are there as defined
in the “system” entry. That’s how I figured that the “system” entry is
not getting used.
No, syslinux is purely static, we can't do dynamic lookups like this.
The koan live CD /does/ do this, though currently there are some
problems with grubby making this not a viable solution -- and it also
does not work in static IP configurations that do not have any kind of
DHCP. If you are DHCP'ing and configuring static networking later, that
works, but you do need initial DHCP for that to work. Buildiso is purely
a static image built on syslinux so it can't do that kind of autodetection.
Ultimately, this is a reason for pushing for PXE everywhere, but I
understand that is not an immediately viable option in *lots* of
environments.
Is there a way I can supply the “system” profile from the server being
rebuilt end? Or Do I have something else not set up right.
You could also use koan with --replace-self, provided you were doing a
reinstall on a system that already had a viable Linux installation.
I am running cobbler-1.2.4-1 version, under RH V5.2 x86_64...
Thanks in advance,
Tom Mackell
------------------------------------------------------------------------
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler