RHEL6 Diskless Remote boot fail | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

RHEL6 Diskless Remote boot fail

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-21-2013
aninmuk aninmuk is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 24 January 2013, 1:24 AM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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. 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-


Code:
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


Code:
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-


Code:
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 >


Code:
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 !!!!!!!!!!

Moderator's Comments:
Please use code tags next time for your code and data.

Last edited by radoulov; 01-21-2013 at 09:54 AM..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
dual boot RHEL5 and RHEL6 ppchu99 Red Hat 0 07-31-2012 01:39 PM
fail to boot HPUX ckwan HP-UX 12 11-14-2011 01:48 AM
PXE diskless boot fails yotamhc UNIX for Advanced & Expert Users 8 06-05-2010 06:39 AM
kernel fail to boot after recompile it SIFE BSD 1 10-12-2009 09:54 AM
Solaris 9 install cd boot fail niuniu Solaris 2 11-14-2005 10:56 PM



All times are GMT -4. The time now is 10:57 PM.