I have been trying to boot grub legacy via qemu using pxe. For some reason, the grub does not display the menu and enters into the command mode after displaying the following error.Error15: File not found.grub rescue>This is my directory structure:/var/lib/tftpboot| - pxelinux.0| - pxegrub.0| - pxelinux.cfg    | default| - boot    | grub          |default                  |fat_stage1_5          |menu.lst          |stage1          |device.map          |installed-version            |minix_stage1_5               |stage2          |e2fs_stage1_5           |jfs_stage1_5          |reiserfs_stage1_5            |xfs_stage1_5 |x86_64Contents of pxelinux.cfg/default: default vesamenu.c32prompt 0menu title Available Installations (scroll down for more options)menu autoboot Starting grub2 in # Secondstimeout 30label local  menu label Boot From Local Disk  localboot 0label grub  menu label grub  menu default        kernel pxegrub.0menu endContents of menu.lst:timeout 0# spawnd is used to control which cpus are booted## spawnd boot will use the skb and pci to figure out and#  boot all cores in the machine## spawnd boot bootapic-x86_64=1-5 will not use the skb and# boot the list of cores passed as argument.# The APIC id of the cores to boot should be specified.# This list may not include the bsp core id.title   Barrelfishroot    (nd)kernel  /x86_64/sbin/elver loglevel=4module  /x86_64/sbin/cpu loglevel=4module  /x86_64/sbin/init# Domains spawned by initmodule  /x86_64/sbin/mem_servmodule  /x86_64/sbin/monitor# Special boot time domains spawned by monitormodule  /x86_64/sbin/ramfsd bootmodule  /x86_64/sbin/skb bootmodulenounzip /skb_ramfs.cpio.gz nospawnmodule  /x86_64/sbin/kaluga bootmodule  /x86_64/sbin/acpi bootmodule  /x86_64/sbin/spawnd boot#bootapic-x86_64=1-15module  /x86_64/sbin/startd bootmodule /x86_64/sbin/routing_setup boot# Driversmodule /x86_64/sbin/pci automodule /x86_64/sbin/ahcid automodule /x86_64/sbin/rtl8029 automodule /x86_64/sbin/e1000n automodule /x86_64/sbin/NGD_mng automodule /x86_64/sbin/netd auto# General user domainsmodule  /x86_64/sbin/serialmodule  /x86_64/sbin/fishmodule  /x86_64/sbin/hellotestmodule  /x86_64/sbin/ahcialloctestmodule  /x86_64/sbin/idctest clientmodule  /x86_64/sbin/idctest serverI used the following command to generate grub image:grub-mkimage --format=i386-pc-pxe --output=grub.pxe --prefix='(pxe)/boot/grub' pxe pxecmd
Booting grub legacy via qemu using pxe
boot;qemu;pxe;grub legacy