[Solved] Kickstart Install - Network Disabled by Default

Issues related to configuring your network
Post Reply
Thegs
Posts: 5
Joined: 2017/07/25 14:14:11

[Solved] Kickstart Install - Network Disabled by Default

Post by Thegs » 2017/07/25 14:45:22

Hello, I'm having some trouble creating a kickstart configuration file. In the config file I have network set as:

Code: Select all

network --onboot=yes --device=link --bootproto=dhcp --noipv6
But when I boot the .iso I get:

Code: Select all

dracut-initqueue[554]: parse-kickstart WARNING: No device with link found for --device=link
So I checked a non-kickstarted installation .iso and the network is in the DOWN state by default there too. I tried adding `ifup --all` to the %pre section but that did not work. I cannot specify a network device in the kickstart config because this image will be deployed across a range of systems with different interface names so it needs to be as generic as possible. Is there a setting I can set in the kickstart config, or any other config file in the installation disk even, to have the installer automatically bring up the network? Thank you in advance.
Last edited by Thegs on 2017/07/25 16:22:21, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kickstart Install - Network Disabled by Default

Post by TrevorH » 2017/07/25 15:19:01

That says there is no device with a link. Are you sure it's all cabled up correctly?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Thegs
Posts: 5
Joined: 2017/07/25 14:14:11

Re: Kickstart Install - Network Disabled by Default

Post by Thegs » 2017/07/25 15:25:34

I'm currently testing it through a VM in VirtualBox. The network settings of the VM work when I load other Linux installers like Ubuntu's. I can also enable the network manually in the graphical CentOS installer, so the network should be working, it's just not turning any interfaces on at boot.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kickstart Install - Network Disabled by Default

Post by TrevorH » 2017/07/25 15:30:47

What ethernet card is selected for the VM in the vbox settings? Some that it emulates are not supported at all.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Thegs
Posts: 5
Joined: 2017/07/25 14:14:11

Re: Kickstart Install - Network Disabled by Default

Post by Thegs » 2017/07/25 15:34:06

It is currently set to Intel PRO/1000 MT Desktop (82540EM).

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kickstart Install - Network Disabled by Default

Post by TrevorH » 2017/07/25 15:49:15

That should be a supported card.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Thegs
Posts: 5
Joined: 2017/07/25 14:14:11

Re: Kickstart Install - Network Disabled by Default

Post by Thegs » 2017/07/25 15:54:40

Yeah, it's strange. I'll just mess with the %post section to see if it is something that I can do after install for the time being.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kickstart Install - Network Disabled by Default

Post by TrevorH » 2017/07/25 16:06:35

I just tried here and it works for me. I'm using a VM on vbox 5.1.18 with the same ethernet card as you. My kernel command line from the PXE menu looks like

Code: Select all

initrd=images/centos/x86_64/7.3/initrd.img ramdisk_size=200000 ip=dhcp repo=http://192.168.1.7/mirrors/CentOS-7-x86_64/  ks=http://192.168.1.7/mirrors/seven2.ks text
and my seven2.ks file includes "network --bootproto=dhcp --device=link --ipv6=auto --activate"

I did need to increase the RAM on the VM from 1024MB to 2048 or I got weird out of space errors downloading the kickstart file. A smaller value than 2048 might also work but I figured I just wanted it to work.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Thegs
Posts: 5
Joined: 2017/07/25 14:14:11

Re: Kickstart Install - Network Disabled by Default

Post by Thegs » 2017/07/25 16:21:51

I'm using a kickstart file kept within the .iso, but adding the ip=dhpc to the kernel boot options did fix it. Thank you for helping me out, I'll mark this as solved.

Post Reply