[CentOS] Why i can't configure network and hostname with this kickstart file?

Zhang Huangbin zhbmaillistonly at gmail.com
Sat Sep 27 12:39:42 UTC 2008


Hi, all.

I use this kickstart file to install CentOS 5.2 (both i386 and x86_64), 
but i can't config NICs and hostname during installation, what's wrong 
with it?

Thanks very much.

----<- kickstart file ----<----
# System authorization information
#auth  --useshadow  --enablemd5

# System keyboard
#keyboard us

# System language
#lang en_US

# Installation logging level
#logging --level=info
#logging --level=debug

# Installation method.
#cdrom

# SELinux configuration
#selinux --disabled

# Do not configure the X Window System
#skipx

# System timezone
#timezone  Asia/Hong_Kong

# Install OS instead of upgrade
#install

# Configures network information for the system.
#network --bootproto=dhcp

# -------------------
# ---- Test only ----
# -------------------
# Use graphical/text install
graphical

# System bootloader configuration
#bootloader --location=mbr

# Clear the Master Boot Record
#zerombr

# Partition clearing information
#clearpart --all --initlabel

#Root password: redhat
#rootpw --iscrypted $1$h7EtIFv4$R9JQ4aCOVN7E9ml3A2SXv.

# Run the Setup Agent on first boot
#firstboot --disable

# Network information
#network --bootproto=dhcp --device=eth0 --onboot=on

# Disk partitioning information
#part swap --bytes-per-inode=4096 --fstype="swap" --size=512
#part / --bytes-per-inode=4096 --fstype="ext3" --grow --size=1

# -------------------

# For more kickstart options, please refer:
# 
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html
# -------------------------------------------
# Packages.
# -------------------------------------------
%packages --resolvedeps --excludedocs
basesystem
-rmt
-dump
-amtu
-anacron
-acpid
-apmd
-at
-ftp
-redhat-lsb
-atk
-gtk2
-GConf2
-bluez-gnome
-bluez-utils
-notification-daemon
-libwnck
-libnotify
-attr
-audit
-audit-libs-python
-policycoreutils
-setools
-selinux-policy
-selinux-policy-targeted
-authconfig
-firstboot-tui
-autofs
-bc
-bluez-libs
-cairo
-pango
-paps
-cups
-ccid
-coolkey
-cpuspeed
-Deployment_Guide-en-US
-dhcpv6_client
-ed
-finger
-hdparm
-dmraid
-NetworkManager
-smartmontools
-ppp
-rp-pppoe
-ecryptfs-utils
#-rhn-client-tools
#-rhn-check
#-yum-rhn-plugin
#-rhnsd
#-rhn-setup
-hesiod
-sendmail
-ifd-egate
-pcsc-lite
-gpm
-ipsec-tools
-libselinux-python
-ksh
-logwatch
-mailcap
-nano
-nc
-mtools
-syslinux
-mkbootdisk
-net-snmp-libs
-OpenIPMI
-redhat-menus
-htmlview
-pinfo
-mgetty
-specspo
-nscd
-nss_ldap
-nfs-utils-lib
-nfs-utils
-portmap
-ypbind
-yp-tools
-quota
-lsof
-irqbalance
-system-config-securitylevel-tui
-crash
-conman
-cryptsetup-luks
-dbus-python
-yum-updatesd
-dosfstools
-gnu-efi
-iptstate
-microcode_ctl
-mtr
-pam_smb
-parted
-pax
-pm-utils
-psacct
-pygobject2
-rdate
-rdist
-rhel-instnum
-rsh
-sos
-talk
-tcsh
-telnet
-exim
# ------------------------
# Tools.
# ------------------------
ntp
man
man-pages
lynx
wget
mailx
openssh-server
openssh-clients
bzip2
dhclient
lftp
vim-minimal

# ------------------------
# GCC tools.
# ------------------------
#gcc
#cpp
#glibc-devel
#libgomp
#glibc-headers
#kernel-headers
#gcc-c++
#libstdc++-devel

# Required packages.
acl
createrepo
vixie-cron
crontabs
dialog
patch
yum
which
kbd

-- 
Best regards.

- Open Source Mail Server Solution for RHEL/CentOS 5.x:
  http://code.google.com/p/iredmail/



More information about the CentOS mailing list