Problem with creating ISO "isohybrid: .... unable to find efi image"

Problem:
I installed a new Foreman version 2.5.2 on a Debian 10 to replace our old Foreman 1.23.2 on Centos. We use bootdisk to install VMs. This worked fine on the old system.
The problem is that this unfortunately does not run on the new Foreman.

The installation settings in the foreman-installer have been taken over manually.

When creating a VM, the following error appears:

The error on the command line:

root@****:~# foreman-rake bootdisk:generate:generic --trace
** Invoke bootdisk:generate:generic (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute bootdisk:generate:generic
mkfs.fat 4.1 (2017-01-24)
genisoimage: option '-e' is ambiguous; possibilities: '-eltorito-boot' '-eltorito-alt-boot' '-eltorito-catalog' '-exclude' '-exclude-list' '-ethershare' '-exchange'
Usage: genisoimage [options] -o file directory ...

Use genisoimage -help
to get a list of valid options.

Report problems to debburn-devel@lists.alioth.debian.org.
rake aborted!
Foreman::Exception: ERF42-8093 [Foreman::Exception]: ISO build failed
/usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_bootdisk-17.1.0/app/services/foreman_bootdisk/iso_generator.rb:160:in `generate'
/usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_bootdisk-17.1.0/lib/tasks/bootdisk.rake:51:in `block (4 levels) in <top (required)>'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:108:in `as'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:114:in `as_anonymous_admin'
/usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_bootdisk-17.1.0/lib/tasks/bootdisk.rake:48:in `block (3 levels) in <top (required)>'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:83:in `block in run'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:80:in `run'
/usr/bin/rake:27:in `<main>'
Tasks: TOP => bootdisk:generate:generic

After some searching I found the following “solution” for this:

Now the following error appears:

root@rzvforeman02:~# foreman-rake bootdisk:generate:generic --trace
** Invoke bootdisk:generate:generic (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute bootdisk:generate:generic
mkfs.fat 4.1 (2017-01-24)
I: -input-charset not specified, using utf-8 (detected in locale settings)
Size of boot image is 4 sectors -> No emulation
Size of boot image is 8192 sectors -> No emulation
Total translation table size: 2048
Total rockridge attributes bytes: 0
Total directory bytes: 4652
Path table size(bytes): 34
Max brk space used 23000
2486 extents written (4 MB)
isohybrid: /usr/share/foreman/bootdisk20210721-27854-mn8mwv.iso: unable to find efi image
rake aborted!
Foreman::Exception: ERF42-7535 [Foreman::Exception]: ISO hybrid conversion failed: pid 27875 exit 1
/usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_bootdisk-17.1.0/app/services/foreman_bootdisk/iso_generator.rb:163:in `generate'
/usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_bootdisk-17.1.0/lib/tasks/bootdisk.rake:51:in `block (4 levels) in <top (required)>'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:108:in `as'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:114:in `as_anonymous_admin'
/usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_bootdisk-17.1.0/lib/tasks/bootdisk.rake:48:in `block (3 levels) in <top (required)>'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:83:in `block in run'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/share/foreman/vendor/ruby/2.5.0/gems/rake-13.0.6/lib/rake/application.rb:80:in `run'
/usr/bin/rake:27:in `<main>'
Tasks: TOP => bootdisk:generate:generic

Does anyone have an idea

Expected outcome:
ISO file is created for VM

Foreman and Proxy versions:
Foreman: 2.5.2
Foreman-plugins:

  • foreman-tasks: 4.1.2
  • foreman_ansible: 6.3.1
  • foreman_bootdisk: 17.1.0
  • foreman_hooks: 0.3.17
  • foreman_remote_execution: 4.5.1
  • foreman_setup: 6.0.0

Ruby: ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux-gnu]
Puppet: 6.23.0

Distribution and version:
Debian GNU/Linux 10.10 (buster)
Linux 4.19.0-17-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86_64 GNU/Linux

Perhaps @lzap would be able to help when he’s back (few weeks from now).

We have looked at the problem with an external service provider and it is probably due to Debian 10. We now have a RHEL 8 in use and everything runs on it :slight_smile:

1 Like