Changing to "old" interface naming during pxeboot/kickstart

Issues related to configuring your network
Post Reply
supertight
Posts: 171
Joined: 2017/02/07 21:47:51

Changing to "old" interface naming during pxeboot/kickstart

Post by supertight » 2017/06/30 04:32:58

I know this is probably a dumb question. But for some reason, I'm just not seeing it.
I've been searching for it, an I have found some stuff.
I know I need to add "net.ifnames=0" and "biosdevname=0" somewhere. But where?

I want the machines to pxe/kickstart/install with the interface as "eth0" not "enp0s25"

What am I missing?

Thanks for reading. :mrgreen:

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

Re: Changing to "old" interface naming during pxeboot/kickstart

Post by TrevorH » 2017/06/30 07:09:49

On the kernel command line. It's a FAQ - http://wiki.centos.org/FAQ
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

User avatar
KernelOops
Posts: 428
Joined: 2013/12/18 15:04:03
Location: xfs file system

Re: Changing to "old" interface naming during pxeboot/kickstart

Post by KernelOops » 2017/07/02 21:34:50

In CentOS 7, you need to modify this file: /etc/default/grub

Then edit the line:

Code: Select all

GRUB_CMDLINE_LINUX="crashkernel=auto rhgb console=ttyS0,19200n8 net.ifnames=0"
--
R.I.P. CentOS :cry:
--

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

Re: Changing to "old" interface naming during pxeboot/kickstart

Post by jlehtone » 2017/07/03 07:46:22

KernelOops wrote:In CentOS 7, ...
The question is about PXE boot, not about ordinary CentOS.

PXE boot receives from DHCP info about a TFTP server that has syslinux and kernel(s).
The syslinux has a menu (similar to GRUB). If one sets up default TFTP&syslinux on CenOS
server, then menu is usually in file /var/lib/tftpboot/pxelinux.cfg/default
Commad line options, like the kickstart, are stored in that file.

PS. The syslinux above is for legacy BIOS PXE. UEFI PXE has slightly different details.
supertight wrote:I know I need to add "net.ifnames=0" and "biosdevname=0" somewhere. But where?
You have set up the PXE and kickstart, have you not? Then you know where your TFTP share is.

Post Reply