kickstart/pxeboot

Issues related to applications and software problems and general support
Post Reply
andrewm659
Posts: 27
Joined: 2014/10/24 16:20:13

kickstart/pxeboot

Post by andrewm659 » 2019/09/27 14:39:02

Has anyone figured out how to pxeboot/kickstart install centos 8 yet? Using the same method from CentOS 7 doesn't work.

atemp
Posts: 32
Joined: 2011/09/06 11:51:13

Re: kickstart/pxeboot

Post by atemp » 2019/09/27 14:46:20

for me it works like with CentOS 7, here is an example lpxelinux.0 config (change <YOURMIRROR> and path to ks file):

Code: Select all

label lpxelinux.0
    kernel http://<YOURMIRROR>/8/BaseOS/x86_64/os/images/pxeboot/vmlinuz
    append initrd=http://<YOURMIRROR>/8/BaseOS/x86_64/os/images/pxeboot/initrd.img inst.ks=http://your-shiny-kickstart.ks inst.repo=http://<YOURMIRROR>/8/BaseOS/x86_64/os

andrewm659
Posts: 27
Joined: 2014/10/24 16:20:13

Re: kickstart/pxeboot

Post by andrewm659 » 2019/09/27 15:17:59

I Keep getting this. Permissions are correct.
Attachments
pxeboot-error.JPG
pxeboot-error.JPG (142.22 KiB) Viewed 609 times

atemp
Posts: 32
Joined: 2011/09/06 11:51:13

Re: kickstart/pxeboot

Post by atemp » 2019/09/27 15:24:27

i would try to download the file manually with curl or wget, looks like some files/dirs on your ftp server have not enough permissions

andrewm659
Posts: 27
Joined: 2014/10/24 16:20:13

Re: kickstart/pxeboot

Post by andrewm659 » 2019/09/27 16:04:00

Ok now getting this after moved my images folder up 2-3 levels.

Here is my tftpboot

Code: Select all

default menu.c32
prompt 0
timeout 300
ONTIMEOUT 1

menu title ########## CentOS PXE Boot Menu ##########

label 1
menu label ^1) Install CentOS 8 DVD
menu default
nohalt 1
kernel /networkboot/centos8-DVD/1905/vmlinuz
append initrd=/networkboot/centos8-DVD/1905/initrd.img inst.ks=ftp://10.150.1.7/pub/centos/8/ks.cfg inst.repo=ftp://10.150.1.7/pub/centos/8/BaseOS/x86_64/os/ method=ftp://10.150.1.7/pub/centos/8 devfs=nomount
Attachments
pxeboot-error1.JPG
pxeboot-error1.JPG (86.41 KiB) Viewed 601 times

pjwelsh
Posts: 2598
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: kickstart/pxeboot

Post by pjwelsh » 2019/09/27 16:23:06

That message screen looks more like something is not being liked in the kc.cfg file you have. I'm having a filesystem kickstart creation issue that puts leaves me in the GUI setup screen when it's not working. Looks like the non-gui version version of some ks.cfg file issue, maybe. Post the kc.cfg if you would.

If you have a CentOS 8 system install the package "pykickstart" and run your ks.cfg through the "ksvalidator" program from that package. Note running ksvalidator from CentOS 7 will follow CentOS 7 "rules" not 8's.

andrewm659
Posts: 27
Joined: 2014/10/24 16:20:13

Re: kickstart/pxeboot

Post by andrewm659 » 2019/09/27 17:00:12

Code: Select all

#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Keyboard layouts
keyboard 'us'
lang en_US
# Reboot after installation
reboot
# System timezone
timezone America/Chicago
# Use text mode install
text
# Network information
network  --bootproto=dhcp --device=ens162
# Use network installation
#url --url="ftp://10.150.1.7/pub/centos8-DVD/1905/BaseOS"
repo --name=baseos  --baseurl="ftp://10.150.1.7/pub/centos/8/BaseOS"
bootloader --location=mbr --append="rhgb quiet crashkernel=auto"
zerombr
# System authorization information
auth  --useshadow  --passalgo=sha512
# Firewall configuration
firewall --enabled --port=ssh
skipx
firstboot --disable
# SELinux configuration
selinux --enforcing

# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all
# Disk partitioning information
part /boot --size 1024 --asprimary --fstype=xfs --ondrive=sda
part pv.1 --size 1 --grow --fstype=xfs --ondrive=sda
volgroup vg_root --pesize=4 pv.1
logvol / --fstype xfs --vgname vg_root --size=3072 --name=lv_root
logvol /var --fstype xfs --vgname vg_root --size=20480 --name=lv_var
logvol /tmp --fstype xfs --vgname vg_root --size=5120 --name=lv_tmp
logvol swap --vgname vg_root --size=2048 --name=lv_swap
logvol /home --fstype xfs --vgname vg_root --size=10240 --name=lv_home
logvol /usr --fstype xfs --vgname vg_root --size=20480 --name=lv_usr
#part pv.2 --size 1 --grow --fstype=xfs --ondrive=sda2
#volgroup vg_opt --pesize=4 pv.2
logvol /opt --fstype xfs --vgname vg_root --size=5120 --name=lv_opt --grow


%packages
@standard
@Base
@Core
@Development Tools
openssh-clients
sudo
kernel-headers
kernel-devel
net-tools
vim
wget
curl
rsync
bash-completion
ipa-client
%end
repo --name=appstream --baseurl="ftp://10.150.1.7/pub/centos/8/AppStream"

pjwelsh
Posts: 2598
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: kickstart/pxeboot

Post by pjwelsh » 2019/09/27 22:15:45

First installer "!" issues is source definition. I think you should comment the repo and change the url line to:

Code: Select all

url --url="ftp://10.150.1.7/pub/centos8-DVD/1905/"
Second "!" for the screen shot is software selection issue. At the very least the "Development Tools" is just "development" and don't think that "Base" or Core" is good.

Post Reply

Return to “CentOS 8 - General Support”