Wednesday, January 21, 2015

Centos 7 PXE diskless

The guide is here:
http://www.server-world.info/en/note?os=CentOS_6&p=pxe&f=4

But I have installed Centos7 Desktop on PC(workstation) and rsynced files over to the server

ssh <workstation>
mount /dev/sda1 /mnt
rsync -avz /mnt/ <server>:/tftpboot/<Diskless Centos pxe root>

Problems:

dracut fatal don't know how to handle root=nfs

A start job is running for dev-nfs.device

And others like this could be fixed by using vmlinuz and initrd from here

( according to linuxquestions.org )


Working config:

[root@fox pxelinux.cfg]# cat default
default centos7


label centos7
   kernel pxeboot/centos7/sda/boot/vmlinuz
   append initrd=pxeboot/centos7/sda/boot/initrd.img root=nfs:192.168.44.10:/tftpboot/pxeboot/centos7/sda ip=dhcp rw selinux=0

Here is how to install Gnome on Centos 7 after Base installation
http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-gnome-gui-on-centos-7-rhel-7.html#axzz3PTQP15yP

you can do it after you have copied the files to the server:

chroot /tftpboot/<Diskless Centos pxe root> 
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

No comments:

Post a Comment