kickstart installation issue

General support questions
andrewm659
Posts: 38
Joined: 2014/10/24 16:20:13

kickstart installation issue

Post by andrewm659 » 2020/02/10 16:28:50

Hello,
I am running CentOS 8 and have multiple versions CentOS I am trying to kickstart CentOS 7.

It seems to be hanging up on storage and I am not sure why.

Here is the storage portion of my kickstart config. What am I doing wrong?

Code: Select all

# System bootloader configuration
#bootloader --location=mbr --append="rhgb quiet crashkernel=auto"
bootloader --location=mbr --driveorder=sda --append="rhgb quiert crashkernel=auto novga console=ttyS0,115200 console=tty0"
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel --drives=sda
# Disk partitioning information
part /boot --asprimary --fstype="ext4" --size=2048 --ondisk=sda
part pv.01 --fstype="lvmpv" --size=1 --grow --ondisk=sda
volgroup vg_root --pesize=131072 pv.01
logvol / --fstype="ext4" --name=lv_root --vgname=vg_root --size=3096
logvol /var --fstype="ext4" --name=lv_var --vgname=vg_root --size=10000
logvol /var/log --fstype="ext4" --name=lv_var_log --vgname=vg_root --size=4000
logvol /var/log/audit --fstype="ext4" --name=lv_var_log_audit --vgname=vg_root --size=2000
logvol /usr --fstype="ext4" --name=lv_usr --vgname=vg_root --size=8000
logvol /home --fstype="ext4" --name=lv_home --vgname=vg_root --size=10000
logvol /tmp --fstype="ext4" --name=lv_tmp --vgname=vg_root --size=5000
logvol swap --fstype="swap" --name=lv_swap --vgname=vg_root --size=2048
logvol /opt --fstype="ext4" --name=lv_opt --vgname=vg_root --size=5000


%packages
@base
@core
@network-tools
bash-completion
ipa-client
%end
test-anaconda.zip
(2.4 KiB) Downloaded 3 times

Thraex
Posts: 33
Joined: 2019/05/14 19:50:28

Re: kickstart installation issue

Post by Thraex » 2020/02/10 18:04:43

--append="rhgb quiert..."

Typo in quiet might be causing it, what errors are you getting? Also, if the system is UEFI it will need a /boot/efi partition

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

Re: kickstart installation issue

Post by andrewm659 » 2020/02/10 18:24:11

Ugh!

Its not but ty!

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

Re: kickstart installation issue

Post by andrewm659 » 2020/02/10 18:29:21

This is in the anaconda.log

Code: Select all

15:58:47,945 INFO anaconda: Thread Done: AnaSoftwareWatcher (139789074478848)
15:58:48,398 DEBUG anaconda: sda matches [u'sda'] for devicetree=<blivet.devicetree.DeviceTree object at 0x7f2335c79a50> and disks_only=True
15:58:48,400 DEBUG anaconda: new disk order: [u'sda']
15:58:48,402 DEBUG anaconda: Bootloader: use 'sda' first disk from driveorder as boot drive, dry run True
15:58:49,933 DEBUG anaconda: sda matches [u'sda'] for devicetree=<blivet.devicetree.DeviceTree object at 0x7f2335c79a50> and disks_only=True
15:58:49,935 DEBUG anaconda: new disk order: [u'sda']
15:58:49,936 DEBUG anaconda: Bootloader: use 'sda' first disk from driveorder as boot drive, dry run False
15:58:49,959 DEBUG anaconda: _is_valid_disklabel(sda) returning True
15:58:49,961 DEBUG anaconda: _is_valid_size(sda) returning True
15:58:49,962 DEBUG anaconda: _is_valid_location(sda) returning True
15:58:49,964 DEBUG anaconda: _is_valid_format(sda) returning True
15:58:49,965 DEBUG anaconda: is_valid_stage1_device(sda) returning True
15:58:50,011 DEBUG anaconda: _is_valid_disklabel(sda) returning True
15:58:50,013 DEBUG anaconda: _is_valid_size(sda) returning True
15:58:50,014 DEBUG anaconda: _is_valid_location(sda) returning True
15:58:50,016 DEBUG anaconda: _is_valid_format(sda) returning True
15:58:50,017 DEBUG anaconda: is_valid_stage1_device(sda) returning True
15:58:50,019 DEBUG anaconda: _is_valid_disklabel(sda1) returning True
15:58:50,019 DEBUG anaconda: _is_valid_size(sda1) returning True
15:58:50,021 DEBUG anaconda: _is_valid_location(sda1) returning True
15:58:50,023 DEBUG anaconda: _is_valid_partition(sda1) returning True
15:58:50,026 DEBUG anaconda: _is_valid_format(sda1) returning True
15:58:50,026 DEBUG anaconda: is_valid_stage2_device(sda1) returning True
15:58:50,036 DEBUG anaconda: Storage check started with constraints {'must_be_on_linuxfs': set(['/tmp', '/var', '/usr', '/home', '/', '/usr/lib', '/usr/share']), 'must_be_on_root': set(['/etc', '/bin', '/proc', '/sbin', '/dev', '/lib', 'lost+found', '/mnt', '/root']), 'min_ram': 320, 'req_partition_sizes': {}, 'min_root': Size('250 MiB'), 'must_not_be_on_root': set([]), 'root_device_types': set([]), 'min_partition_sizes': {'/boot': Size('200 MiB'), '/home': Size('100 MiB'), '/var': Size('384 MiB'), '/tmp': Size('50 MiB'), '/usr': Size('250 MiB')}}.
15:58:50,041 DEBUG anaconda: Run sanity check verify_root.
15:58:50,041 DEBUG anaconda: Run sanity check verify_partition_sizes.
15:58:50,042 DEBUG anaconda: Run sanity check verify_partition_format_sizes.
15:58:50,045 DEBUG anaconda: Run sanity check verify_bootloader.
15:58:50,046 DEBUG anaconda: Run sanity check verify_gpt_biosboot.
15:58:50,046 DEBUG anaconda: Run sanity check verify_swap.
15:58:50,046 DEBUG anaconda: Run sanity check verify_swap_uuid.
15:58:50,046 DEBUG anaconda: Run sanity check verify_mountpoints_on_linuxfs.
15:58:50,047 DEBUG anaconda: Run sanity check verify_mountpoints_on_root.
15:58:50,047 DEBUG anaconda: Run sanity check verify_mountpoints_not_on_root.
15:58:50,047 DEBUG anaconda: Run sanity check verify_luks_devices_have_key.
15:58:50,048 DEBUG anaconda: Storage check finished with success.
15:58:50,072 DEBUG anaconda: Entered hub: SummaryHub
15:58:50,296 INFO anaconda: fs space: 10.84 GiB  needed: 2861.02 MiB
15:58:50,335 INFO anaconda: Running Thread: AnaInputThread1 (139789091264256)

User avatar
TrevorH
Forum Moderator
Posts: 27727
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: kickstart installation issue

Post by TrevorH » 2020/02/10 18:42:54

I've seen kickstarts fail before with --size 1 and --grow. Try --size 100 or more.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

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

Re: kickstart installation issue

Post by andrewm659 » 2020/02/10 18:45:11

What's weird is that this works for CentOS 5,6, and 8.

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

Re: kickstart installation issue

Post by andrewm659 » 2020/02/10 18:46:02

The other thing I'm struggling with is the extents size for a 120GB sda.

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

Re: kickstart installation issue

Post by andrewm659 » 2020/02/10 18:50:55

Also,
I tried changing 1 to 100. Nope. Got the same error as I pasted above.

Thraex
Posts: 33
Joined: 2019/05/14 19:50:28

Re: kickstart installation issue

Post by Thraex » 2020/02/10 18:55:14

For my kickstart, I didn't specify the size of the volume group, just have: volgroup volname pvname
My part pv line is nearly identical to yours as well, just with different names/disks

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

Re: kickstart installation issue

Post by andrewm659 » 2020/02/10 19:55:06

Tried changing my kickstart for centos 7 to look like this

Code: Select all

#bootloader --location=mbr --append="rhgb quiet crashkernel=auto"
bootloader --location=mbr --driveorder=sda --append="rhgb quiet crashkernel=auto novga console=ttyS0,115200 console=tty0"
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel --drives=sda
# Disk partitioning information
part /boot --fstype="ext4" --size=2048 --ondisk=sda --asprimary
part pv.01 --fstype="lvmpv" --size=1 --grow --ondisk=sda
volgroup vg_root pv.01
logvol / --fstype="xfs" --name=lv_root --vgname=vg_root --size=4096
logvol /var --fstype="xfs" --name=lv_var --vgname=vg_root --size=10000
logvol /var/log --fstype="xfs" --name=lv_var_log --vgname=vg_root --size=4096
logvol /var/log/audit --fstype="ext4" --name=lv_var_log_audit --vgname=vg_root --size=2048
logvol /usr --fstype="xfs" --name=lv_usr --vgname=vg_root --size=10000
logvol /home --fstype="xfs" --name=lv_home --vgname=vg_root --size=10000
logvol /tmp --fstype="xfs" --name=lv_tmp --vgname=vg_root --size=5000
logvol swap --fstype="swap" --name=lv_swap --vgname=vg_root --size=2048
logvol /opt --fstype="xfs" --name=lv_opt --vgname=vg_root --size=5000

Post Reply

Return to “CentOS 7 - General Support”