Feature #3478
closedCreate an RPM based image for booting
Description
TCL is hard to use and harder to maintain. We should switch to an RPM image
Work is already underway to integrate with oVirt as they have a solid, well-tested process for building ISOs. The plan is to
1) Make Discovery work with a modified version of their kickstarts (see: https://github.com/GregSutcliffe/ovirt-node/tree/foreman-wip for a start)
2) Refactor ovirt-node into a "base" image + plugins (one plugin to create the oVirt ISO, one plugin to create Discovery ISO)
3) Add optional nice to have stuff (like 3rd party facts, etc)
See http://www.ovirt.org/Node_Building#Build_Process_for_oVirt_Node for how to build an ISO, and https://github.com/GregSutcliffe/ovirt-node/blob/foreman-wip/recipe/build.sh for my hacked-up script variant.
Updated by Greg Sutcliffe almost 11 years ago
Current status is that the ovirt team had problems building my image using the Git branch in the description, so we need to prove it still builds.
Updated by Greg Sutcliffe almost 11 years ago
Here are my steps to build an image on a fresh f19 host (run as root to avoid sudo problems:
- git clone https://github.com/GregSutcliffe/ovirt-node.git -b foreman-wip
- git clone http://gerrit.ovirt.org/p/ovirt-node-iso.git
- mkdir ~/ovirt-cache
- yum install livecd-tools appliance-tools-minimizer fedora-packager python-devel rpm-build createrepo selinux-policy-doc checkpolicy selinux-policy-devel autoconf automake python-mock python-lockfile
- cp ~/ovirt-node/recipe/build.sh ~/.
- ~/build.sh full
- ls ~/ovirt-node-iso/tftpboot/* -lh
Updated by Greg Sutcliffe almost 11 years ago
You'll also want something like this in `pxelinux.cfg/default`:
LABEL ovirt
MENU LABEL Boot oVirt Image
KERNEL boot/vmlinuz0
APPEND rootflags=loop initrd=boot/initrd0.img root=live:/foreman.iso rootfstype=auto ro rd.live.image rd.live.check rd.lvm=0 rootflags=ro crashkernel=128M elevator=deadline install quiet max_loop=256 rhgb rd.luks=0 rd.md=0 rd.dm=0 foreman_ip=192.168.122.1:3000 stateless
Updated by Greg Sutcliffe almost 11 years ago
- Assignee changed from Greg Sutcliffe to Lukas Zapletal
Updated by Lukas Zapletal almost 11 years ago
Here is my updated pxelinux config:
LABEL nodediscovery MENU LABEL Node Discovery oVirt KERNEL boot/oVirt-vmlinuz APPEND rootflags=loop initrd=boot/oVirt-initrd.img root=live:/foreman.iso rootfstype=auto ro rd.live.image rd.live.check rd.lvm=0 rootflags=ro crashkernel=128M elevator=deadline max_loop=256 rd.luks=0 rd.md=0 rd.dm=0 foreman_ip=foreman.virtual.lan selinux=0 stateless
Updated by Lukas Zapletal almost 11 years ago
- Target version changed from 1.15.0 to 1.10.0
Updated by Dominic Cleal almost 11 years ago
- Status changed from Assigned to Ready For Testing
Updated by Dominic Cleal almost 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Updated by Dominic Cleal almost 11 years ago
- Tracker changed from Bug to Feature
Updated by Lukas Zapletal over 6 years ago
- Target version deleted (
589) - Triaged set to No