CentOS 7
Sponsored Link

PXE Boot : Diskless Client2015/06/26

Boot your client computer which has no local hard drive from PXE server.
[2] Install required packages.
[root@dlp ~]#
yum -y install dracut-network nfs-utils
[3] Build a system for diskless clients on PXE server.
[root@dlp ~]#
mkdir -p /var/lib/tftpboot/centos7/root

[root@dlp ~]#
yum groups -y install "Server with GUI" --releasever=7 --installroot=/var/lib/tftpboot/centos7/root/
# generate encrypted root password (remeber it)

[root@dlp ~]#
python -c 'import crypt,getpass; \
print(crypt.crypt(getpass.getpass(), \
[root@dlp ~]#
vi /var/lib/tftpboot/centos7/root/etc/shadow
# set root password generated above

[root@dlp ~]#
vi /var/lib/tftpboot/centos7/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@dlp ~]#
wget -P /var/lib/tftpboot/centos7/ \
http://mirror.centos.org/centos/7/os/x86_64/images/pxeboot/vmlinuz \
[root@dlp ~]#
vi /var/lib/tftpboot/pxelinux.cfg/default
# create new

default centos7

label centos7
    kernel centos7/vmlinuz
    append initrd=centos7/initrd.img root=nfs: rw selinux=0 
[4] Configure NFS server to share system files with clients
[root@dlp ~]#
vi /etc/exports
[root@dlp ~]#
systemctl start rpcbind nfs-server

[root@dlp ~]#
systemctl enable rpcbind nfs-server

[5] It's OK to configure.
Start a diskless computer which is enabled network booting on BIOS settings, then, system will boot like follows.
Matched Content