View Issue Details

IDProjectCategoryView StatusLast Update
0007319CentOS-7dracutpublic2014-07-09 08:51
Reporterroeschu 
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version7.0-1406 
Target VersionFixed in Version 
Summary0007319: Kickstart "network" Option does not set network values
DescriptionHi

Using...

network --noipv6 --onboot=yes --bootproto=static --ip=10.0.22.93 --netmask=255.255.255.0 --gateway=10.0.22.1 --nameserver=10.0.22.10 --hostname=testsrv'1 --activate

...in Kickstart file doesnt set the values on the installation. After the Kickstart Installation is finished the Network config is still on dhcp:

[root@testsrv network-scripts]# vi /etc/sysconfig/network-scripts/ifcfg-ens160
# Generated by dracut initrd
DEVICE="ens160"
ONBOOT=yes
NETBOOT=yes
UUID="5f9b4297-c97b-462e-8914-21d3a3fc79c9"
IPV6INIT=yes
BOOTPROTO=dhcp
HWADDR="00:50:56:ba:6e:25"
TYPE=Ethernet
NAME="ens160"

Regards
Additional InformationKickstart Installation Server is on Centos 6.5. The KS File is working with Centos 6.x Installations
TagsNo tags attached.
abrt_hash
URL

Activities

roeschu

roeschu

2014-07-08 14:53

reporter  

ks.txt (1,148 bytes)
install

#IMAGEURL
url --url http://xxx01.xx.xxx.xx/centos/7/os/x86_64

################
#LOKALISIERUNG
################
keyboard --vckeymap=sg --xlayouts='ch'
timezone Europe/Zurich --isUtc
lang de_CH.UTF-8


#############################################
network --noipv6 --onboot=yes --bootproto=static --ip=10.0.22.93 --netmask=255.255.255.0 --gateway=10.0.22.1 --nameserver=10.0.22.10  --hostname=testsrv1 --activate



###########################################
rootpw --iscrypted $6$x0g/BcWqxk8N.VHe$dLt6loRYPaEeUVA.HgD2v3wraCPCjIQbMky.GajoQ1SSUKc9EDZMeYA1TJWNnKhwJ8SDCHi0GJ32tj12wNuzX0


####################################
firewall --disabled
selinux --disabled


####################################
#BOOTLOADER OPTIONS
bootloader --location=mbr --driveorder=sda --append="crashkernel=auth rhgb"
####################################


################################
# Disk Partitioning, automatisch ganze Disk
zerombr
clearpart --all --initlabel --drives=sda
autopart



%packages
@core
@base
nfs-utils
%end

reboot

%post

PATH=/bin:/sbin:/usr/sbin:/usr/sbin
export PATH


%end
ks.txt (1,148 bytes)
tigalch

tigalch

2014-07-08 17:32

manager   ~0020232

I'm probably wrong, but isn't there a 'device' entry missing? Could that be the issue for anaconda to not write the network configuration?
roeschu

roeschu

2014-07-08 18:14

reporter   ~0020235

Mmmh, there is indeed a "--device" switch. From the RH7 Documentation:


***
If the --device= option is missing on the first use of the network command, the value of the ksdevice= installer boot option is used, if available. Note that this is considered deprecated behavior; in most cases, you should always specify a --device= for every network command.

The behavior of any subsequent network command in the same Kickstart file is unspecified if its --device= option is missing. Make sure you specify this option for any network command beyond the first.
****

So far under Centos 6 it worked without --device switch. I will try tomorrow with the --device switch and drop a note if this was the source of the problem.
avij

avij

2014-07-08 18:50

updater   ~0020236

If you don't want to specify the exact network interface name (for flexibility), you can use --device=link instead. That will select the first network interface which is in a connected state.
roeschu

roeschu

2014-07-09 08:47

reporter   ~0020274

Ok, i've tested it with --device=link and it works. Thanks

So while it's not necessary to use --device switch under centos6 it's necessary under centos7 in order to get Kickstart configuring the networking interface.

So i think this can be closed..
avij

avij

2014-07-09 08:51

updater   ~0020275

Yes, there have been quite a few changes between 6 and 7, so some configurations that worked on 6 may need to be adjusted to work on 7 as well.

Issue History

Date Modified Username Field Change
2014-07-08 14:53 roeschu New Issue
2014-07-08 14:53 roeschu File Added: ks.txt
2014-07-08 17:32 tigalch Note Added: 0020232
2014-07-08 18:14 roeschu Note Added: 0020235
2014-07-08 18:50 avij Note Added: 0020236
2014-07-09 08:47 roeschu Note Added: 0020274
2014-07-09 08:51 avij Note Added: 0020275
2014-07-09 08:51 avij Status new => closed
2014-07-09 08:51 avij Resolution open => no change required