Feature #10300

Implement reboot into installer

Added by Lukas Zapletal about 2 years ago. Updated over 1 year ago.

Status:Closed
Priority:Normal
Assigned To:-
Category:Image
Target version:Image 3.0.0
Difficulty: Pull request:https://github.com/theforeman/foreman_discovery/pull/210
Bugzilla link:
Story points-
Velocity based estimate-

Description

This work item is focused on implementing and testing actual real reboots into OS installer for the custom fact case. Workflow is:

  • user boots discovery from ISO
  • user enters network credentials (optional)
  • user enters custom fact
  • user discovers the server
  • discovery plugin configured for auto-provisioning initiates provisioning
  • the host downloads kernel/image and reboot into it

Let's design this with minimum changes possible on the Foreman and Discovery plugin (and Smart Proxy plugin). The most difficult part is to find out URLs of kernel/image. Preferred method is HTTP from media directly, but if that turns out to be problematic and it is possible to implement TFTP with less changes, let's add TFTP as an secondary option.

Interesting idea might be to kexec/reboot into PXELinux directly and continue from there the traditional way or maybe reboot into iPXE or Grub2 if PXELinux does not work. This could solve the media issue, but there might be hardware compatibility issues.

  • workflow:

Related issues

Related to Discovery - Tracker #10294: PXEless discovery feature Closed 04/28/2015

Associated revisions

Revision b713c12a
Added by Lukas Zapletal over 1 year ago

Fixes #10300 - adding new image power API support

History

#1 Updated by Lukas Zapletal about 2 years ago

#2 Updated by Benjamin Papillon about 2 years ago

Later on it could be interesting to kexec directly to iso images. This would allow to install other operating systems such as *BSD.

Currently, the only way I found to be able to boot into iso images from kexec is using grub4dos. Here is the interesting blog entry talking about it :
http://wybcz.pl/2015/03/08/fun-with-kexec/

#3 Updated by The Foreman Bot almost 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_discovery/pull/210 added

#4 Updated by Anonymous over 1 year ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF