Hide Forgot
Created attachment 1217328 [details] disable-nic Description of problem: During anaconda interactive installation RHVH via pxe, all the nics will be enabled by default. We only keep one nic enable status and disable all the remaining nics. Try to finish the installation with correct steps. Login RHVH, check NICs status. The disabled nic should not be up and can not show the ip address anymore. Version-Release number of selected component (if applicable): redhat-virtualization-host-4.0-20161027.1 imgbased-0.8.6-0.1.el7ev.noarch How reproducible: 100% Steps to Reproduce: 1. Anaconda interactive installation RHVHvia pxe. 2. Only keep one nic enable status and disable all the remaining nics. 3. Try to finish the installation with correct steps. 4. Login RHVH, check nic status Actual results: The disabled nic is still up and can get ip address Expected results: The disabled nic should not be up and can not show the ip address anymore. Additional info:
Created attachment 1217329 [details] /var/log; /tmp; sosreport
Both ens3 and ens4 devices were activated in initramfs stage because no particular device was specified via installer boot options (eg by ip=ens3:dhcp [1]) and in this case dracut tries to activate all devices with dhcp. All devices activated in initramfs stage have ONBOOT=yes (activate automatically on boot) set unless overridden by kickstart configuration or changed in GUI. What you are hitting is that just switching the device OFF on GUI doesn't change its ONBOOT property, it needs to be configured in GUI similarly as described in https://bugzilla.redhat.com/show_bug.cgi?id=1394565#c3, ie "Configure" -> "General" tab -> uncheck "Automatically connect..." So to have ONBOOT=no configured for ens4 on installed system you'd need either: - not activate ens4 in initramfs/dracut which would be achieved by specifying only ens3 to be activated (eg ip=ens3:dhcp) [1] - or override ens4 configuration in kickstart with onboot=no, eg network --device=ens4 --onboot=no (--bootproto=dhcp is default) - or change the ens4 ONBOOT value in GUI as hinted above. [1] specifying the device to be activated in initramfs via BOOTIF added by pxelinux to boot options would work too. You'd need to add ipappend 2 to your pxelinux config so it supplies the BOOTIF value. Dracut should activate only the PXE booting device then (regardless of ksdevice=bootif value being among boot options or not, it is deprecated and no more required in 7.3 IIRC)