Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 01-18-2013, 08:52 AM   #1
Registered: Oct 2012
Posts: 47

Rep: Reputation: Disabled
RHEL6 Diskless Remote boot fail

Hi guys,

I've been trying to set up a server for disk-less booting of remote machines on a network. The server host OS is RHEL6 and I have configured dhcp, tftp and nfs services which are proven to be working since I am able to install RHEL6 through pxe boot. Now I want it to serve for disk-less booting. I followed the red hat guide here. Below are steps which I have done and then the problems I got-

1. Configure dhcp, tftp, nfs and set up for pxe booting. Tested to be working by installing RHEL through network.

2. Install dracut-network package, copy the kernel from /boot of the host server to temp and generate an initramfs with network support.

#dracut initramfs_diskless.img vmlinuz-2.6.32-279.el6.x86_64
This gave the error-

find: `/lib/modules/vmlinuz-2.6.32-279.el6.x86_64/': No such file or directory
find: `/lib/modules/vmlinuz-2.6.32-279.el6.x86_64/': No such file or directory
find: `/lib/modules/vmlinuz-2.6.32-279.el6.x86_64/': No such file or directory
find: `/lib/modules/vmlinuz-2.6.32-279.el6.x86_64/': No such file or directory
find: `/lib/modules/vmlinuz-2.6.32-279.el6.x86_64/': No such file or directory
find: `/lib/modules/vmlinuz-2.6.32-279.el6.x86_64/': No such file or directory

so I removed the vmliuz from the filename and dracut showed no errors.

3. Copy the entire root filesystem of a RHEL6 desktop installation to a location on the server, except the contents of /proc and /sys and export the location over nfs.

4. Add the following lines to default file inside pxelinux.cfg

label diskless
menu label Boot into diskless RHEL6
kernel vmlinuz-2.6.32-279.el6.x86_64
append initrd=initramfs_diskless.img root=nfs4:<NFS_IP>:<EXPORTED_ROOTFS_LOCATION> rw rdshell rdinitdebug

5. Try to pxe boot a machine on the network.

Output at client side-

kernel and initramfs loads up,
ADDRCONF(NETDEV_CHANGE):eth0: link becomes ready
dracut:Mounted root filesystem <NFS_IP> <NFS_SHARE>
SELinux: Disabled at runtime
dracut: switching root
+ [ -f /etc/capsdrop ]
+ exec switch_root /sysroot /sbin/init

<Here it just stops for about 2 mins >

INFO: task init:1 blocked for more than 120 secs
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

Then it shows a bunch of memory addresses with system calls and hangs.

Please help !!!!!!!!!!


diskless, error, rhel6

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[HELP!] Fedora Diskless Remote boot fail anindyameister Linux - Server 3 10-06-2012 09:55 AM
[SOLVED] accessing the nfs share from remote machine using nautilus in RHEL6 neonate Linux - Desktop 1 03-20-2011 08:21 PM
Diskless computer boot sarajevo Linux - Desktop 4 10-04-2010 07:29 AM
need help, linux diskless boot Wolvastur Linux - Networking 1 12-30-2004 06:59 AM
About Diskless boot fongkakit Linux - Networking 1 07-19-2004 06:57 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:57 AM.

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