Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-06-2010, 11:32 PM   #1
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
Error with CentOS Kickstart file?

I have downloaded the following kickstart file for installing minimal < 300 MB space centOS 5.2. I have created a Virtual Machine for Linux and attempting to install CentOS.
here is my kickstart file:
# Kickstart file
#       Centos_40 minimal -- by RPH 050311
#       ORCsetPXE Centos_40
lang en_US.UTF-8
langsupport --default en_US.UTF-8 en_US.UTF-8
keyboard us
mouse generic3ps/2 --device psaux
network --device eth0 --bootproto dhcp
url --url
rootpw --iscrypted $1$m7svN/$2b/cupDvFEYeNN9IgFInz0
firewall --disabled
authconfig --enableshadow --enablemd5
timezone Asia/Calcutta
bootloader --location=mbr --append hdb=ide-scsi
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart       --all --drives=sda
part /          --fstype ext3 --size=800  --ondisk=sda
part swap                     --size=384  --ondisk=sda --maxsize=768

#       needed to quell install noise
#       get syslog working so we can see what is happening
echo "*.*  @ " >> /etc/syslog.conf
/sbin/service syslog restart > /dev/null 2>&1
echo "syslog started " | logger -p
sleep 5
#       Set up a local archive of the complete install set
#       for later maintenance (local only)
rpm --import `find /usr/share/doc -name '*GPG*' | grep -v -i centos | \
        head -1` 2> /dev/null
rpm --import `find /usr/share/doc -name '*GPG*' | grep -i centos | \
        head -1` 2> /dev/null
# rpm --import `find /usr/share/doc -name '*GPG*' | grep -v orc | \
#       head -1` 2> /dev/null
#       Free up the yum cached files
yum -y clean all
#       remove some obvious dupes
for i in kernel kernel-smp ; do
        NONCE=`rpm -q $i 2> /dev/null | wc -l | awk '{print $1}'`
        export CNT=`echo " 0${NONCE} + 0" | bc`
echo "cnt: $CNT pre while $NONCE " | logger -p
sleep 5
        while [ $CNT -gt 1 ] ; do
                NONCE=`rpm -q $i --last | awk '{print $1}' | tail -1`
echo "kernel: $NONCE " | logger -p
sleep 5
                rpm -e $NONCE  && echo "  removed extra $NONCE kernel" | \
                         logger -p
                NONCE=`rpm -q $i 2> /dev/null | wc -l | awk '{print $1}'`
                export CNT=`echo " 0${NONCE} + 0" | bc`
echo "cnt: $CNT in while $NONCE " | logger -p
sleep 5
while [ "x$DIRTY" = "x1" ] ; do
export DIRTY="0"
echo "restarting ... " | logger -p

#       anaconda wants bc
for i in `rpm -qa --qf '%{name}\n' | grep -v joe | grep -v ssh | \
        grep -v rsync | grep -v dhclient | grep -v mouse | \
        grep -v sel | grep -v policy | grep -v nscd | \
        grep -v kernel | grep -v dos | grep -v ^bc | \
        grep -v grub | grep -v yum `; do
        echo "testing $i" | logger -p
        [ "x$i" != "x" ] && rpm -e $i 2> /dev/null && {
                echo "   removed $i" | logger -p
                export DIRTY="1"
echo "done ... " | logger -p

All I can kickstart well with the http://<ip>/ks.cfg but getting this Error.
The following error was found while parsing your kickstart configuration:

the Folowing problem occured on line 25 of the kickstart file:

Specified nonexistent disk sda in clearpart command
Old 01-06-2010, 11:50 PM   #2
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
And does that virtual machine of yours present a SCSI or ATA disk
to the guest OS?
Old 01-06-2010, 11:58 PM   #3
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
How can I check that?
All I tried browsing:Virtual Machine > Settings > Advanced > And it shows:

Virtual disk Node:SCSI 0:0 Hard Disk 1

Do yu mean this?
Old 04-09-2013, 10:21 PM   #4
Registered: Oct 2011
Location: New Delhi
Posts: 246
Blog Entries: 3

Rep: Reputation: 17
error related to the scsi controller

Hi all,

It's very late to reply on this thread.but when i am facing the same issue i found this thread which have the same issue/question without any solution so i tried googled & getting lot of site suggestion but it didn't resolve so after 2 days of searching i found the solution that is "we have to change the iscsi controller type for linux i selected the lsi at esx level which resolve my problem.
rhel5.3 which is at esx.PFA of screen shoot which i received when i am trying to install the os through kickstart

secondly this thread is not have a resolution so that's my intension to resolve it because i found this thread in which i found the same problem.

Attached Thumbnails
Click image for larger version

Name:	Screen shot 2013-04-09 at 11.12.16 AM.png
Views:	1367
Size:	85.4 KB
ID:	12273  
Old 06-26-2014, 04:44 AM   #5
LQ Newbie
Registered: Jun 2014
Posts: 1

Rep: Reputation: Disabled
ths pantdk great help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't kickstart CentOs on VirtualBox VM geek.ksa Linux - Virtualization and Cloud 3 08-29-2010 09:35 AM
Kickstart Error Error opening kickstart file (null): bad address Latitude Linux - Networking 0 06-03-2009 11:20 AM
CentOS/Redhat kickstart packages cdestiny Linux - Server 4 12-02-2008 04:46 AM
Minimal centos via kickstart not working abcdefg Red Hat 5 11-01-2008 12:11 PM
error opening: kickstart file maxsu Linux - Software 0 11-17-2003 04:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:56 AM.

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