<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 10, 2017 at 2:32 PM, Johnny Hughes <span dir="ltr"><<a href="mailto:johnny@centos.org" target="_blank">johnny@centos.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 10/10/2017 01:46 PM, PJ Welsh wrote:<br>
> I'm trying to figure out how to replace the vmlinuz and initrd.img from<br>
> CentOS 7.4 with "fixed" kernel-plus versions in order create CentOS 7.4<br>
> VM's. So far I'm stuck booting via 7.3 install, adding new kernel-plus<br>
> and upgrading to 7.4. I've not found any complete Google answers and was<br>
> looking for help making sure I choose the correct approach.<br>
><br>
> I've tried to build an initrd.img from a kernel-plus booting system via<br>
> "mkinitrd -f -v /boot/initrd.img $(uname -r)", but the file size is less<br>
> than half the one from CentOS 7.4 (17MB -vs- 47MB). I'm not even sure I<br>
> can just replace those files yet either.<br>
><br>
> Any help going the correct path?<br>
<br>
</span>I have not had time to do this yet .. BUT .. you can edit the lorax<br>
template to to use kernel-plus instead of kernel (and new repodata)..<br>
then rerun lorax to get a bootable tree and boot.iso<br>
<br>
You would then need a tree with the new kernel-plus* packages instead of<br>
the kernel-* packages<br>
<br>
This bug kind of explains the process:<br>
<br>
<a href="https://bugs.centos.org/view.php?id=13763" rel="noreferrer" target="_blank">https://bugs.centos.org/view.<wbr>php?id=13763</a><br>
<br>
(look for lorax in the bug)<br>
<br>
I do want to create a process and tree somewhere for this (likely on<br>
<a href="http://buildlogs.centos.org" rel="noreferrer" target="_blank">buildlogs.centos.org</a>). Sometime soon after I finish the i386 distro<br>
release (hopefully that is this week .. next week for some kind of<br>
bootable x86_64 Xen PV solution).<br>
<br>
The good news is, the 7.5 RHEL kernel Source RPMs should have Kevin's<br>
patch in it and it should work as released on Xen PV.<br>
<br>
<br>
<br>
<br>______________________________<wbr>_________________<br>
CentOS-virt mailing list<br>
<a href="mailto:CentOS-virt@centos.org">CentOS-virt@centos.org</a><br>
<a href="https://lists.centos.org/mailman/listinfo/centos-virt" rel="noreferrer" target="_blank">https://lists.centos.org/<wbr>mailman/listinfo/centos-virt</a><br>
<br></blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I can report full success based on your information! Thank you!</div><div class="gmail_extra">For anyone interested, the general steps I choose for the test was:</div><div class="gmail_extra"><div class="gmail_extra">* On a build system:</div><div class="gmail_extra"> yum install lorax #if not already there</div><div class="gmail_extra"> Edit /usr/share/lorax/runtime-install.tmpl and change the "installpkg kernel" to "installpkg kernel-plus".</div><div class="gmail_extra"> DEFAULTKERNEL=kernel-plus lorax -p Centos-Minimal -v 7 -r 7.4 -s <a href="http://mirrors.us.kernel.org/centos/7/os/x86_64/">http://mirrors.us.kernel.org/centos/7/os/x86_64/</a> -s <a href="http://mirrors.us.kernel.org/centos/7/updates/x86_64/">http://mirrors.us.kernel.org/centos/7/updates/x86_64/</a> -s <a href="http://mirrors.us.kernel.org/centos/7/centosplus/x86_64/">http://mirrors.us.kernel.org/centos/7/centosplus/x86_64/</a> ./results/</div><div class="gmail_extra"> rsync -a ~/results/ PXEINSTALL.SERVER:/YOUR/DIR/os/x86_64/ #location of CentOS 7.4 original install was located</div><div class="gmail_extra"> rsync -a results/images/pxeboot/{vmlinuz,initrd.img} PXEINSTALL.SERVER:/var/lib/tftpboot/linux-install/YOUR/DIR/ <br></div><div class="gmail_extra">* Kickstart created with required package "kernel-plus" and "repo --name=centosplus --baseurl=<a href="http://CHOOSE/A/MIRROR/7/centosplus/x86_64/">http://CHOOSE/A/MIRROR/7/centosplus/x86_64/</a>" as additions original kickstart</div><div class="gmail_extra">* On xen server you can now run virt-install with ks=<a href="http://PXEINSTALL.SERVER/PATH/TO/kickstart.cfg">http://PXEINSTALL.SERVER/PATH/TO/kickstart.cfg</a>"</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks</div><div class="gmail_extra">pjwelsh</div></div></div>