Foreman Discovery Image 2.0 is out

Hello,

we are releasing new major version of the Discovery Image. A minimized version
of CentOS 7.0 used to PXEBoot unknown bare-metal hosts registering them in
Foreman via Discovery plugin. The image does support both Foreman 1.6 and
upcoming 1.7.

Installation can be done via our foreman-installer for nightly builds (*), or
manually for earlier versions:

wget http://downloads.theforeman.org/discovery/releases/latest/fdi-image-latest.tar
-O - | tar x --overwrite -C /var/lib/tftpboot/boot

The download link for 2.0 series is:

http://downloads.theforeman.org/discovery/releases/2.0/

Note we are changing the distribution format. Now it's a tar archive
containing the kernel, the image, md5sum and README files.

Upgrade from 0.6 is straightforward. Download the image either manually or via
our installer and change PXELinux Default template as some of the parameters
are different now. There are no changes in the functionality, but bigger
differences are under the hood:

  • image is smaller in size (only 145 MB whole RAM disk)
  • much faster and easier to build (dropped ovirt-node support)
  • easier downstream building (in koji)
  • based on centos7 (fedora is still supported for your own builds)
  • systemd and network manager full support (fast and reliable boot)
  • easier to troubleshoot (discovery-debug script, ssh access)
  • reboot bug fixed (proxy was killing HTTP connection)

The PXELinux Default template should include the following:

LABEL discovery
MENU LABEL Foreman Discovery
MENU DEFAULT
KERNEL boot/fdi-image/vmlinuz0
APPEND initrd=boot/fdi-image/initrd0.img rootflags=loop root=live:/fdi.iso rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0 rd.lvm=0 rd.bootif=0 rd.neednet=0 nomodeset foreman.url=http://xyz
IPAPPEND 2

Note the different root statement (fdi.iso and not foreman.iso) and different
kernel and image path which now defaults to fdi-image/ subdirectory. Also note
the rd.bootif and rd.neednet options which are recommended now. The APPEND
statement MUST be one line!

When debugging the image, feel free to add fdi.ssh=1 fdi.rootpw=redhat
parameters to the kernel command line to enable SSH and set root password to
"redhat" (plain text). Not recommended for production.

When reporting bugs, please use discovery-debug command and pastebin the
output into our bug tracker:

http://projects.theforeman.org/projects/discovery/issues/new

(*) To use the installer wait for tomorrow nightly, then it's really just one
command:

foreman-installer -v
–enable-foreman-plugin-discovery
–foreman-plugin-discovery-install-images=true

You can mix and match the manual or the installer method, they will both work
just fine.

··· -- Later, Lukas #lzap Zapletal