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
default
file 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
default
label configured ismenu
but the labelmenu
doesn't exist, onlyLOCAL
andSTANDARD-GUEST:1:TEST
are 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: menu
comes up asPXE
boot is unable to find the labelmenu
in the configuration file to load thekernel
and theinitrd.img
file. - Hence change the
DEFAULT
label value to existingLABEL
value.
Root Cause
- The label
menu
was not present in thedefault
file.
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