Foreman xen not available in foreman UI


I tried installing foreman xen from ruby gems. The installation was successful but xen is still not available in foreman UI even after restarting the service. What else do I need to do to make it available in the UI. Another thing is that when I tried to add in the Gemfile.local.rb, foreman is encountering this error.

[2022-11-01 14:30:18] Gem loading error: cannot load such file – foreman_xen
[2022-11-01 14:30:18] /usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/output.rb:13:in strict_err' [2022-11-01 14:30:18] /usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:46:in rescue in block in system_require’
[2022-11-01 14:30:18] /usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:39:in block in system_require' [2022-11-01 14:30:18] /usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:37:in each’
[2022-11-01 14:30:18] /usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:37:in system_require' [2022-11-01 14:30:18] /usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:19:in block in system_require’
[2022-11-01 14:30:18] /usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:14:in each' [2022-11-01 14:30:18] /usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:14:in system_require’
[2022-11-01 14:30:18] /usr/share/foreman/config/application.rb:36:in <top (required)>' [2022-11-01 14:30:18] /usr/share/foreman/Rakefile:1:in <top (required)>’
[2022-11-01 14:30:18] /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>’

Update, I was able to install the gem but it is still not working in foreman. Do I need another command to enable it?

I’d advise to only use the installer since that performs the correct steps. Having said that, I think foreman_xen is unmaintained today.

Hi @ekohl,

Thank you for the response. What do you mean by using the installer? Does it mean that foreman_xen is not advisable for use? Thank you.

Using foreman-installer to manage your installation. Manually installing gems is considered something only developers should do.

Correct. Today there’s no maintainer and there have been no commits in the past 2 years so there’s a good chance it’s broken. Contributions or someone stepping up as maintainer would be very welcome.

Thanks @ekohl.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.