LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-07-2010, 12:32 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
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:
Code:
# Kickstart file
#
#       Centos_40 minimal -- by RPH 050311
#               info@owlriver.com
#       ORCsetPXE Centos_40
#
install
lang en_US.UTF-8
langsupport --default en_US.UTF-8 en_US.UTF-8
keyboard us
mouse generic3ps/2 --device psaux
skipx
network --device eth0 --bootproto dhcp
#
url --url http://10.209.7.8/
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

%packages
sudo
kernel
grub
openssh-server
openssh
openssh-clients
vi
yum
#
-anacron
-apmd
-autofs
-bluez-libs
-bluez-bluefw
-bluez-hcidump
-bluez-utils
-comps
-desktop-file-utils
-dhcpv6_client
-diskdumputils
-eject
-finger
-lftp
-logwatch
-rpmdb-CentOS
-fbset
-freetype
-fontconfig
-htmlview
-ipsec-tools
-iptables
-irda-utils
-isdn4k-utils
-lockdev
-mailcap
-mdadm
-mgetty
-minicom
-mt-st
-nano
-nc
-netdump
-nfs-utils
-quota
-pcmcia-cs
-pinfo
-portmap
-rdist
-rmt
-rp-pppoe
-rsh
-statserial
-setserial
-slocate
-specspo
-stunnel
-sysreport
-system-config-securitylevel-tui
-system-config-network-tui
-talk
-tcpdump
-up2date
-vconfig
-wvdial
-wireless-tools
-ypbind
-yp-tools
#
-redhat-lsb
-xorg-x11-Mesa-libGL
-xorg-x11-libs
#
#       needed to quell install noise
system-config-mouse
#
-pyxf86config
-rhpl
#
-libwvstreams
-ppp
#
-utemper
-wireless-tools
#
#
%post
#
#
#       get syslog working so we can see what is happening
echo "*.*  @10.209.7.8 " >> /etc/syslog.conf
/sbin/service syslog restart > /dev/null 2>&1
echo "syslog started " | logger -p local1.info
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 local1.info
sleep 5
#
        while [ $CNT -gt 1 ] ; do
                NONCE=`rpm -q $i --last | awk '{print $1}' | tail -1`
#
echo "kernel: $NONCE " | logger -p local1.info
sleep 5
#
                rpm -e $NONCE  && echo "  removed extra $NONCE kernel" | \
                         logger -p local1.info
                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 local1.info
sleep 5
#
        done
done
#
#
DIRTY="1"
while [ "x$DIRTY" = "x1" ] ; do
export DIRTY="0"
echo "restarting ... " | logger -p local1.info
#

#       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 local1.info
        [ "x$i" != "x" ] && rpm -e $i 2> /dev/null && {
                echo "   removed $i" | logger -p local1.info
                export DIRTY="1"
                }
done
done
echo "done ... " | logger -p local1.info
#
###########################################################
#
#

All I can kickstart well with the http://<ip>/ks.cfg but getting this Error.
Code:
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-07-2010, 12:50 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
And does that virtual machine of yours present a SCSI or ATA disk
to the guest OS?
 
Old 01-07-2010, 12:58 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
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, 11:21 PM   #4
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 221
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.

Regards
Dk
Attached Thumbnails
Click image for larger version

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

Rep: Reputation: Disabled
ths pantdk great help.
 
  


Reply


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 10:35 AM
Kickstart Error Error opening kickstart file (null): bad address Latitude Linux - Networking 0 06-03-2009 12:20 PM
CentOS/Redhat kickstart packages cdestiny Linux - Server 4 12-02-2008 05:46 AM
Minimal centos via kickstart not working abcdefg Red Hat 5 11-01-2008 01:11 PM
error opening: kickstart file maxsu Linux - Software 0 11-17-2003 05:12 AM


All times are GMT -5. The time now is 11:03 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration