[PATCH] Add chain.c32 to the distribution
by Jeroen van Meeuwen
Hi,
In an attempt to boot a virtual QEMU-KVM system from the local hard
drive using a PXE menu entry, I've come up with the following;
Add chain.c32 to the cobbler distribution.
chain.c32 is particularly useful when you are using qemu(-kvm)
where the BIOS isn't capable of switching boot devices. In these
cases, using "localboot 0" will just restart the PXE boot. With
chain.c32 though, you can use the following snippet in
/etc/cobbler/pxe/pxelocal.template to boot from the local hard-
drive:
label local
menu label Boot from local harddrive
kernel chain.c32
append hd0 0
where "hd0" is the hard drive number (use fd0 for floppy, etc.),
and 0 is the partition number.
Attached is a patch that adds chain.c32 to cobbler (just like menu.c32),
but if applied, you will need to copy /usr/lib/syslinux/chain.c32 to
loaders/chain.c32 manually (as binary foo does not show in git patches).
Kind regards,
Jeroen van Meeuwen
-kanarip
15 years, 4 months
cobbler reposync download / upload rate limit
by Lanton Hulisani Vhengani
Hi
I was wondering if there is a way of passing rsync options for cobbler
reposync. I am particularly interested in the rsync's --bwlimit=KBPS
option. I would like to limit the transfer rate to a minimun so that
repository downloads should not impact our network.
And if not possible, I have noticed that Cobbler generates commands such
as rsync -avz <site>:/var/www/cobbler/repo_mirror /var/www/cobbler
when performing a reposync. May someone please point me to where the
-avz options are set?
Thanks in advance,
Lanton
15 years, 4 months
issues with cobbler pxe boot
by Jose
Hi,
I am running cobblerd on fc7 machine (with cobbler-1.0.2-1), as a
pxe server for F10 (fedora 10 is imported from a DVD mirror).
The server has two nics but when I added the suggested workaround
(IPAPPEND 2) and the append parameters it would boot to a blank
menu where the F10 option would not appear.
So, the get things done I removed the second nic (not onboard)
and I proceeded again.
When I get the message Waiting for NetManager to configure eth0,
it takes a while and it fails, when I press on retry it goes on without
trouble.
After this step it proceeds to install the 412 packages
After the post-install scripts it reboots and if I try to boot from local
disk it goes to GRUB prompt.
What should I do to get this fixed ?
thanks and regards
jose
15 years, 4 months
[ANNOUNCE] Cobbler 1.4.0, koan 1.4.0
by Michael DeHaan
It's time to play the music.
It's time to light the lights.
It's time to announce the Cobbler on the mailing list tonight.
Or something. I felt like some fanfare was required.
Cobbler 1.4's been a very special and looooong release. The last
stable release, 1.2 came out at the end of August (with update releases
for 1.2 still coming out through October), and the development branch of
Cobbler has been taking off since then. We've kept it going because I
didn't want to stop the energy. It's been huge. Not counting things
applied to the 1.2.X branch, the changelog is almost 70 items long
(http://git.fedorahosted.org/git/cobbler.git?p=cobbler;a=blob_plain;f=CHAN...).
The levels of involvement are at an all time high and the many features
you'll see have been developed by an extremely large amount of people,
which is definitely what I like to see -- Cobbler is definitely
achieving it's aims of being an install tool all administrators and
systems management developers can share, and that theme continues with
this release more than ever.
So, what's new?
There's a lot of features, largely described here.
https://fedorahosted.org/cobbler/wiki/WhatsNewInThirteen. If that's
too much reading, what should you care about and use?
-- Advanced networking setup. If you're using --hostname before, be
aware --dns-name does what the old hostname does. Your configurations
will be migrated automatically.
-- Integrated power management features so you can manage your power
configurations directly from cobbler, and make reinstallation of power
managed systems incredibly simple.
-- Much improved support for other distribtutions, such as Debian, which
will continue to evolve in future releases.
-- Support for ppc netbooting. Koan will now also do --replace-self on
ppc and s390
-- Rescue profiles are automatically created during import time,
allowing them to be deployed over the network and used with "cobbler
buildiso"
-- Virtual image cloning, and better options for managing things like
memtest and assigning images to netboot to specific systems, images can
also be edited in the webapp
-- Web application reorganization and many new fields, and a much
improved editor for multiple network interfaces
-- Upgrades to reposync to support multiple retries and to be able to
ignore failures on particular repos
-- Better integration with Puppet and also a new lightweight built-in
configuration management system based on Cobbler templates.
-- Lots of bugfixes and minor improvements that are too numerous to name.
-- Easier registration and key management for Red Hat Satellite Server
and RHN Hosted, for those using those applications
-- ... and a lot of other things
A huge thanks to everyone that helped with ideas, development, and
testing of the 1.3.X branch and this release. I've said it before, but
I really mean it -- this release could not happen without all of you.
RPMs have been pushed to Fedora 8, 9, 10 and rawhide, as well as EPEL-4
and EPEL-5 (testing for now, stable when that rolls over). You can
also find source RPMs and tarballs at
http://people.fedoraproject.org/~mdehaan/files/cobbler/
Please report any problems you find as we will continue to do update
releases to this stable branch as we work on the 1.5.X release.
For those interested in the development branch, it is once again active
and repurposed for 1.5 (remember, we're using the odd=devel, even=stable
numbering scheme) -- I will be looking at merging the backlog of patches
today and Monday, and you'll be hearing more from me shortly about
broader plans and some of the things I'd like to focus on for the future.
Happy installing!
--Michael
15 years, 4 months
SELinux update -- what Cobbler 1.4 will do with SELinux
by Michael DeHaan
Cobbler's final selinux strategy is thus:
-- do restorecon after copies if SELinux is enabled
Install a few rules in RPM %post and remove them in %postuninstall
# add selinux rules
if [ -x /usr/sbin/semanage ]; then
/usr/sbin/selinuxenabled
if [ "$?" -eq "0" ]; then
echo "selinux is enabled"
/usr/sbin/semanage fcontext -a -t public_content_t
"/var/www/cobbler/images/.*" >/dev/null &2>1 || /bin/true
/usr/sbin/semanage fcontext -a -t public_content_t
"/var/lib/tftpboot/images/.*" >/dev/null &2>1 || /bin/true
/usr/sbin/semanage fcontext -a -t public_content_t
"/tftpboot/images/.*" >/dev/null &2>1 || /bin/true
fi
fi
# remove selinux rules
if [ -x /usr/sbin/semanage ]; then
/usr/sbin/selinuxenabled
if [ "$?" -eq "0" ]; then
/usr/sbin/semanage fcontext -d "/var/www/cobbler/images/.*"
1>/dev/null 2>&1 || /bin/true
/usr/sbin/semanage fcontext -d "/var/lib/tftpboot/images/.*"
1>/dev/null 2>&1 || /bin/true
/usr/sbin/semanage fcontext -d "/tftpboot/images/.*" 1>/dev/null
2>&1 || /bin/true
fi
fi
Comments welcome -- this seems to work for me. I sometimes se semanage
transaction locks on the removal parts but the RPM is coded to install
fine regardless, so it seems ok. This locking may only happen on my
machine.
If selinux is off in your case it will skip these parts altogether.
--Michael
15 years, 4 months
questions regarding cobbler import and automated repos
by Joshua Baldock
When adding my RHEL5 ISO to the cobbler server I used the "cobbler import" to import the DVD and configure all the default profiles. As part of this, some repos were created core-0 to core-7. Core-0 to Core-3 are created for each of the different RPM dirs on the DVD, eg VT, ClusterStorage, etc. Looking at Core-4 to Core-7 they seem to be a duplicate of Core-0 to Core-3.
Would just like to know if there is more of a difference between these auto created repos, or it only core-0 to core-3 are needed? Also is there a way of setting the name of these repos at the time of importing the DVD? I know I can chank the info in the .repo files later to change the name.
Cheers.
________________________________
Information contained in this communication (including any attachments) is confidential and may be privileged or subject to copyright. If you have received this communication in error you are not authorised to use the information in any way and Optiver requests that you notify the sender by return email, destroy all copies and delete the information from your system. Optiver does not represent, warrant or guarantee that this communication is free from computer viruses or other defects or that the integrity of this communication has been maintained. Any views expressed in this communication are those of the individual sender. Optiver does not accept liability for any loss or damage caused directly or indirectly by this communication or its use.
Please consider the environment before printing this email.
15 years, 4 months
[PATCH] Fix podchecker errors
by James Laska
---
docs/cobbler.pod | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/cobbler.pod b/docs/cobbler.pod
index b7361c2..6e0af69 100644
--- a/docs/cobbler.pod
+++ b/docs/cobbler.pod
@@ -368,7 +368,7 @@ Example:
cobbler system report --name=foo
-=end
+=back
=head2 REPOSITORIES
@@ -708,7 +708,7 @@ If the avahi-tools package is installed, cobblerd will broadcast it's presence o
=head2 IMPORTING TREES
Cobbler can auto-add distributions and profiles from remote sources, whether this is a filesystem path or an rsync mirror. This can save a lot of time when setting up a new provisioning environment. Import is a feature that many users will want to take advantage of, and is very simple to use.
-
+
After an import is run, cobbler will try to detect the distribution type and automatically assign kickstarts. By default, it will provision the system by erasing the hard drive, setting up eth0 for dhcp, and using a default password of "cobbler". If this is undesirable, edit the kickstart files in /etc/cobbler to do something else or change the kickstart setting after cobbler creates the profile.
Mirrored content is saved automatically in /var/www/cobbler/ks_mirror.
--
1.6.0.4
15 years, 4 months
connection timed out
by Jolynn Schmidt
Hello,
I am running koan-1.2.5-1.el5 and cobbler-1.2.5-1.el5.
I created a new cobbler server and used cobbler replicate to populate it. I replicated from another server running cobbler-1.2.5-1.el5. When I try to run koan to rebuild a box I keep getting a connection times out error, but when I run a wget against the same URL I have no issue with the download.
koan -s 172.32.1.10 -p centos5.2-server -r
- reading URL: http:// 172.32.1.10/cblr/svc/op/ks/profile/centos5.2-server
downloading initrd initrd.img to /boot/initrd.img
url=http:// 172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img
- reading URL: http:// 172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/koan/app.py", line 840, in get_distro_files
utils.urlgrab(initrd,initrd_save)
File "/usr/lib/python2.4/site-packages/koan/utils.py", line 144, in urlgrab
data = urlread(url)
File "/usr/lib/python2.4/site-packages/koan/utils.py", line 126, in urlread
raise InfoException, "Couldn't download: %s" % url
InfoException: "Couldn't download: http:// 172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img"
error downloading files
but this works:
wget http:// 172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img
--10:24:52-- http:// 172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img
Connecting to 172.32.1.10:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5923367 (5.6M) [application/octet-stream]
Saving to: `initrd.img.1'
100%[=======================================>] 5,923,367 --.-K/s in 0.05s
10:24:53 (113 MB/s) - `initrd.img.1' saved [5923367/5923367]
I grabbed the python code and made a little urlread and urlgrab and have the same issue downloading. Error; connection timed out. The host running koan and the cobbler server are on the same subnet.
I am not sure what is up. Thoughts?
#!/usr/bin/python
import urllib2, sys
def urlread(url):
if url.startswith("http") or url.startswith("ftp"):
try:
fd = urllib2.urlopen(url)
data = fd.read()
fd.close()
return data
except:
print "Couldn't download: %s" % url
print "error", sys.exc_info()[0]
raise
def urlgrab(url,saveto):
"""
like urlread, but saves contents to disk.
see comments for urlread as to why it's this way.
"""
data = urlread(url)
fd = open(saveto, "w+")
fd.write(data)
fd.close()
urlgrab("http://172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img","gotme")
#urlread("http://172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img")
Jolynn Schmidt
________________________________
This e-mail and its attachments are intended only for the individual or entity to whom it is addressed and may contain information that is confidential, privileged, inside information, or subject to other restrictions on use or disclosure. Any unauthorized use, dissemination or copying of this transmission or the information in it is prohibited and may be unlawful. If you have received this transmission in error, please notify the sender immediately by return e-mail, and permanently delete or destroy this e-mail, any attachments, and all copies (digital or paper). Unless expressly stated in this e-mail, nothing in this message should be construed as a digital or electronic signature.
15 years, 4 months
Re: [PATCH] is_selinux_enabled returns false if selinuxenabled command doesn't exist
by Kevin James
On Thu, 2008-12-18 at 12:37 -0500, Michael DeHaan wrote:
> Thanks, I'm going to apply this one and then hold the remainder of the
> compatibility patches for the 1.5.X development branch, which will start
> up next week.
>
> --Michael
>
Great, I'll hold the patches and then resubmit when you've announced the
1.5.X devel branch.
Cheers,
KEv.
--
Kevin James
Applied Technology Senior Strategist
Novell Global Enablement
------------------------
Novell, Inc.
http://www.novell.com
15 years, 4 months
Patch queue
by Michael DeHaan
I currently have about 15 patches to apply once I merge 1.3 back into
master and release 1.4, so if you are wondering why I haven't applied
your favorite patch yet, I haven't forgotten about you. I plan to get
most of this merged in on 12/23.
--Michael
15 years, 4 months