minimal bootcd for pxe-less environment
by Gunnar Thielebein
My approach is to create bootcds for a network environment where pxe is not
allowed due to an existing altiris deployment conflicting here.
1. The bootcd should be connected via iLO or presented as virtual image to the
destination system (VM).
2. It should be possible to restrict the bootcd to exactly one host system.
3. The bootcd should be used from the systems without any other user intervention.
4. The bootcd should be keepen as slim as possible, installation data can be
carried per http through the net.
5. The boodcd should be creatable from the webinterface.
How could that be done via cobbler?
I've made tests with cobblers buildiso feature. What i've found out it is not
possible to restrict systems to one hosts. Either the profiles are shown in the
selectable also the option to boot from local harddrive is preselected. Is this
configureable somewhere?
I've made tests with an old 256MB laptop. What I wonder is that PXE images works
flawless and also the installation from image through "buildiso --standalone".
But when using a slim bootcd as an source I always get the message "Your system
has not enough memory to use this kind of installation!"
Where is the big difference here?
13 years, 2 months
Anaconda complains about a failed dependency for stuff in a local repo (FC14 tomcat5)
by Alan Crosswell
Hi,
I'm using an FC14 distro which seems to be missing tomcat5 from the ISO,
but it's there after updates. So, I've created a local repo and have
populated it with "yumdownloader --resolve tomcat5" and put all those in
the repo. (I don't have enough disk space on my laptop to duplicate the
entire FC14 updates repo!) When Anaconda is installing, it throws an
error about unfulfilled dependencies yet, when I ignore it and continue,
the dependencies appear to get resolved as the installation works just
fine (but now my installation is no longer "hands off"). I can't find
any post-install logs from anaconda that include the dependency error
message.
Has anyone else seen this? Did I just not grab enough dependencies with
yumdownloader?
Thanks.
/a
13 years, 2 months
cobbler 2.0.10 on rhel6, running somewhere?
by Christian Horn
Hi all,
current RHEL6 x86_64 with a cobbler 2.0.10 from epel,
has someone successfully used cobbler including templates using
snippets on that?
As soon as i try to include snippets in the template i get this,
without good ideas for debugging:
----------------
# *** ERROR ***
#
# There is a templating error preventing this file from rendering correctly.
#
# This is most likely not due to a bug in Cobbler and is something you can fix.
#
# Look at the message below to see what things are causing problems.
#
# (1) Does the template file reference a $variable that is not defined?
# (2) is there a formatting error in a Cheetah directive?
# (3) Should dollar signs ($) be escaped that are not being escaped?
#
# Try fixing the problem and then investigate to see if this message goes
# away or changes.
#
#
# SNIPPET() takes exactly 2 arguments (3 given)
# File "/usr/lib/python2.6/site-packages/cobbler/templar.py", line 141, in render
# data_out = t.respond()
#
# File "cheetah_DynamicallyCompiledCheetahTemplate_1298452891_24_21286.py", line 144, in respond
#
# File "cheetah_DynamicallyCompiledCheetahTemplate_1298452891_24_21286.py", line 81, in __errorCatcher3
#
# File "<string>", line 1, in <module>
#
----------------
- someone having seen this?
- further debug-ideas? Gone through the troubleshooting-section, but right
now my best idea would be setting up the same on a RHEL5..
Christian
13 years, 2 months
R: R: Importing Legacy Kickstart Files
by Mirko Leanza
On Mon, Feb 21, 2011 at 01:18:38PM +0100, Mirko Leanza wrote:
>
> >Just creating cobbler-profiles and having them point at your old
> >kickstart-files should work.
> >Yet, be aware that you should at least set
> > #raw
> >as first line there and
> > #end raw
> >as last line.
>
> >This should prevent cobbler from interpreting things inside of your
> >files.
>
> >For all new generated profiles without legacy its probably useful
> >to write code only once as snippets and then use it for many profiles.
>
> I read about #raw directive, but how I must change the "install/ cdrom"
> directive that are present in my old kickstart file?
>You want to use
> url --url=$tree
>instead, and have the
> #raw
>starting below that line so cobbler can substiture $tree with the variable
>from the cobbler-profile.
>Alternatively you could hardcode a url, but thats not the cobbler-way.
>
>An example cobbbler template is here:
> /var/lib/cobbler/kickstarts/sample.ks
>
>Christian
I try to use the default kickstart Sample, but when from the Web
Interface/Profile I click on "View Kickstart"
Obtain an error:
" # *** ERROR ***
#
# There is a templating error preventing this file from rendering correctly.
#
# This is most likely not due to a bug in Cobbler and is something you can
fix.
#
# Look at the message below to see what things are causing problems.
#
# (1) Does the template file reference a $variable that is not defined?
# (2) is there a formatting error in a Cheetah directive?
# (3) Should dollar signs ($) be escaped that are not being escaped?
#
# Try fixing the problem and then investigate to see if this message goes
# away or changes.
#
#
# SNIPPET() takes exactly 2 arguments (3 given)
# File "/usr/lib/python2.6/site-packages/cobbler/templar.py", line 141, in
render
# data_out = t.respond()
#
# File
"cheetah_DynamicallyCompiledCheetahTemplate_1298390571_14_93336.py", line
256, in respond
#
# File
"cheetah_DynamicallyCompiledCheetahTemplate_1298390571_14_93336.py", line
81, in __errorCatcher3
#
# File "<string>", line 1, in <module>
# "
While if I use my own legacy kickstart (after changing --url and setting
#raw/#end raw) I obtain from the Web interface a 500 internal server error
Going in apache log return the following:
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] mod_wsgi (pid=940):
Exception occurred processing WSGI script
'/var/www/cobbler/svc/services.wsgi'., referer:
http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] Traceback (most
recent call last):, referer: http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] File
"/var/www/cobbler/svc/services.wsgi", line 78, in application, referer:
http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] content = func(
**form ), referer: http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] File
"/usr/lib/python2.6/site-packages/cobbler/services.py", line 91, in ks,
referer: http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] data =
self.remote.generate_kickstart(profile,system,REMOTE_ADDR,REMOTE_MAC),
referer: http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] File
"/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__, referer:
http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] return
self.__send(self.__name, args), referer:
http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] File
"/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request, referer:
http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31]
verbose=self.__verbose, referer:
http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] File
"/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request, referer:
http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] return
self._parse_response(h.getfile(), sock), referer:
http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] File
"/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response, referer:
http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] return
u.close(), referer: http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] File
"/usr/lib64/python2.6/xmlrpclib.py", line 838, in close, referer:
http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] raise
Fault(**self._stack[0]), referer:
http://192.168.60.2/cobbler_web/profile/list
[Tue Feb 22 16:14:10 2011] [error] [client 172.16.17.31] Fault: <Fault 1:
"<type 'exceptions.UnicodeDecodeError'>:'ascii' codec can't decode byte 0xe8
in position 1456: ordinal not in range(128)">, referer:
http://192.168.60.2/cobbler_web/profile/list
So at the moment the unique result that I achieved... is use Cobbler like a
simple PXE Server...
Please help!
What's the problem?
My cobbler version is 2.0.10-1 installed on CentoOS 6, I think I'm losing
some thing...
Mirko
13 years, 2 months
Authentication problem
by xnetua@gmail.com
Hi folks.
I'm using cobbler-2.0.10
I've built it from SRC RPM and I've also tried the latest git version.
The problem is with DJANGO_SETTINGS_MODULE. When I try to login via
web I get the following error:
PythonAuthenHandler cobbler_web.views: EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is undefined.
I've looked through the mailing list and found that this bug *was*
fixed but seems like it was not.
If I do bash export DJANGO_SETTINGS_MODULE=settings authentication
gets cycle loop.
I'm using Centos 5.5 i386 and Django-0.96-1
Possibly the problem is in Django version?
13 years, 2 months
R: Importing Legacy Kickstart Files
by Mirko Leanza
On Mon, Feb 21, 2011 at 12:45:03PM +0100, Mirko Leanza wrote:
> After many years playing with RedHat and CentOS kickstart (since RHEL3.0),
> finally I decide to deploy a Cobbler Server.
>
> That all right work clear and I find it very useful, but I have a
question,
> in the years we create many kickstart files to deploy fast our
installation
> with custom code for automatic partition, custom package selection and a
> considerable %post section for post installation task, there's a way to
> import directly our kickstart files without rewrite it in Cobbler way?
>Just creating cobbler-profiles and having them point at your old
>kickstart-files should work.
>Yet, be aware that you should at least set
> #raw
>as first line there and
> #end raw
>as last line.
>This should prevent cobbler from interpreting things inside of your
>files.
>For all new generated profiles without legacy its probably useful
>to write code only once as snippets and then use it for many profiles.
>Christian
Thank Christian
I read about #raw directive, but how I must change the "install/ cdrom"
directive that are present in my old kickstart file?
Mirko
13 years, 2 months
(no subject)
by Mirko Leanza
Hi list,
After many years playing with RedHat and CentOS kickstart (since RHEL3.0),
finally I decide to deploy a Cobbler Server.
That all right work clear and I find it very useful, but I have a question,
in the years we create many kickstart files to deploy fast our installation
with custom code for automatic partition, custom package selection and a
considerable %post section for post installation task, there's a way to
import directly our kickstart files without rewrite it in Cobbler way?
If is possible this save us much time.
Thank in advance for the response and sorry for my English J
Mirko
13 years, 2 months
Re: [Test-Announce] Fedora 15 Alpha TC2 Available Now!
by Orion Poplawski
On 02/15/2011 10:40 AM, Felix Miata wrote:
> On 2011/02/15 08:36 (GMT-0500) James Laska composed:
>
>> Good-bye install.img, hello initrd.img!
>
>> https://fedoraproject.org/wiki/Anaconda/Features/UnifiedInitrd
>
>> The installer no longer needs to locate where install.img is (network,
>> DVD, HD). The content previously included in the stage#2 install.img
>> file, is now included in the initrd.img.
>
> And goodbye to my to my customary installation method of loading installation
> kernel and initrd from my many little 200M /boot partitions that don't have
> room for being made larger. Good thing the two files needn't be located the
> same place, but it makes keeping track of where they are more complex. I
> guess I can use home's root or give home's root an install dir, and put even
> kernel there too. Or, maybe on my user/local partition. Or, on a FAT or NTFS
> partition?!?!?
Hm, yeah, this is going to break koan as well, isn't it for systems with small
/boot filesystems.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion(a)cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
13 years, 2 months
pxe booting with dnsmasq
by Gunnar Thielebein
Hi all,
I am currently stuck in the task, trying to setup a lab-setup with cobbler and
virtualbox. From my understanding everything regarding pxe-boot is setup. I use
dnsmasq for pxeboot.
One piece of information is unfortanetly missing in the docu or elsewhere: How
does cobbler control dnsmasq in detail? Does ist replace configuration and
reloads dnsmasq silently or does it runs dnsmasq as a subprocess with a specific
configuration file?
I enabled /etc/cobbler/modules.conf (manage_dnsmasq) in dns and dhcp sections
and set the flag "manage_dhcp" in /etc/cobbler/settings. Afterwards I run
"cobbler sync". But theres no dnsmasq process running...
Can you point me into the correct direction?
Best Regards,
Gunnar
13 years, 2 months
how to properly exclude packages
by Nikola Garafolic
Hi,
I want to install few packages during kickstart. Repos are added, and I
added exclude line in epel.repo so that (new version of the) package
does not get installed from epel.
Host installs, and every time it manages to install new version of the
package from epel repository, that I previously excluded.
Am I doing something wrong, is there other proper way to exclude packages?
Funny thing is that when I try to see what repos is the package located
in (yum provides package), there is no epel repository listed due to
exclude line in epel.repo file.
--
Nikola Garafolic
13 years, 2 months