Hi All,
I am facing the same problem on centos7.
i am trying to boot the client from kickstart server. while booting, i am getting the error of dracut and enter in emergency shell.
Error is like: dracut-initqueue: Warning failed to fetch kickstart file
http://...
dracut-initqueue: Could not resolve host name ....
I am using multiple interfaces while creating setup. enp2s0f0 is public(O&M) ip for the server. i have configured private IP on enp2s0f1 and making it as dhcp server.
My Boot menu like:
==========================
default menu.c32
prompt 0
timeout 300
menu title ########## PXE Boot Menu ##########
label 1
menu label ^1) Install CentOS 7 x64 with Local Repo using Kickstart
kernel centos7/vmlinuz
append initrd=centos7/initrd.img ip=dhcp ksdevice=bootif ks=http://..../centos7/centos-ks.cfg
ipappend 2
label 2
menu label ^2) Boot from local drive
==========================
Kickstart file:-
#version=DEVEL
# System authorization information
auth --useshadow --enablemd5
# Use graphical install
graphical
# Use network installation
url --url="http://../centos7/"
#Network Information
network --bootproto=dhcp --device=enp2s0f0 --ipv6=auto --activate
network --bootproto=dhcp --device=enp2s0f1 --onboot=off --ipv6=auto
network --hostname=localhost.localdomain
#Run the Setup Agent on First boot
firstboot --enable
#System Language
lang en_US.UTF-8
#Keyboard Layouts
keyboard us
#Partition Clearing Information
clearpart --all --initlabel --drives=sda
ignoredisk --only-use=sda
#System BootLoader
bootloader --location=mbr --boot-drive=sda
#Partitioning Information
#part /boot --fstype=ext4 --asprimary --size=512 --ondrive=sda
#part pv.01 --fstype=ext4 --asprimary --size=5192 --ondrive=sda
#part pv.02 --fstype=ext4 --asprimary --size=1024 --ondrive=sda
#part pv.164 --fstype="lvmpv" --ondisk=sda --size=165702
#part /boot --fstype="xfs" --ondisk=sda --size=500
#volgroup centos --pesize=4096 pv.164
#logvol / --fstype="xfs" --grow --maxsize=51200 --size=1024 --name=root --vgname=centos
#logvol swap --fstype="swap" --size=12096 --name=swap --vgname=centos
#logvol /home --fstype="xfs" --size=102400 --name=home --vgname=centos
autopart --type=lvm
zerombr
#System Timezone Information
timezone Asia/Kolkata
# Installation
install
#Root password set
auth --enablemd5 --enableshadow
rootpw --iscrypted $1$NtoOVher$J6zCcLw4zQwwYZ8x6oFYU.
selinux --disabled
#Reboot After Installing
reboot
#Firewall disable
#firewall --disable
#skipx
#System Services
services --enabled="chronyd"
#Packages list
%packages --default --ignoremissing
@core
@^web-server-environment
@base
@hardware-monitoring
@performance
@perl-web
@php
@python-web
@web-server
curl
gzip
make
chrony
%end
%pre
# Set File Permissions
chmod 644 /etc/profile /etc/bashrc /etc/csh.cshrc /etc/issue /etc/motd /etc/login.defs /etc/sysctl.conf /etc/multipath.conf /etc/resolv.conf /etc/ntp.conf /etc/ntp/ntp.drift
chmod 600 /etc/ssh/sshd_config
%end
# end of generated kickstart file
%post
#Repolist
repo --name=released --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-8&arch=$basearch
repo --name=updates --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f8&arch=$basearch
#Add default user
useradd labit
echo "labit"| passwd --stdin labit
cat <<EOF >>/etc/passwd
labit:x:102:10:ITTE user:/home/labit:/bin/bash
EOF
cat <<EOF >>/etc/group
wheel:x:10:
EOF
%end
=========================
DHCP Server
[root@erlabit ~]# cat /etc/dnsmasq.conf
interface=enp2s0f1,lo
#no-dhcp-interface=enp2s0f0
#bind-interfaces
# DHCP range-leases
dhcp-range=10.0.0.86,10.0.0.200,255.255.255.0,1h
# PXE
dhcp-boot=pxelinux.0,pxeserver,10.0.0.85
# Gateway
dhcp-option=3,10.0.0.1
# Broadcast Address
dhcp-option=28,10.0.0.255
#Display Message
pxe-service=x86PC, "Install CentOS 7 from network server 10.0.0.85", pxelinux
enable-tftp
tftp-root=/var/lib/tftpboot
====================
Can someone please help me and suggest me what is wrong.