Article 577JK PXEboot via NFS (unknown device and unknown /dev/nfs)

PXEboot via NFS (unknown device and unknown /dev/nfs)

by
slackerz
from LinuxQuestions.org on (#577JK)
I'm trying to boot another system via NFS that I've already set up on the host. NFS is running and I can locally mount shares as well as the fs. Dnsmasq is also running properly as I'm able to get a local IP address. However the system fails to boot properly. Kernel panics.

This is my pxelinux.cfg/default file:

Code:DEFAULT linux

LABEL linux
KERNEL boot/vmlinuz-huge-5.4.60
APPEND rw root=/dev/nfs nfsroot=localhost:/srv/client,v3 net.ifnames=0 biosdevname=0 waitforroot=30
PROMPT 0
TIMEOUT 0I've tried two things. With and without initrd=boot/initrd-5.4.60.gz. The vmlinuz and initrd are both being loaded.

1. With initrd in the pxelinux.cfg/default:
Kernel loads. The system reaches a prompt stating file not found, unable to mount /dev/nfs on /mnt.
Now the initrd is prepared without any NFS support and I believe this is the reason for this error. Which arguments and modules should I pass to mkinitrd when building a initrd?

2. Without initrd in the pxelinux.cfg/default:
Loading the vmlinuz-huge kernel, the kernel panics stating unable to mount vfs. Seems the huge kernel is not built with nfs support.latest?d=yIl2AUoC8zA latest?i=o0Us68JEr4g:FzyrVUWm4Ak:F7zBnMy latest?i=o0Us68JEr4g:FzyrVUWm4Ak:V_sGLiP latest?d=qj6IDK7rITs latest?i=o0Us68JEr4g:FzyrVUWm4Ak:gIN9vFwo0Us68JEr4g
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments