Thank you Greg! it's work fine!

cobbler import --path=/mnt/iso --name=f21 --kickstart=/var/lib/cobbler/kickstarts/default.ks
task started: 2015-02-26_112400_import
task started (id=Media import, time=Thu Feb 26 11:24:00 2015)
Found a candidate signature: breed=redhat, version=rhel6
Found a candidate signature: breed=redhat, version=rhel7
Found a candidate signature: breed=redhat, version=fedora21
Found a matching signature: breed=redhat, version=fedora21
Adding distros from path /var/www/cobbler/ks_mirror/f21:
creating new distro: f21-x86_64
trying symlink: /var/www/cobbler/ks_mirror/f21 -> /var/www/cobbler/links/f21-x86_64
creating new profile: f21-x86_64
associating repos
checking for rsync repo(s)
checking for rhn repo(s)
checking for yum repo(s)
starting descent into /var/www/cobbler/ks_mirror/f21 for f21-x86_64
processing repo at : /var/www/cobbler/ks_mirror/f21
need to process repo/comps: /var/www/cobbler/ks_mirror/f21
looking for /var/www/cobbler/ks_mirror/f21/repodata/*comps*.xml
Keeping repodata as-is :/var/www/cobbler/ks_mirror/f21/repodata
*** TASK COMPLETE ***

Best regards,
                             Estrella

On 02/25/2015 05:36 PM, Greg Swift wrote:


On Wed, Feb 25, 2015 at 11:11 AM, Greg Swift <gregswift@gmail.com> wrote:


On Wed, Feb 25, 2015 at 8:53 AM, Estrella Zaton Martin <ezaton@iac.es> wrote:
Hello,

I'm trying to import the fedora 21 distro from rsync or dvd with:

cobbler import --path=/mnt/iso --name=fedora21 --arch=x86_64

but it fails with !!! TASK FAILED !!!

After, I tried to add the distro uploaded before with:

cobbler distro add --name=fedora21-x86_64 --ksmeta="tree=ftp://nas-deploy.ll.iac.es/media/fedora/releases/21/Fedora/x86_64/os/" kernel=/var/www/cobbler/ks_mirror/fedora21-x86_64/images/pxeboot/vmlinuz initrd=/var/www/cobbler/ks_mirror/fedora21-x86_64/images/pxeboot/initrd.img --arch=x86_64 --breed=redhat --os-version=fedora21

and it seems to be ok, but if I do: cobbler distro list or cobbler report, no distros appear...

Is there anyone could have imported the fedora21 distro? how?

Thank you and best regards,

           Estrella

Hi!  I'm actually in the progress of writing a blog post about this journey :)

I can't tell what iso you are using for this, so I'm just going to give you my summary of how i got it working. Be sure to change the arch as necessary for your setup:

1: Import Fedora 21 Server netinstall as your distro  (same commands you ran above but with one of these isos:
http://dl.fedoraproject.org/pub/fedora/linux/releases/21/Server/x86_64/iso/ )
2: Sync the Fedora/21/Everything repository (use --mirror-locally=False if you can get away with it! :)
cobbler repo add --name=fedora21-everything-64 --breed=yum --arch=x86_64 --mirror=http://dl.fedoraproject.org/pub/fedora/linux/releases/21/Everything/x86_64/os/
3: Now they have to be glued together.  You need to copy the .treeinfo and images directories from the distro into everything repo.
cp -pr /var/www/cobbler/ks_mirror/fedora21/{.treeinfo,LiveOS,images}  /var/www/cobbler/repo_mirror/fedora21-everything-64/
4: Then you need to edit the distro's tree path
cobbler distro edit --name=fedora21-x86_64 --ksmeta=tree=http://@@http_server@@/cblr/repo_mirror/fedora21-everything-x86_64

I came up with this at like 1am last night, so i might not have caught everything here.  Plus there is probably a was better method. Maybe manually syncing the everything repo, adding the distro bits, and then using that to do the distro import? Would definitely leave cobbler setup cleaner, imho.

-greg

For what its worth my quickly thrown up blog post just went live:

http://nytefyre.net/2015/02/kickstarting-fedora-21-workstation-with-cobbler/

-greg


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

-- 
Estrella Zatón Martín				
Ingeniero del GSC. Servicios Informáticos Comunes.
Instituto de Astrofísica de Canarias

C/Via Lactea s/n
38200 La Laguna, Tenerife. España
Tfno: +34 922 605 320
Fax:  +34 922 605 210
email: ezaton@iac.es
http://www.iac.es


ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protección de Datos, acceda a http://www.iac.es/disclaimer.php
WARNING: For more information on privacy and fulfilment of the Law concerning the Protection of Data, consult http://www.iac.es/disclaimer.php?lang=en