CentOS6.5: Disklessboot Could Not Find Ramdisk But CentOS6.2 :OK. CentOS6.5 Has Bug With Dracut?

Home » CentOS » CentOS6.5: Disklessboot Could Not Find Ramdisk But CentOS6.2 :OK. CentOS6.5 Has Bug With Dracut?
CentOS No Comments

Hi

I have trouble with disklessclient with CentOS6.5 but 6.2.

I have been using disklessclient from CentOS6.2 well. Both server and clients work with CentOS6.2.

Recently I set up PXE boot server with CentOS6.5 and has trouble. I built vmlinuz and initrd.image in the same method I did for CentOS6.2

[root@pxe ~]# yum -y groupinstall “Base” “Server Platform” –installroot=/var/lib/tftpboot/CentOS6/root/

[root@pxe ~]# cp -f -R /root /var/lib/tftpboot/CentOS6/root/

[root@pxe ~]# chmod 600 /var/lib/tftpboot/CentOS6/root/etc/shadow

[root@pxe ~]# grep ^root /etc/shadow | cut -d: -f2
$6$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[root@pxe ~]# vi /var/lib/tftpboot/CentOS6/root/etc/shadow
#

root: $6$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx :14937:0:99999:7:::

[root@pxe ~]# vi /var/lib/tftpboot/CentOS6/root/etc/fstab none /tmp tmpfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

[root@pxe ~]# cp /boot/vmlinuz-2.6.32-431.el6.x86_64
/var/lib/tftpboot/CentOS6/

[root@pxe ~]# dracut initramfs-2.6.32-431.el6.x86_64.img
2.6.32-431.el6.x86_64

[root@pxe ~]# mv initramfs-2.6.32-431.el6.x86_64.img
/var/lib/tftpboot/CentOS6/

[root@pxe ~]# vi /var/lib/tftpboot/pxelinux.cfg/default

#
default CentOS6
label CentOS6
kernel CentOS6/vmlinuz-2.6.32-71.29.1.el6.x86_64
append initrd