Hello,
I'm trying to setup a diskless filesystem on a server running CentOS 6.5 x64 and boot a diskless PC. The filesystem is also CentOS 6.5 x64.
I was able to install and configure DHCP, TFTP and NFS servers by essentially using excerpts of this guide:
https://access.redhat.com/documentat...sssystems.html
I created the suggested fstab on the root NFS filesystem. I also installed the full desktop rather than just the base system using yum. In addition, after some searching around, I created a ramdisk that supports networking using the following command:
Code:
# dracut -m "nfs network base" initramfs-nfs.img
I'm not sure if the guide above is correct by not specifying the "nfs network base". In either case, when trying to boot I get the following error:
Code:
VFS: Cannot open root device "nfs:192.168.1.111:/mnt/nfs_fs" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
My /tftpboot/pxelinux.cfg/default looks like this:
Code:
default rhel6
kernel vmlinuz-2.6.32-431.el6.x86_64
append initramfs-nfs.img root=nfs:192.168.1.111:/mnt/nfs_fs rw
I tried mounting the NFS directory from another linux machine that is on the same network and it works fine.
I found that it might be necessary to recompile the default kernel with NFS mounting capabilities enabled, but that seems to be used if ramdisk is not used during boot (only the kernel parameter is specified in the PXE configuration file, ie; /tftpboot/pxelinux.cfg/default). Is there a way, or an up to date guide how to diskless boot NFS CentOS 6.5 or even CentOS 7 filesystem without having to modify the kernel?
Thank you for the help in advance!