User Tools

Site Tools


linux:centos_redhat_pxe

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:centos_redhat_pxe [2021/06/16 14:18]
manu [Create ressource for TFTPBOOT]
linux:centos_redhat_pxe [2021/10/06 17:39] (current)
manu [Restart deamon]
Line 73: Line 73:
  
  
-Create a GRUB2 configuration file: /​var/​lib/​tftpboot/​boot/​grub/​grub.cfg+Create a GRUB configuration file: /​var/​lib/​tftpboot/​boot/​grub/​grub.cfg
  
 Add the option for noprompt during install Add the option for noprompt during install
Line 127: Line 127:
  
 # Network information # Network information
-network ​ --bootproto=dhcp --device=env2 --activate --ipv6=auto  +network ​ --bootproto=dhcp --device=env2 --interfacename=env2 --activate --ipv6=auto  
-network ​ --bootproto=dhcp --device=env3 --onboot=off --noipv6+network ​ --bootproto=dhcp --device=env3 --interfacename=env3 --onboot=off --noipv6
 network ​ --hostname=lnx100 network ​ --hostname=lnx100
 # Root password # Root password
Line 176: Line 176:
  
 ==== Restart deamon ==== ==== Restart deamon ====
 +
 +Demon xinetd doesn'​t exist, so restart the following
  
 <cli prompt='#'>​ <cli prompt='#'>​
-[root@lnx80 ~]# systemctl restart xinetd 
 [root@lnx80 ~]# systemctl restart dhcpd [root@lnx80 ~]# systemctl restart dhcpd
 +[root@lnx80 ~]# systemctl restart httpd
 +[root@lnx80 ~]# systemctl restart tftp
 </​cli>​ </​cli>​
- 
 ==== example of ks.cfg ==== ==== example of ks.cfg ====
  
Line 202: Line 204:
 [   ​75.590063] dracut-initqueue[1030]:​ Warning: anaconda: failed to fetch stage2 from http://​10.10.10.80/​Centos8.3/​BaseOS [   ​75.590063] dracut-initqueue[1030]:​ Warning: anaconda: failed to fetch stage2 from http://​10.10.10.80/​Centos8.3/​BaseOS
 </​cli>​ </​cli>​
 +
 +**__Solution__** : <color #​ed1c24>​It is not possible to deploy centos > V8.0 by PXE. You have to deploy 8.0 and then to update it to 8.4</​color>​
 +   
 +=== RedHat Error ===
 +
 +During install :
 +<cli>
 +[  108.945532] dracut-initqueue[947]:​ curl: (23) Failed writing body (4200 != 16384)
 +[  109.061841] loop: module loaded
 +[  109.480973] dracut: FATAL: Failed to find a root filesystem in /​tmp/​curl_fetch_url1/​install.img.
 +[  109.481002] dracut: Refusing to continue
 +[  109.480523] dracut-initqueue[947]:​ mount: /​run/​initramfs/​squashfs:​ wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
 +[  109.480931] dracut-initqueue[947]:​ /​lib/​dracut-lib.sh:​ line 465: echo: write error: No space left on device
 +</​cli>​
 +
 +**__Cause__** : Since the root filesystem is not yet mounted, it would be loading it into a RAM disk. At this point the installer UI is not started yet, and the local disks haven'​t been touched at all, although the kernel has detected that /dev/vda is present.
 +
 +**__Solution__** : <color #​ed1c24>​increase allocated RAM on LPAR.</​color>​
 +
  
 ==== Optional ==== ==== Optional ====
linux/centos_redhat_pxe.1623845886.txt.gz · Last modified: 2021/06/16 14:18 by manu