Custom kickstart install completes but machine won't boot2019 Community Moderator ElectionTrouble booting CentOSTransfer 2 drive raid0 / lvm2 system to new drive pairHow can I convert a chroot into a GRUB2 bootable ISO image?Initialise USB devices before hard disks during grub2 bootGrub error: unknown filesystem. (all partitions are unknown)Permanent grub2 configuration on Debian 8 (Jessie) installation on Asus X205TAdebian from disk to big disk: what i miss?Grub2 boot from USB3 PCIe cardHow do I fix “Kernel panic” error when booting USB stick?Is it possible to get NixOS's GRUB to properly start Arch Linux?
Air travel with refrigerated insulin
Isometric embedding of a genus g surface
How many people need to be born every 8 years to sustain population?
Can you identify this lizard-like creature I observed in the UK?
Storage of electrolytic capacitors - how long?
What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?
Why does the Persian emissary display a string of crowned skulls?
Can I cause damage to electrical appliances by unplugging them when they are turned on?
Is there anyway, I can have two passwords for my wi-fi
How to make money from a browser who sees 5 seconds into the future of any web page?
How to test the sharpness of a knife?
Grepping string, but include all non-blank lines following each grep match
How to I force windows to use a specific version of SQLCMD?
Why do Radio Buttons not fill the entire outer circle?
If Captain Marvel (MCU) were to have a child with a human male, would the child be human or Kree?
Is there a reason to prefer HFS+ over APFS for disk images in High Sierra and/or Mojave?
Check if object is null and return null
Ways of geometrical multiplication
Personal or impersonal in a technical resume
Would a primitive species be able to learn English from reading books alone?
If the only attacker is removed from combat, is a creature still counted as having attacked this turn?
Why does a 97 / 92 key piano exist by Bösendorfer?
SOQL query causes internal Salesforce error
How do I fix the group tension caused by my character stealing and possibly killing without provocation?
Custom kickstart install completes but machine won't boot
2019 Community Moderator ElectionTrouble booting CentOSTransfer 2 drive raid0 / lvm2 system to new drive pairHow can I convert a chroot into a GRUB2 bootable ISO image?Initialise USB devices before hard disks during grub2 bootGrub error: unknown filesystem. (all partitions are unknown)Permanent grub2 configuration on Debian 8 (Jessie) installation on Asus X205TAdebian from disk to big disk: what i miss?Grub2 boot from USB3 PCIe cardHow do I fix “Kernel panic” error when booting USB stick?Is it possible to get NixOS's GRUB to properly start Arch Linux?
I have been following the instructions on using kickstart to create a custom install at : http://www.smorgasbork.com/2012/01/04/building-a-custom-centos-7-kickstart-disc-part-3/
I got an unattended install working, but now the machine won't boot when it's started.
Grub(2) loads but doesn't automatically load the kernel (I guess I need to create a config file to automate this - not really worried about that at this stage) so I issue the following commands to boot:
set root=(hd0,msdos1)
set prefix=(hd0,msdos1)/boot/grub2
insmod vbe.mod
insmod mmap.mod
insmod relocator.mod
insmod linux.mod
insmod lvm.mod
linux (hd0,msdos1)/vmlinuz root=/dev/mapper/centos_partition1-root
initrd (hd0,msdos1)/initrd-plymouth.img
boot
This results in a kernel panic, output of which is preceded by the following:
md: waiting for all devices to be available before auto detect
md: if you don’t use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
List of all partitions:
No filesystem could mount root, tried:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I also tried using initramfs instead of initrd-plymouth but this produced a similar problem, although this time the output is:
dracut: FATAL: No or empty root= argument
I've worked a bunch of things out to get to this point but I just don't see where to go from here. Help appreciated.
ks.cfg
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
# graphical
# Use text install
text
# Make kickstart non-interactive
autostep
# Run the Setup Agent on first boot
#firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=gb --xlayouts='gb'
# System language
lang en_GB.UTF-8
# Network information
network --bootproto=dhcp --device=enp2s0 --onboot=off --ipv6=auto --activate
network --device=lo --hostname=partition1
#Root password
rootpw --lock
# System timezone
timezone Europe/London --isUtc
user --groups=wheel --name=adm --password=() --iscrypted --gecos="admin"
# System bootloader configuration
#bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
bootloader --location=mbr
autopart --type=lvm
# Partition clearing information
clearpart --drives=sda --all --initlabel
%packages
@^minimal
@core
kexec-tools
openscap
openscap-scanner
scap-security-guide
%end
%addon org_fedora_oscap
content-type = scap-security-guide
profile = standard
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
edit:
I've been through the process I used to get this far and I think the anaconda script was missing some items, which I ended up doing manually before the reboot following the automated install.
I had also issued the following commands:
mount /dev/block/8:1 /mnt
grub2-install --boot-directory=/mnt/boot /dev/sda
cp /run/install/repo/vmlinuz /mnt
centos boot grub2 kickstart
bumped to the homepage by Community♦ 22 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have been following the instructions on using kickstart to create a custom install at : http://www.smorgasbork.com/2012/01/04/building-a-custom-centos-7-kickstart-disc-part-3/
I got an unattended install working, but now the machine won't boot when it's started.
Grub(2) loads but doesn't automatically load the kernel (I guess I need to create a config file to automate this - not really worried about that at this stage) so I issue the following commands to boot:
set root=(hd0,msdos1)
set prefix=(hd0,msdos1)/boot/grub2
insmod vbe.mod
insmod mmap.mod
insmod relocator.mod
insmod linux.mod
insmod lvm.mod
linux (hd0,msdos1)/vmlinuz root=/dev/mapper/centos_partition1-root
initrd (hd0,msdos1)/initrd-plymouth.img
boot
This results in a kernel panic, output of which is preceded by the following:
md: waiting for all devices to be available before auto detect
md: if you don’t use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
List of all partitions:
No filesystem could mount root, tried:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I also tried using initramfs instead of initrd-plymouth but this produced a similar problem, although this time the output is:
dracut: FATAL: No or empty root= argument
I've worked a bunch of things out to get to this point but I just don't see where to go from here. Help appreciated.
ks.cfg
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
# graphical
# Use text install
text
# Make kickstart non-interactive
autostep
# Run the Setup Agent on first boot
#firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=gb --xlayouts='gb'
# System language
lang en_GB.UTF-8
# Network information
network --bootproto=dhcp --device=enp2s0 --onboot=off --ipv6=auto --activate
network --device=lo --hostname=partition1
#Root password
rootpw --lock
# System timezone
timezone Europe/London --isUtc
user --groups=wheel --name=adm --password=() --iscrypted --gecos="admin"
# System bootloader configuration
#bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
bootloader --location=mbr
autopart --type=lvm
# Partition clearing information
clearpart --drives=sda --all --initlabel
%packages
@^minimal
@core
kexec-tools
openscap
openscap-scanner
scap-security-guide
%end
%addon org_fedora_oscap
content-type = scap-security-guide
profile = standard
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
edit:
I've been through the process I used to get this far and I think the anaconda script was missing some items, which I ended up doing manually before the reboot following the automated install.
I had also issued the following commands:
mount /dev/block/8:1 /mnt
grub2-install --boot-directory=/mnt/boot /dev/sda
cp /run/install/repo/vmlinuz /mnt
centos boot grub2 kickstart
bumped to the homepage by Community♦ 22 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Posting the kickstart configuration used might be informative.
– thrig
May 24 '16 at 15:45
I've pasted ks.cfg below the original post.
– Brongers Croste
May 24 '16 at 16:11
So where did thatmd
RAID come from? I don't see it in the kickstart config.
– thrig
May 24 '16 at 16:35
it's not in the kickstart config, and it isn't a RAID machine.
– Brongers Croste
May 25 '16 at 8:10
I don't know where else the md RAID would be? Is it a default part of the kernel or plymouth?
– Brongers Croste
May 25 '16 at 8:33
add a comment |
I have been following the instructions on using kickstart to create a custom install at : http://www.smorgasbork.com/2012/01/04/building-a-custom-centos-7-kickstart-disc-part-3/
I got an unattended install working, but now the machine won't boot when it's started.
Grub(2) loads but doesn't automatically load the kernel (I guess I need to create a config file to automate this - not really worried about that at this stage) so I issue the following commands to boot:
set root=(hd0,msdos1)
set prefix=(hd0,msdos1)/boot/grub2
insmod vbe.mod
insmod mmap.mod
insmod relocator.mod
insmod linux.mod
insmod lvm.mod
linux (hd0,msdos1)/vmlinuz root=/dev/mapper/centos_partition1-root
initrd (hd0,msdos1)/initrd-plymouth.img
boot
This results in a kernel panic, output of which is preceded by the following:
md: waiting for all devices to be available before auto detect
md: if you don’t use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
List of all partitions:
No filesystem could mount root, tried:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I also tried using initramfs instead of initrd-plymouth but this produced a similar problem, although this time the output is:
dracut: FATAL: No or empty root= argument
I've worked a bunch of things out to get to this point but I just don't see where to go from here. Help appreciated.
ks.cfg
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
# graphical
# Use text install
text
# Make kickstart non-interactive
autostep
# Run the Setup Agent on first boot
#firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=gb --xlayouts='gb'
# System language
lang en_GB.UTF-8
# Network information
network --bootproto=dhcp --device=enp2s0 --onboot=off --ipv6=auto --activate
network --device=lo --hostname=partition1
#Root password
rootpw --lock
# System timezone
timezone Europe/London --isUtc
user --groups=wheel --name=adm --password=() --iscrypted --gecos="admin"
# System bootloader configuration
#bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
bootloader --location=mbr
autopart --type=lvm
# Partition clearing information
clearpart --drives=sda --all --initlabel
%packages
@^minimal
@core
kexec-tools
openscap
openscap-scanner
scap-security-guide
%end
%addon org_fedora_oscap
content-type = scap-security-guide
profile = standard
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
edit:
I've been through the process I used to get this far and I think the anaconda script was missing some items, which I ended up doing manually before the reboot following the automated install.
I had also issued the following commands:
mount /dev/block/8:1 /mnt
grub2-install --boot-directory=/mnt/boot /dev/sda
cp /run/install/repo/vmlinuz /mnt
centos boot grub2 kickstart
I have been following the instructions on using kickstart to create a custom install at : http://www.smorgasbork.com/2012/01/04/building-a-custom-centos-7-kickstart-disc-part-3/
I got an unattended install working, but now the machine won't boot when it's started.
Grub(2) loads but doesn't automatically load the kernel (I guess I need to create a config file to automate this - not really worried about that at this stage) so I issue the following commands to boot:
set root=(hd0,msdos1)
set prefix=(hd0,msdos1)/boot/grub2
insmod vbe.mod
insmod mmap.mod
insmod relocator.mod
insmod linux.mod
insmod lvm.mod
linux (hd0,msdos1)/vmlinuz root=/dev/mapper/centos_partition1-root
initrd (hd0,msdos1)/initrd-plymouth.img
boot
This results in a kernel panic, output of which is preceded by the following:
md: waiting for all devices to be available before auto detect
md: if you don’t use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
List of all partitions:
No filesystem could mount root, tried:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I also tried using initramfs instead of initrd-plymouth but this produced a similar problem, although this time the output is:
dracut: FATAL: No or empty root= argument
I've worked a bunch of things out to get to this point but I just don't see where to go from here. Help appreciated.
ks.cfg
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
# graphical
# Use text install
text
# Make kickstart non-interactive
autostep
# Run the Setup Agent on first boot
#firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=gb --xlayouts='gb'
# System language
lang en_GB.UTF-8
# Network information
network --bootproto=dhcp --device=enp2s0 --onboot=off --ipv6=auto --activate
network --device=lo --hostname=partition1
#Root password
rootpw --lock
# System timezone
timezone Europe/London --isUtc
user --groups=wheel --name=adm --password=() --iscrypted --gecos="admin"
# System bootloader configuration
#bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
bootloader --location=mbr
autopart --type=lvm
# Partition clearing information
clearpart --drives=sda --all --initlabel
%packages
@^minimal
@core
kexec-tools
openscap
openscap-scanner
scap-security-guide
%end
%addon org_fedora_oscap
content-type = scap-security-guide
profile = standard
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
edit:
I've been through the process I used to get this far and I think the anaconda script was missing some items, which I ended up doing manually before the reboot following the automated install.
I had also issued the following commands:
mount /dev/block/8:1 /mnt
grub2-install --boot-directory=/mnt/boot /dev/sda
cp /run/install/repo/vmlinuz /mnt
centos boot grub2 kickstart
centos boot grub2 kickstart
edited May 25 '16 at 9:50
Brongers Croste
asked May 24 '16 at 15:19


Brongers CrosteBrongers Croste
63
63
bumped to the homepage by Community♦ 22 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 22 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Posting the kickstart configuration used might be informative.
– thrig
May 24 '16 at 15:45
I've pasted ks.cfg below the original post.
– Brongers Croste
May 24 '16 at 16:11
So where did thatmd
RAID come from? I don't see it in the kickstart config.
– thrig
May 24 '16 at 16:35
it's not in the kickstart config, and it isn't a RAID machine.
– Brongers Croste
May 25 '16 at 8:10
I don't know where else the md RAID would be? Is it a default part of the kernel or plymouth?
– Brongers Croste
May 25 '16 at 8:33
add a comment |
Posting the kickstart configuration used might be informative.
– thrig
May 24 '16 at 15:45
I've pasted ks.cfg below the original post.
– Brongers Croste
May 24 '16 at 16:11
So where did thatmd
RAID come from? I don't see it in the kickstart config.
– thrig
May 24 '16 at 16:35
it's not in the kickstart config, and it isn't a RAID machine.
– Brongers Croste
May 25 '16 at 8:10
I don't know where else the md RAID would be? Is it a default part of the kernel or plymouth?
– Brongers Croste
May 25 '16 at 8:33
Posting the kickstart configuration used might be informative.
– thrig
May 24 '16 at 15:45
Posting the kickstart configuration used might be informative.
– thrig
May 24 '16 at 15:45
I've pasted ks.cfg below the original post.
– Brongers Croste
May 24 '16 at 16:11
I've pasted ks.cfg below the original post.
– Brongers Croste
May 24 '16 at 16:11
So where did that
md
RAID come from? I don't see it in the kickstart config.– thrig
May 24 '16 at 16:35
So where did that
md
RAID come from? I don't see it in the kickstart config.– thrig
May 24 '16 at 16:35
it's not in the kickstart config, and it isn't a RAID machine.
– Brongers Croste
May 25 '16 at 8:10
it's not in the kickstart config, and it isn't a RAID machine.
– Brongers Croste
May 25 '16 at 8:10
I don't know where else the md RAID would be? Is it a default part of the kernel or plymouth?
– Brongers Croste
May 25 '16 at 8:33
I don't know where else the md RAID would be? Is it a default part of the kernel or plymouth?
– Brongers Croste
May 25 '16 at 8:33
add a comment |
1 Answer
1
active
oldest
votes
I guess the post install commands I was having to issue where a bit of a clue. Following another "successful" install I checked the contents of /mnt/sysimage/var/log/anaconda/anaconda.log which indicated that no kernel was being installed.
Sure enough I hadn't added the kernel package into the repo on my ISO - so I added in the kernel package (and grubby, which is a dependency), rebuilt the repo and installed. This time the install correctly installed and configured the bootloader.
Thanks for looking.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f285182%2fcustom-kickstart-install-completes-but-machine-wont-boot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I guess the post install commands I was having to issue where a bit of a clue. Following another "successful" install I checked the contents of /mnt/sysimage/var/log/anaconda/anaconda.log which indicated that no kernel was being installed.
Sure enough I hadn't added the kernel package into the repo on my ISO - so I added in the kernel package (and grubby, which is a dependency), rebuilt the repo and installed. This time the install correctly installed and configured the bootloader.
Thanks for looking.
add a comment |
I guess the post install commands I was having to issue where a bit of a clue. Following another "successful" install I checked the contents of /mnt/sysimage/var/log/anaconda/anaconda.log which indicated that no kernel was being installed.
Sure enough I hadn't added the kernel package into the repo on my ISO - so I added in the kernel package (and grubby, which is a dependency), rebuilt the repo and installed. This time the install correctly installed and configured the bootloader.
Thanks for looking.
add a comment |
I guess the post install commands I was having to issue where a bit of a clue. Following another "successful" install I checked the contents of /mnt/sysimage/var/log/anaconda/anaconda.log which indicated that no kernel was being installed.
Sure enough I hadn't added the kernel package into the repo on my ISO - so I added in the kernel package (and grubby, which is a dependency), rebuilt the repo and installed. This time the install correctly installed and configured the bootloader.
Thanks for looking.
I guess the post install commands I was having to issue where a bit of a clue. Following another "successful" install I checked the contents of /mnt/sysimage/var/log/anaconda/anaconda.log which indicated that no kernel was being installed.
Sure enough I hadn't added the kernel package into the repo on my ISO - so I added in the kernel package (and grubby, which is a dependency), rebuilt the repo and installed. This time the install correctly installed and configured the bootloader.
Thanks for looking.
answered May 25 '16 at 11:09


Brongers CrosteBrongers Croste
63
63
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f285182%2fcustom-kickstart-install-completes-but-machine-wont-boot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Posting the kickstart configuration used might be informative.
– thrig
May 24 '16 at 15:45
I've pasted ks.cfg below the original post.
– Brongers Croste
May 24 '16 at 16:11
So where did that
md
RAID come from? I don't see it in the kickstart config.– thrig
May 24 '16 at 16:35
it's not in the kickstart config, and it isn't a RAID machine.
– Brongers Croste
May 25 '16 at 8:10
I don't know where else the md RAID would be? Is it a default part of the kernel or plymouth?
– Brongers Croste
May 25 '16 at 8:33