Why does PXE boot fail with the message " Could not find the kernel image: menu" ?
Environment
- Red Hat Enterprise Linux 5/6
- PXE Boot Setup
Issue
- While booting the machine with PXE boot, getting the below message on console.
Could not find the kernel image: menu
- The PXE
defaultfile contents are as follows.
DEFAULT menu
PROMPT 0
MENU TITLE Cobbler | http://fedorahosted.org/cobbler
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local
LABEL local
MENU LABEL (local)
MENU DEFAULT
LOCALBOOT 0
LABEL STANDARD-GUEST:1:TEST
kernel /images/ks-rhel-x86_64-server-6-63/vmlinuz
MENU LABEL STANDARD-GUEST:1:TEST
append initrd=/images/ks-rhel-x86_64-server-6-63/initrd.img ksdevice=bootif lang= kssendmac text ks=http://xx.x.xx.xxx/cblr/svc/op/ks/profile/STANDARD-GUEST:1:SITA
ipappend 2
Resolution
- In configuration the
defaultlabel configured ismenubut the labelmenudoesn't exist, onlyLOCALandSTANDARD-GUEST:1:TESTare there. See below.
DEFAULT menu
PROMPT 0
MENU TITLE Cobbler | http://fedorahosted.org/cobbler
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local
LABEL local
MENU LABEL (local)
MENU DEFAULT
LOCALBOOT 0
LABEL STANDARD-GUEST:1:TEST
kernel /images/ks-rhel-x86_64-server-6-63/vmlinuz
MENU LABEL STANDARD-GUEST:1:TEST
append initrd=/images/ks-rhel-x86_64-server-6-63/initrd.img ksdevice=bootif lang= kssendmac text ks=http://xx.x.xx.xxx/cblr/svc/op/ks/profile/STANDARD-GUEST:1:SITA
ipappend 2
- Due to this reason, the error
Could not find the kernel image: menucomes up asPXEboot is unable to find the labelmenuin the configuration file to load thekerneland theinitrd.imgfile. - Hence change the
DEFAULTlabel value to existingLABELvalue.
Root Cause
- The label
menuwas not present in thedefaultfile.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments