Ahoy friends. Some time ago i had a similar question but now im closer to the solution. I set up a simple grub menu on my tftp/pxe server. I want clients to be able to boot iso files in efi as well as legacy mode! So i decided to use GRUB instead of SYSLINUX. But now i ran into a problem. I have to mount a nfs share to be able to load the initrd right? I spent hours of time but unfortunately only a few people tried to perform this. Furthermore i got no issues running linux16 images like memtest. They work fine without any problem.
So that's my current grub.cfg menu entry to boot my clonezilla live iso file from pxegrub.
menuentry "Netroot" { echo 'Trying to boot via nfs ...' load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 echo 'Loading Linux ...' linux /programs/clonezilla/live/vmlinuz root=/dev/nfs netboot=nfs nfsroot=192.168.2.55:/var/lib/tftpboot/programs/clonezilla/live/ rw quiet echo 'Loading initial ramdisk ...' initrd initrd.img } And my exports file
/etc/exports
/var/lib/tftpboot/programs/clonezilla/live 192.168.2.55/(rw,no_root_squash,sync,no_subtree_check) Unfortunately it's unable to set the correct root, so i can't load the initrd yet. Whats the problem in here? Can someone help me to get it running through grub? I found a few examples for SYSLINUX but is it possible to get them running in grub?
DEFAULT ubuntu LABEL ubuntu KERNEL /vmlinux-4.8.17-040817-generic APPEND ip=dhcp rw root=/dev/nfs nfsroot=192.168.1.254:/diskless/ubuntu/0185 raid=noautodetect quiet splash amdgpu.vm_fragment_size=9 INITRD /initrd.img-4.8.17-040817-generic I prefer grub over syslinux and it's a little bit more advanced.
I hope someone can help me. Maybe it's some issue with my nfs share? I never used them before.