Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Network devices are not automatically enabled during installation unless the installation method requires network connectivity. As a consequence, a traceback error can occur during Kickstart installation due to inactive network devices. To work around this problem, set the ksdevice=link option on boot or add the --device=link option to the ks.cfg file to enable network devices with active links during Kickstart installation.
Problem:
anaconda doesn't initialize network when installing from kickstart on media
Reproducer:
Place a kickstart file (ks.cfg) on installation media.
Use following network settings:
network --bootproto=dhcp --activate
Add following to isolinux.cfg:
ks=hd:LABEL=<LABEL>:/ks.cfg
Result:
no network available
Expected :
network available
More details:
parse-anaconda-net.sh :
link)
warn "'ksdevice=link' does nothing (it's the default behavior)"
^^ this is obviously *not* a default.
Setting ksdevice=link activates network on boot.
The warning message is wrong.
By default anaconda does not activate any network device if it is not needed in initramfs.
Adding --device=link to kickstart network command, ie:
network --bootproto=dhcp --activate --device=link
should work.
We might be able to fix this bug by assuming ksdevice=link, but we need to be careful here and check that this assumption doesn't introduce regressions breaking some other scenarios. Also, we'll need to look for a device with link in dracut environment in parse-kickstart.
I posted a patch for review. New behaviour:
1) fixed --device=link option
2) if --device is missing
a) use ksdevice boot option if set
b) assume --device=link if ksdevice is not set
3) keep possibility to configure only hostname without configuring a device, ie for
network --hostname=blah
a) if ksdevice is present, configure the device with defaults
b) if not, just set the hostname, ie we don't assume --device=link in this case
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-2284.html
Problem: anaconda doesn't initialize network when installing from kickstart on media Reproducer: Place a kickstart file (ks.cfg) on installation media. Use following network settings: network --bootproto=dhcp --activate Add following to isolinux.cfg: ks=hd:LABEL=<LABEL>:/ks.cfg Result: no network available Expected : network available More details: parse-anaconda-net.sh : link) warn "'ksdevice=link' does nothing (it's the default behavior)" ^^ this is obviously *not* a default. Setting ksdevice=link activates network on boot.