Boot On Lan - Cannot VFS: Cannot open root device "<NULL>"
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Boot On Lan - Cannot VFS: Cannot open root device "<NULL>"
I am currently trying to get one of my PCs to boot on Lan. I am pretty close now. The PC gets into PXE and gets the config file via TFTP from the server. But I get this error message when it tries to boot:
VFS: Cannot open root device "<NULL>" or unknown-block(8,3)
Please append a correct "root=" boot option
Kernelpanic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3)
And it just hangs.
I'm not sure what to do and google & co haven't come up with any answers.
If anyone has any ideas, I'll post whatever output is needed.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
If you're trying to boot "diskless", you need to export the root file system from the PXE server over NFS, and the kernel has to be aware it's looking for the root file system on NFS instead of local disk (on most OSs this is a kernel compile option, not sure on Linux).
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Did you remember this step?
Quote:
create a new config file as /tftpboot/pxelinux.cfg/default
NOTE: There are more options available such as MAC or IP identification for multiple config files see syslinux/pxelinux documentation for help.
Code:
LABEL linux
KERNEL vmlinuz-2.6.15-23-686
APPEND root=/dev/nfs initrd=initrd.img-2.6.15-23-686 nfsroot=192.168.2.2:/nfsroot ip=dhcp rw
I've set up 20+ computers for network boot over the past few weeks
It seems you have your sever working right. The problem is most likely in the kernel. You need to compile a custom kernel for this. Most distro's kernels won't work.
Make sure your kernel is compiled with the following options (NOT MODULES!!)
-->NFS client
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.