Automated KS file For install new Centos 7

Issues related to configuring your network
ramin_malek
Posts: 13
Joined: 2014/10/23 07:28:42

Automated KS file For install new Centos 7

Post by ramin_malek » 2019/08/15 12:54:24

Hi dear Friend
I entry To ks file for centos 7 For Eth name From en160 to Eth0 and Set ip address

But no working
How Solve this ???



bootloader --location=mbr --append="crashkernel=auto console=ttyS0,115200n8 net.ifnames=0"

network --bootproto=static --hostname=Ramin.ks-centos7 --ip=192.168.10.2 --netmask=255.255.255.252 --gateway=192.168.10.1 --ipv6=V6address --ipv6gateway=V6-Gateway --nameserver=8.8.8.8,2001:4860:4860::8888 --device=eth0 --onboot=yes --activate

During Install Say to me wired Connect ens160 do noot change eth name to eth0


Note : this is Fresh centos7 install

User avatar
jlehtone
Posts: 2433
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Automated KS file For install new Centos 7

Post by jlehtone » 2019/08/15 14:21:04

1. What do you need the "eth-style" name for?

2. Don't you have DHCP server on your network?

3. https://access.redhat.com/documentation ... ice_naming

User avatar
TrevorH
Forum Moderator
Posts: 27164
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Automated KS file For install new Centos 7

Post by TrevorH » 2019/08/15 18:48:45

If you want the old style network names then you need to pass biosdevname=0 net.ifnames=0 to both the installer kernel and the installation itself once it's completed.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

ramin_malek
Posts: 13
Joined: 2014/10/23 07:28:42

Re: Automated KS file For install new Centos 7

Post by ramin_malek » 2019/08/16 08:37:45

This is Fresh install of centos 7 For RIPE Anchor

I can install OS by ssh key login

I donnot have access to shell centos for change eth name after install comlete
I must force eth name to eth0 in ks file during automated install
I donnot have auto ip configuration


I set static ip on eth0

ramin_malek
Posts: 13
Joined: 2014/10/23 07:28:42

Re: Automated KS file For install new Centos 7

Post by ramin_malek » 2019/08/16 08:38:57

TrevorH wrote:
2019/08/15 18:48:45
If you want the old style network names then you need to pass biosdevname=0 net.ifnames=0 to both the installer kernel and the installation itself once it's completed.
I test this
bootloader --location=mbr --append="crashkernel=auto console=ttyS0,115200n8 net.ifnames=0 biosdevname=0"


But Eth name still ens160 during install

User avatar
TrevorH
Forum Moderator
Posts: 27164
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Automated KS file For install new Centos 7

Post by TrevorH » 2019/08/16 10:22:49

Yes, you have to pass it to the installer kernel too.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

ramin_malek
Posts: 13
Joined: 2014/10/23 07:28:42

Re: Automated KS file For install new Centos 7

Post by ramin_malek » 2019/08/16 18:41:50

TrevorH wrote:
2019/08/16 10:22:49
Yes, you have to pass it to the installer kernel too.
Hi
I do this but after install or during install show me Wired connect ens160
I want force ETH name to eth0

User avatar
TrevorH
Forum Moderator
Posts: 27164
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Automated KS file For install new Centos 7

Post by TrevorH » 2019/08/16 19:26:25

Which you cannot do from a kickstart file. You must pass the options to the installer when it boots.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

ramin_malek
Posts: 13
Joined: 2014/10/23 07:28:42

Re: Automated KS file For install new Centos 7

Post by ramin_malek » 2019/08/17 07:19:14

I use boot: linux ks=http://192.168.10.1/ks.cfg

boot with ks file and centos can access and fetch ks file For http server

User avatar
TrevorH
Forum Moderator
Posts: 27164
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Automated KS file For install new Centos 7

Post by TrevorH » 2019/08/17 10:11:32

I use boot: linux ks=http://192.168.10.1/ks.cfg
And what you would need is "linux ks=http://192.168.10.1/ks.cfg net.ifnames=0 biosdevname=0"
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Networking Support”