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_Gui... # ------------------------------------------- # 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
Zhang Huangbin wrote:
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?
Maybe because the network configuration is EXPLICITLY DISABLED?
# Configures network information for the system. #network --bootproto=dhcp
[..]
# Network information #network --bootproto=dhcp --device=eth0 --onboot=on
Sample kickstart config for my systems:
http://portal.aphroland.org/~aphro/centos_5_1_32.cfg
nate
I can't configure network and hostname even there is only '%post' left. What' wrong with it?
Thanks very much. :)
From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Zhang Huangbin Sent: Saturday, September 27, 2008 10:04 PM To: centos@centos.org Subject: [CentOS] Re: Why i can't configure network and hostname with this kickstart file?
I can't configure network and hostname even there is only '%post' left. What' wrong with it?
Thanks very much. :) ---------------------------------------------------------------------- JohnStanley Writes:
In /etc/hosts put x.x.x.x name_of_host Where X = IP Address. This needs to go under the localhost setting in there!!!
Or from the command line "hostname your_host_name"
JohnStanley
One more place: sorry for the error...
File: /etc/sysconfig/network HOSTNAME=mail.iredmail.org
JohnStanley
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Zhang Huangbin Sent: Saturday, September 27, 2008 10:04 PM To: centos@centos.org Subject: [CentOS] Re: Why i can't configure network and hostname with this kickstart file?
I can't configure network and hostname even there is only '%post' left. What' wrong with it?
Thanks very much. :)
-- Best regards.
- Open Source Mail Server Solution for RHEL/CentOS 5.x: http://code.google.com/p/iredmail/
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
John wrote:
One more place: sorry for the error...
File: /etc/sysconfig/network HOSTNAME=mail.iredmail.org
Thanks John. :)
I know this, but i want to configure these two option during installation, not after installation completed. :(
Zhang Huangbin wrote on Sun, 28 Sep 2008 10:03:51 +0800:
I can't configure network and hostname even there is only '%post' left. What' wrong with it?
It might help in the future if you would try to phrase your questions in a way that they are not ambiguous and easy to understand. I figure you mean to be able to do a manual installation in the graphical frontend with this kickstart file and just the package selection should be skipped? I remember that when I skip the network command in the kickstart file I'm getting asked for network settings. I don't know why you are not getting asked. It might help to explicitely state the static bootproto without giving IP and hostname in the file.
Kai