LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 03-02-2016, 01:29 AM   #1
sakshi123
LQ Newbie
 
Registered: Mar 2016
Posts: 1

Rep: Reputation: Disabled
Kickstart issue in centos7


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.
 
Old 03-02-2016, 09:57 AM   #2
life0riley
Member
 
Registered: Feb 2016
Location: Salem, OR, USA
Distribution: Kubuntu, Xubuntu, Debian, Fedora
Posts: 36

Rep: Reputation: 4
Greetings and welcome to the forum.

I think you intended this post for the CentOS of this forum here.
 
Old 03-02-2016, 01:02 PM   #3
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hello and welcome to the forum

As life0riley has indicated, this sub-forum is for introductions only. Please see here and resubmit your request at the CentOS subforum using the link above or another appropriate sub-forum.

Regards...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS7 / Apache / custom DocumentRoot / SELinux issue AdultFoundry Linux - Server 1 01-08-2016 09:05 AM
RHEL 6.1 Kickstart issue ankitjainfsl Linux - Server 5 08-13-2011 01:19 PM
kickstart installation issue Uday123 Linux - Software 3 10-01-2009 10:13 PM
Kickstart Issue tbone63078 Red Hat 2 07-02-2007 05:13 PM
kickstart issue , pls help me jiawj Red Hat 3 01-09-2005 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration