Re: [cobbler] Reference to kickstart file is missing from /var/lib/tftpboot/pxelinux.cfg/* files

2015-10-30 Thread Zarko Dudic

Hi, the resolution is actually simple.

The line like:

ks=http://cobbler-server/cblr/svc/op/ks/system/system-to-be-installed

has to be added as Kernel Options in System's General tab.



___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler


Re: [cobbler] Reference to kickstart file is missing from /var/lib/tftpboot/pxelinux.cfg/* files

2015-10-30 Thread Orion Poplawski

On 10/23/2015 03:30 PM, Zarko Dudic wrote:

Hallo, I've been using cobbler 2.6.9 and would like to check if this
behaviors is expected.

Basically, there is a system with associated kickstart file (added via
systems – general – kickstart) and clicking on “view kickstart” all
looks well. But once the server boots and hits the cobble, installation
fails since kickstart file cannot be found.

Then the line ks=http:///cblr/svc/op/ks/system/

ia added to the end of “append” in the file
/var/lib/tftpboot/pxelinux.cfg/ and this resolves the
installation problem.

Also each time a system is updated and saved via web interface, the
ks=http:///cblr/svc/op/ks/system/ is gone. Is
this all expected?


Sorry, your english is a little hard to parse.

Did you enable netboot/pxeinstall for the system?  Doing that should 
generate a system specific file in /var/lib/tftpboot/pxelinux.cfg file 
based on /etc/cobbler/pxe/pxesystem.template which should look like:


default linux
prompt 0
timeout 1
label linux
kernel $kernel_path
ipappend 2
$append_line


The append_line will be generated by cobbler with the ks= option.


--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA DivisionFAX: 303-415-9702
3380 Mitchell Lane  or...@cora.nwra.com
Boulder, CO 80301  http://www.cora.nwra.com
___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler


Re: [cobbler] Reference to kickstart file is missing from /var/lib/tftpboot/pxelinux.cfg/* files

2015-10-30 Thread Zarko Dudic
Yes, netboot has been enabled. I found resolution or work around and it 
is to have line like:


ks=http://cobbler-server/cblr/svc/op/ks/system/system-to-be-installed

... as Kernel Options in System's General tab.

On 10/30/2015 6:47 PM, Orion Poplawski wrote:


Sorry, your english is a little hard to parse.

Did you enable netboot/pxeinstall for the system?  Doing that should 
generate a system specific file in /var/lib/tftpboot/pxelinux.cfg file 
based on /etc/cobbler/pxe/pxesystem.template which should look like:


default linux
prompt 0
timeout 1
label linux
kernel $kernel_path
ipappend 2
$append_line


The append_line will be generated by cobbler with the ks= option.




--
Thanks,
Zarko

___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler


Re: [cobbler] Install program from source tar

2015-10-30 Thread Robert Jacobson

I find it easier to put a SNIPPET to start post logging.  In the kickstart:

%post
mv -f /mnt/sysimage/root/ks-post.log /mnt/sysimage/root/ks-post.log.old
$SNIPPET('log_ks_post')
[...]

The snippet "log_ks_post" contains:

set -x -v
exec 1>/root/ks-post.log 2>&1

That way every snippet after %post will get logged to /root/ks-post.log


On 2015-10-29 5:52 PM, Locane wrote:
> Yes - you should be able to simply put any bash commands you want to
> run after the installation is finished in the "%post" section of the
> kickstart file.  It's helpful to set up some logging of it so you can
> analyze after the fact what it did and didn't do.

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Robert Jacobson   robert.c.jacob...@nasa.gov
Lead System Admin   Solar Dynamics Observatory (SDO)
Bldg 14, E222 (301) 286-1591 

___
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler