LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 10-21-2014, 09:49 PM   #1
niteshadw
Member
 
Registered: Sep 2002
Distribution: CentOS
Posts: 170

Rep: Reputation: 15
Diskless NFS Booting using PXE


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!

Last edited by niteshadw; 10-22-2014 at 07:51 AM.
 
Old 11-08-2014, 06:29 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,491

Rep: Reputation: Disabled
Try reading this lot, (it's their program).
http://www.syslinux.org/wiki/index.php/PXELINUX
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Does PXE-booting/NFS root supports NFSv4? c0wb0y Linux - Networking 2 01-24-2012 02:43 PM
Problem PXE booting FreeBSD 7.2 installer and installing via NFS btmiller *BSD 1 01-11-2010 05:32 AM
PXE Booting diskless cluster node problems Andy M Linux - Server 1 03-12-2009 04:38 AM
Booting opensuse10.2 diskless over pxe - nfs tcp problem? sniff SUSE / openSUSE 0 07-08-2007 05:25 AM
PXE booting Knoppix - NFS problem royceH Linux - Networking 25 12-21-2006 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 03:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration