[Beowulf] PXEBoot struggling

Duke Nguyen duke.lists at gmx.com
Mon Nov 19 07:48:18 PST 2012


On 11/19/12 8:04 PM, Tru Huynh wrote:
>> So to summarize:
>>   * boot using liveCD -> OK, logging in fine
>>   * boot using rsync of master node's system -> OK, cant log in
> SElinux is probably on the way, did you relabel?

Interesting. Since I am familiar with debian-based distros, these 
selinux is total headage for me :). No, I did not relabel.

>>   * boot using rsync of client node's sytem -> cant boot
> you need to build/setup the boot from nfs on yur diskless clients.
> - do you have dracut-network installed (required for nfs booting)

Yes. I got initramfs-<version> by using dracut

> - pass the nfsroot flags to your client
> something like root=nfs:master:/nfsroot/c6 rw

Yes:

# cat /var/lib/tftpboot/pxelinux.cfg/default
DEFAULT 0
TIMEOUT 3
PROMPT 0
ONTIMEOUT 0

MENU TITLE PXE Boot Menu
LABEL 0
     MENU LABEL Scientific Linux 6.3 Local
     LOCALBOOT 0
LABEL 1
     MENU LABEL Scientific Linux 6.3 Server
     KERNEL vmlinuz-2.6.32-279.14.1.el6.x86_64
     APPEND initrd=initramfs-2.6.32-279.14.1.el6.x86_64.img 
root=nfs:192.168.200.1:/diskless/hostroot rw
LABEL 2
         MENU LABEL Scientific Linux 6.3 Client
         KERNEL vmlinuz-2.6.32-279.5.1.el6.x86_64
         APPEND initrd=initramfs-2.6.32-279.5.1.el6.x86_64.img 
root=nfs:192.168.200.1:/diskless/client rw selinux=0
LABEL 3
     MENU LABEL Scientific Linux 6.3 LiveCD
     KERNEL vmlinuz0
     APPEND rootflags=loop initrd=initrd0.img 
root=live:/SL-63-x86_64-2012-08-24-LiveCD.iso rootfstype=auto ro liveimg 
quiet  rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM

> - fix /etc/fstab for /

Yes i did.
# cat /diskless/clientroot/etc/fstab

#
# /etc/fstab
# Created by anaconda on Mon Nov 19 09:59:09 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
#UUID=dcf21643-586d-4114-9060-c69e2c5e75ad / ext4    defaults        1 1
#UUID=44a7a645-4f07-4c83-9f90-0bc5f0612319 swap swap    defaults        0 0
none            /tmp            tmpfs    defaults    0 0
none                   /dev/shm                tmpfs defaults        0 0
none                  /dev/pts                devpts gid=5,mode=620  0 0
sysfs                   /sys                    sysfs defaults        0 0
proc                    /proc                   proc defaults        0 0
> - fix /etc/sysconfig/network-scripts/ifcfg-eth0
> ONBOOT=no # since you already have network

Do I have to do this? Basicall on client nodes, I left it dhcp'ed using 
NetworkManager, so no ifcfg-eth0:
# ls /diskless/clientroot/etc/sysconfig/network-scripts/
ifcfg-lo     ifdown-eth   ifdown-isdn  ifdown-routes  ifup ifup-eth   
ifup-isdn   ifup-post    ifup-sit init.ipv6-global   network-functions-ipv6
ifdown       ifdown-ippp  ifdown-post  ifdown-sit     ifup-aliases 
ifup-ippp  ifup-plip   ifup-ppp     ifup-tunnel    net.hotplug
ifdown-bnep  ifdown-ipv6  ifdown-ppp   ifdown-tunnel  ifup-bnep 
ifup-ipv6  ifup-plusb  ifup-routes  ifup-wireless  network-functions





More information about the Beowulf mailing list