yoshi.plala
2014-Sep-10 04:22 UTC
[CentOS] CentOS6.5: disklessboot could not find ramdisk but CentOS6.2 :OK. CentOS6.5 has bug with dracut?
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 at pxe ~]# yum -y groupinstall "Base" "Server Platform" --installroot=/var/lib/tftpboot/centos6/root/ [root at pxe ~]# cp -f -R /root /var/lib/tftpboot/centos6/root/ [root at pxe ~]# chmod 600 /var/lib/tftpboot/centos6/root/etc/shadow [root at pxe ~]# grep ^root /etc/shadow | cut -d: -f2 $6$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [root at pxe ~]# vi /var/lib/tftpboot/centos6/root/etc/shadow # root: $6$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx :14937:0:99999:7::: [root at 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 at pxe ~]# cp /boot/vmlinuz-2.6.32-431.el6.x86_64 /var/lib/tftpboot/centos6/ [root at pxe ~]# dracut initramfs-2.6.32-431.el6.x86_64.img 2.6.32-431.el6.x86_64 [root at pxe ~]# mv initramfs-2.6.32-431.el6.x86_64.img /var/lib/tftpboot/centos6/ [root at 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=centos6/initramfs-2.6.32-71.29.1.el6.x86_64.img root=nfs:10.0.0.70:/var/lib/tftpboot/centos6/root rw selinux=0 Diskless client doesn't work and complains as belows at booting Loading centos6/vmlinuz-2.6.32-71.29.1.el6.x86_64 ........ ok Could not find ramdisk image: centos6/initramfs-2.6.32-431.el6.x86_64.img root=nfs:10.0.0.70:/var/lib/tftpboot/centos6/root rw selinux=0 boot: Then I replace initramfs-2.6.32-71.29.1.el6.x86_64.img with initrd.img copied from /images/initrd.img found in CentOS-6.5-x86_64-bin-DVD1.iso. It booted successfuly and displayed installition menu. I doubt dracut dosn't work well. Is there anyone could setup diskless client with CEntOS6.5?