Trouble importing distros
by Chris O'Regan
When I kickstart a system, I have the client mount the directory
containing the ISO images via NFS. This works very well, and there is no
need to mount the ISO image or copy the contents onto the server. I
would like to replicate this with Cobbler. An example import workflow
suggests that it is possible so I tried this:
==========
# mount -o ro,loop \
> /appdata/osimages/redhat/iso/rhel-3-u9/rhel-3-u9-i386-as-disc1.iso \
> /mnt
# cobbler import --path=/mnt \
> --name=rhel-3-u9 \
>
--available-as=nfs://filer-appdata01:/vol/dvol/appdata/osimages/redhat/iso/rhel-3-u9
---------------- (adding distros)
- scanning /mnt for architecture info
- creating new distro: rhel-3-u9-dosutils-autoboot-i386
- creating new profile: rhel-3-u9-dosutils-autoboot-i386
- scanning /mnt for architecture info
- creating new distro: rhel-3-u9-i386
- creating new profile: rhel-3-u9-i386
---------------- (associating kickstarts)
- using default kickstart file choice
- using default kickstart file choice
---------------- (syncing)
# umount /mnt
==========
I had a look around and it seemed as though everything was as I had
expected. So, I went on to add a second distro:
==========
# mount -o ro,loop \
> /appdata/osimages/redhat/iso/rhel-5.2/rhel-5.2-client-i386-dvd.iso \
> /mnt
# cobbler import --path=/mnt \
> --name=rhel-5.2-client \
>
--available-as=nfs://filer-appdata01:/vol/dvol/appdata/osimages/redhat/iso/rhel-5.2
---------------- (adding distros)
- scanning /mnt for architecture info
- kernel header found: kernel-headers-2.6.18-92.el5.i386.rpm
- creating new distro: rhel-5.2-client-i386
- creating new profile: rhel-5.2-client-i386
- scanning /mnt for architecture info
- kernel header found: kernel-headers-2.6.18-92.el5.i386.rpm
- creating new distro: rhel-5.2-client-xen-i386
- creating new profile: rhel-5.2-client-xen-i386
---------------- (associating kickstarts)
---------------- (syncing)
kernel not found: /mnt/dosutils/autoboot/vmlinuz, distro:
rhel-3-u9-dosutils-autoboot-i386
# umount /mnt
==========
Ooops...now my rhel-3 images are missing from /tftpboot and it did not
create a default PXE file. I think I understand the reason why this is
happening: as part of the sync, it wants to copy the kernel and initrd
from the source, but the source is no longer mounted. The work-around is
to manually copy the kernel and initrd from the CD/DVD somewhere Cobbler
can find them and use "cobbler distro add" but "import" is such a time
saver. Is there any possibility that this feature can be added?
Thanks,
Chris
15 years, 7 months
For those folks writing code for cobbler: git tip
by Michael DeHaan
I might have mentioned this before, and if so, apologize for the repeat.
If any of you folks working on Cobbler want to host branches (via
github.com or something else), this allows me to easily preserve patch
attribution in git, and makes merging really trivial. Also you can
just create a new branch for each new feature, and rather than emailing
the whole patch, you can just email a link to the git branch for me to
merge.
Just wanted to throw that suggestion out there, patches sent to the list
are of course fine but this has been working very well for Func and
makes tools like "gitk" a bit more usable.
When doing this though, I'd highly recommend creating seperate branches
in git for each new topic, so it's easier to merge one completed feature
and not pull in parts of another until they are ready.
--Michael
15 years, 7 months
[ANNOUNCE] cobbler 1.2.5, koan 1.2.5
by Michael DeHaan
This release is a continuation of the 1.2.X branch, containing fixes
since the release of Cobbler 1.2.4 and koan 1.2.0. For simplicity I
have bumped koan up to 1.2.5 to match cobbler.
The changes are as follows:
Cobbler
-- Added "--arch" to "cobbler image add/edit"
-- Unbroke dnsmasq management with respect to the missing "bootloaders"
line, similar to the ISC bug fixed in a previous release
-- "--arch" for "distro add/edit" now correctly changes the settings
-- Fixed a source code merge error that broke profile removal in the
webapp (and XMLRPC)
-- Fixed the code that displays two checkboxes in the "repo" section of
the webapp, so they now display the appropriate setting.
Koan
-- When using --replace-self, the kickstart file referenced is now the
one embedded in the initrd, making things work nicer in no-DHCP setups
or cases where a DHCP timeout is reached between stages (portfast
problems, etc). This was old behavior in koan, though the change to the
dynamically generated URLs removed it. This fixes that back.
As always, thanks to everyone who helped test and reported items for
1.2.X thus far, and let me know if anyone has any problems with this
update. So far it looks like 1.2.X is looking to be a very stable
release and these changes were relatively small.
For those that don't want to wait for the mirrors to pick up
cobbler/koan 1.2.5, you can get the source RPMs here:
http://people.fedoraproject.org/~mdehaan/files/cobbler/
Thanks!
--Michael
15 years, 7 months
Re: koan: Couldn't download .../ks.cfg
by Tim French
Hi Michael:
Thanks for the quick response.
I'm new to Cobber but it's exactly what I've been looking for.
This is a new install.
I checked the /etc/httpd/conf.d for .rpmnew files and there are none.
I looked at the files in /etc/httpd/conf.d but maybe I don't know what
I'm looking for.
I also read https://fedorahosted.org/cobbler/wiki/ModPythonDetails good
info.
I get that /var/www/cobbler is volitile and I should not put anything in
that tree.
The kickstart data is being created, I used
cobbler profile getks --name=RHEL5.2_server-i386
and the data is fine.
My problem is that the ks.cfg file is not being created.
Also, there is no kickstarts dir under /var/www/cobbler
I just successfully kickstarted my first box but I had to
cobbler profile edit --name=RHEL5.2_server-i386
--kickstart=/etc/cobbler/rh5_with_no_install_num.ks
cobbler profile getks --name=RHEL5.2_server-i386 >
/var/www/html/mystuff/ks.cfg
cobbler profile edit --name=RHEL5.2_server-i386
--kickstart=http://cobbler_server/mystuff/ks.cfg
Then the koan worked fine.
But if I just
cobbler profile edit --name=RHEL5.2_server-i386
--kickstart=/etc/cobbler/rh5_with_no_install_num.ks
koan gives my the Cannot find ks.cfg error
So, the kickstart data is being created, the ks.cfg file is not.
Timothy French <tim.french(a)utah.edu>
Office of Information Technology, University of Utah
Key fingerprint = 838C F04D AAC8 6D9C 7ED7 2629 925E BF3E 1FD1 826C
This is a bit kludgy, so you might want to rethink why you want to do it.
15 years, 7 months
Where do you store your own snippets?
by Dave Augustus
I started putting mine in /var/lib/cobbler/snippets
But then I saw chatter on IRC about other possibilities.
Would /var/lib/cobbler/local_snippets be best?
Thanks!
Dave
15 years, 7 months
Can't set arch to x86_64 (with distro add/edit --arch)
by Chris O'Regan
Importing a DVD correctly determines the architecture and sets it correctly:
distro : testing-x86_64
breed : redhat
os version : rhel5
architecture : x86_64
initrd : /mnt/images/pxeboot/initrd.img
kernel : /mnt/images/pxeboot/vmlinuz
kernel options : {}
post kernel options : {}
ks metadata : {'tree':
'nfs://filer-appdata01:/vol/dvol/appdata/osimages/redhat/iso/rhel-5.2/'}
owners : ['admin']
But even when I specify the architecture as "x86_64", using "distro add"
or "distro edit" always sets the architecture to "i386".
cobbler distro add \
--name=rhel-5.2-server-x86_64 \
--kernel=/appdata/osimages/redhat/bootimages/rhel-5.2-server-x86_64/vmlinuz
\
--initrd=/appdata/osimages/redhat/bootimages/rhel-5.2-server-x86_64/initrd.img
\
--ksmeta="tree=nfs://filer-appdata01:/vol/dvol/appdata/osimages/redhat/iso/rhel-5.2/"
\
--arch=x86_64 \
--breed=redhat \
--os-version=rhel5
Results in:
distro : rhel-5.2-server-x86_64
breed : redhat
os version : rhel5
architecture : i386
initrd :
/appdata/osimages/redhat/bootimages/rhel-5.2-server-x86_64/initrd.img
kernel :
/appdata/osimages/redhat/bootimages/rhel-5.2-server-x86_64/vmlinuz
kernel options : {}
post kernel options : {}
ks metadata : {'tree':
'nfs://filer-appdata01:/vol/dvol/appdata/osimages/redhat/iso/rhel-5.2/'}
owners : ['admin']
The only way to change the architecture is to manually modify the file
in distro.d.
Chris
15 years, 7 months
koan: Couldn't download .../ks.cfg
by Tim French
It seems that the cobbler kickstart templates are not working.
RH 5.2 2.6.18-92.1.10.el5 #1 SMP
cobbler-1.2.4-1
python-setuptools-0.6c7-1.el5
python-cheetah-2.0.1-1.el5
ls -ltra /var/lib/cobbler/kickstarts/RHEL5.2_server-i386/sample.ks
-rw-r--r-- 1 root root 1187 Sep 25 10:15
/var/lib/cobbler/kickstarts/RHEL5.2_server-i386/sample.ks
I can force the ks file in /var/www/cobbler/
But I have to create new directories and they are removed when I
cobbler sync
cobbler profile edit --name=RHEL5.2_server-i386
--kickstart="/var/lib/cobbler/kickstarts/RHEL5.2_server-i386/sample.ks"
Timothy French <tim.french(a)utah.edu>
Office of Information Technology, University of Utah
Key fingerprint = 838C F04D AAC8 6D9C 7ED7 2629 925E BF3E 1FD1 826C
This is a bit kludgy, so you might want to rethink why you want to do it.
15 years, 7 months
Bonding- modprobe.conf items
by Dave Augustus
Just saw this in one of my servers in /etc/modprobe.conf
alias bond0 bonding
alias bond1 bonding
options bonding mode=active-backup max_bonds=2
Here is the explanation of the bonding modes:
# bonding modes:
# 0 sets a round-robin policy for fault tolerance (FT) and load
balancing (LB)
# 1 sets an active-backup policy for FT
# 2 sets an xor (exclusive-or) policy for FT and LB
# 3 sets a broadcast policy for FT
# 4 sets an IEEE 802.3ad dynamig link aggregation policy
# 5 sets a transmit load balancing (TLB) policy for FT and LB
# 6 sets an active load balancing (ALB) policy for FT and LB
#
Thanks,
Dave
15 years, 7 months
First time cobbler :)
by Ronald J. Yacketta
Hello everyone!
I have been tasked with replacing our current fedora repo mirror / PXE
boot / DHCPd / tftpd setup with a cobbler setup, only wrench in the
plan is keeping our current fedora repo (not replicating / replacing
with cobbler).
So, is it possible to have cobbler look at 'non cobbler' repository to
install from instead of importing / creating a repo / distro etc..
within cobbler?
-Ron
15 years, 7 months