Red Hat Bugzilla – 2026371 – [RHEL9][Hyper-V]The /usr/libexec/hypervkvpd/hv_set_ifconfig need update for RHEL9 since the ifdown/ifup was not supported on RHEL9
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.
Description of problem:
The /usr/libexec/hypervkvpd/hv_set_ifconfig need update for RHEL9 since the ifdown/ifup was not supported on RHEL9
Version-Release number of selected component (if applicable):
Host:
Hyper-V 2019
Guest:
RHEL-9.0.0-20211121.7
Kernel:
5.14.0-17.el9.x86_64
hypervkvpd:
hypervkvpd-0-0.37.20190303git.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Create an new VM
2. Login and check the /usr/libexec/hypervkvpd/hv_set_ifconfig
Actual results:
1. The ifdown/ifup command used in hv_set_ifconfig
/sbin/ifdown $interface 2>/dev/null
/sbin/ifup $interface 2>/dev/null
2. The ifdown/ifup command doesn't support on RHEL9:
[rhel@vm-197-195 ~]$ ifdown eth1
bash: ifdown: command not found...
^C
[rhel@vm-197-195 ~]$ ifup eth1
bash: ifup: command not found...
^C
[rhel@vm-197-195 ~]$ ^C
[rhel@vm-197-195 ~]$ /sbin/ifdown eth0
-bash: /sbin/ifdown: No such file or directory
[rhel@vm-197-195 ~]$ /sbin/ifup eth1
-bash: /sbin/ifup: No such file or directory
[rhel@vm-197-195 ~]$
3. This will cause IP inject from hyper-v host function not work
Expected results:
1. Should add new command supported by RHEL9
Additional information:
https://github.com/torvalds/linux/blob/master/tools/hv/hv_set_ifconfig.sh
Checked with hyperv-daemons-0-0.39.20190303git.el9
now the ifdown/ifup lines changed, and run the auto case of IPInjection:Passed
[root@bootp-73-199-94 ~]# cat /usr/libexec/hypervkvpd/hv_set_ifconfig
filename="${1##*/}"
nmcli connection load "/etc/sysconfig/network-scripts/${filename}"
nmcli connection up filename "/etc/sysconfig/network-scripts/${filename}"
[root@bootp-73-199-94 ~]# rpm -qa | grep hyperv
hyperv-tools-0-0.38.20190303git.el9.noarch
hyperv-daemons-license-0-0.39.20190303git.el9.noarch
hypervfcopyd-0-0.39.20190303git.el9.x86_64
hypervkvpd-0-0.39.20190303git.el9.x86_64
hypervvssd-0-0.39.20190303git.el9.x86_64
hyperv-daemons-0-0.39.20190303git.el9.x86_64
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 (new packages: hyperv-daemons), 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://access.redhat.com/errata/RHBA-2022:2459