pxe_just_once does not work for me
by Kashif Mohammad
Hi
There may some thing very simple which I may be missing but pxe_just_once=1 is not working for me. I installed Cobbler on Ubuntu natty and trying to install a ubuntu natty through it. I am using a different dhcp server and I added
cobbler system add --name=* --mac=* --profile=natty-x86_64
I am using customized preseed file and can install unattended ubuntu installation through it. But it is going through the loop, if I change booting sequence after installation then off course it works.
Any hints, pleas
Thanks
Kashif
12 years, 9 months
Re: 'cobbler get-loaders' through http proxy? WAS:Re: cobbler Digest, Vol 37, Issue 1
by Cliff Perry
On 07/01/2011 08:00 AM, cobbler-request(a)lists.fedorahosted.org wrote:
> Send cobbler mailing list submissions to
> cobbler(a)lists.fedorahosted.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://fedorahosted.org/mailman/listinfo/cobbler
> or, via email, send a message with subject or body 'help' to
> cobbler-request(a)lists.fedorahosted.org
>
> You can reach the person managing the list at
> cobbler-owner(a)lists.fedorahosted.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of cobbler digest..."
>
>
> Today's Topics:
>
> 1. 'cobbler get-loaders' through http proxy? (David Lee)
> 2. clean use of cobbler/kickstart and cfengine (David Lee)
> 3. Re: clean use of cobbler/kickstart and cfengine (Jonathan Sabo)
> 4. Re: 'cobbler get-loaders' through http proxy? (J?rgen Maas)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 30 Jun 2011 17:18:18 +0100
> From: David Lee<David.Lee(a)ecmwf.int>
> Subject: 'cobbler get-loaders' through http proxy?
> To: cobbler(a)lists.fedorahosted.org
> Message-ID:<4E0CA1CA.40008(a)ecmwf.int>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> (I'm new to cobbler, and using v 2.0.11)
>
> 'cobbler check' is advising:
>
> 1 : some network boot-loaders are missing from /var/lib/cobbler/loaders,
> you may run 'cobbler get-loaders' to download them, or, if you only want
> to handle x86/x86_64 netbooting, you may ensure that you have installed
> a *recent* version of the syslinux package installed and can ignore this
> message entirely.
>
> It so happens that we are, at present, entirely 'x86_64', using RHEL 5.6
> and above, and all seems well. So in my case I probably don't need to
> go any further at present. (Correct?)
>
> But when, for the fun of it, I tried 'cobbler get-loaders' it appeared
> to hang. I strongly suspect that this is because we need http proxying
> to reach off-site, and it isn't clear whether 'cobbler get-loaders'
> uses, or can use, http proxying (either by command argument or
> environment variable). Have I missed something in the documentation?
May I suggest reviewing:
https://bugzilla.redhat.com/show_bug.cgi?id=666435
Marcelo proposed patches to fix this, but within Satellite. The
Satellite team though is not supporting 'get-loaders' with our
integration of cobbler.
Marcelo - care to propose the same fix upstream to cobbler.
Cliff
>
12 years, 10 months
cobbler freezes at 4%
by Tim Dunphy
Hello list!!
I am having a new issue with cobbler where I am able to kickoff the (virtual) machine creation process, and the kickstart is found and the install begins. But as the data is retrieved from the cobbler server (via the url --url=$tree) option in the kickstart it freezes when it gets to only 4% completion. I tried deleting the distro and re-importing it and recreating the profiles but the result is the same:
## Cobbler pauses at 4% with the url --url=$tree option in KS
+----------------------+ Dependency Check +-----------------------+
| |
| Checking dependencies in packages selected for installation... |
| |
| 4% |
| |
+-----------------------------------------------------------------+
## errors in apache logs
[root@VIRTCENT14:~] #tail -f /var/log/httpd/error_log
[Sun Jul 03 21:31:04 2011] [error] [client 192.168.1.48] (70014)End of file found: mod_mime_magic: read failed from uncompress of /var/www/cobbler/images/rhel56-xen-i386/vmlinuz
[Sun Jul 03 17:31:17 2011] [error] [client 192.168.1.200] File does not exist: /var/www/cobbler/links/rhel56-xen-i386/images/updates.img
[Sun Jul 03 21:31:18 2011] [error] [client 192.168.1.200] File does not exist: /var/www/cobbler/links/rhel56-xen-i386/disc1
[Sun Jul 03 21:31:18 2011] [error] [client 192.168.1.200] File does not exist: /var/www/cobbler/links/rhel56-xen-i386/images/product.img
[Sun Jul 03 17:31:18 2011] [error] [client 192.168.1.200] File does not exist: /var/www/cobbler/links/rhel56-xen-i386/disc1
[Sun Jul 03 21:31:26 2011] [error] [client 192.168.1.200] File does not exist: /var/www/cobbler/links/rhel56-xen-i386/disc1
[Sun Jul 03 17:34:52 2011] [notice] mod_python: (Re)importing module 'cobbler_web.views'
[Sun Jul 03 17:34:53 2011] [notice] mod_python: (Re)importing module 'cobbler_web.views'
[Sun Jul 03 17:34:56 2011] [notice] mod_python: (Re)importing module 'django.core.handlers.modpython'
[Sun Jul 03 17:34:57 2011] [notice] mod_python: (Re)importing module 'django.core.handlers.modpython'
## activity in the access logs
192.168.1.20 - admin [03/Jul/2011:17:34:52 -0400] "GET /cobbler_web/ksfile/edit//var/lib/cobbler/kickstarts/xen.ks HTTP/1.1" 200 5548 "http://cobbler/cobbler_web/ksfile/list" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3"
192.168.1.20 - admin [03/Jul/2011:21:34:52 +0000] "GET /cobbler_web/ksfile/edit//var/lib/cobbler/kickstarts/xen.ks HTTP/1.1" 200 5548 "http://cobbler/cobbler_web/ksfile/list" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3"
The web root for cobbler is on an NFS share:
nas2.summitnjhome.com:/mnt/store/web
1.4T 302G 944G 25% /var/www
And I have no trouble listing the directories:
[root@VIRTCENT14:~] #ls -l /var/www/cobbler/images/rhel56-i386/
total 0
lrwxrwxrwx 1 root apache 64 Jul 3 17:21 initrd.img -> /var/www/cobbler/ks_mirror/rhel56-i386/images/pxeboot/initrd.img
lrwxrwxrwx 1 root apache 61 Jul 3 17:21 vmlinuz -> /var/www/cobbler/ks_mirror/rhel56-i386/images/pxeboot/vmlinuz
[root@VIRTCENT14:~] #ls -l /var/www/cobbler/ks_mirror/rhel56-i386/images/pxeboot/initrd.img
-rw-r--r-- 1 root root 7705221 Mar 29 19:15 /var/www/cobbler/ks_mirror/rhel56-i386/images/pxeboot/initrd.img
This is the kickstart I am attempting to use:
# Kickstart file automatically generated by anaconda.
install
#url --url http://mirror.trouble-free.net/centos/5.6/os/x86_64/
url --url=$tree
#nfs --server 192.168.1.251 --dir /mnt/DVD
lang en_US.UTF-8
network --device eth0 --bootproto dhcp --nameserver 192.168.1.44,4.2.2.2 --hostname snjhnew
#network --device eth0 --bootproto static --ip 192.168.1.28 --netmask 255.255.255.0 --gateway 192.168.1.1 --nameserver 192.168.1.44,4.2.2.2 --hostname snjhnew
rootpw --iscrypted $1$cnyk.8aB$ukF7dhqP0CJDHrPmEKNje1
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone America/New_York
bootloader --location=mbr --driveorder=xvda --append="console=xvc0"
clearpart --all --initlabel
autopart
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux --drives=xvda
#part /boot --fstype ext3 --size=100 --ondisk=xvda
#part pv.2 --size=0 --grow --ondisk=xvda
#volgroup VolGroup00 --pesize=32768 pv.2
#logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=272 --grow --maxsize=544
#logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
$yum_repo_stanza
%packages
@base
@core
@dns-server
@dialup
@editors
@legacy-network-server
@mail-server
@network-server
@news-server
@server-cfg
@text-internet
@web-server
@smb-server
keyutils
puppet
koan
keychain
screen
iscsi-initiator-utils
trousers
fipscheck
device-mapper-multipath
I'd appreciate any advice you might have on how to get past this point.
Thanks!!
Tim
12 years, 10 months
clean use of cobbler/kickstart and cfengine
by David Lee
(I'm new to cobbler, and using v 2.0.11)
This is really a request for ideas.
I'm trying to set up a network deployment and maintenance framework for
a rapidly growing number of Linux boxes.
Cobbler, even though I'm new to it, seems to be an absolute treat. Thanks!
Cobbler principally does the installation of a clean OS (more or less
"out of the box" from the manufacturer) onto the disk. I am strongly
resisting any urge to do any fine-grained tuning at this point, because
that should actually be classed as the first steps of the next item...
'cfengine' (v3.1.4) is ideal for long-term maintenance of such
installations.
But it would be good if that installation procedure could be adjusted
just a little bit to include the installation of the 'cfengine3' rpm
from somewhere (as it is not part of the RHEL distribution) and a
minimal bit of associated scripting (or similar) to tickle 'cfengine'
into action as the freshly installed machine first boots.
What might be a good, clean way to glue that cfengine install/initialise
onto the back end of the cobbler-based installation?
--
: David Lee
: ECMWF (Data Handling System)
: Shinfield Park
: Reading RG2 9AX
: Berkshire
:
: tel: +44-118-9499 362
: email: david.lee(a)ecmwf.int
12 years, 10 months