virtio-win / virtio-win-pkg-scripts

Scripts for packaging virtio-win drivers
GNU General Public License v2.0
1.88k stars 151 forks source link

Windows VM loses static IP address after upgrading virtio-win drivers #77

Open nlarenti opened 1 year ago

nlarenti commented 1 year ago

Describe the bug Windows VM loses static IP address after upgrading virtio-win drivers.

To Reproduce Upgrading virtio-win drivers tried on Windows Server 2016/2019/2022

Expected behavior Configuration of network adapter is not lost

Screenshots

Host:

Guest:

vrozenfe commented 1 year ago

@nlarenti

Thank you for reporting the issue. https://bugzilla.redhat.com/show_bug.cgi?id=1898985 We have a couple of similar bugs describing the same problem. While we are looking for a proper solution to fix this issue. Meanwhile, there are at least two workarounds that you might find useful: https://bugzilla.redhat.com/show_bug.cgi?id=1898985#c8 https://bugzilla.redhat.com/show_bug.cgi?id=1898985#c19

Hedius commented 5 months ago

Would it please be possible to share the workaround, since the bugzilla bug is limited to a group?

vrozenfe commented 5 months ago

@Hedius

You need to run "netsh dump > filename.txt" command from the elevated cmd prompt before un-install and restore the settings with " netsh -f filename.txt" command after installing the new virtio-win package.

I also need to mention that recently we added a new custom action to virtio-win installer which designed to save and restore netkvm network settings automatically https://github.com/virtio-win/virtio-win-guest-tools-installer/commit/ea0643ffb87c9cd8cf85dce02ea0cc22f64b549f

Best, Vadim.

Hedius commented 5 months ago

@Hedius

You need to run "netsh dump > filename.txt" command from the elevated cmd prompt before un-install and restore the settings with " netsh -f filename.txt" command after installing the new virtio-win package.

I also need to mention that recently we added a new custom action to virtio-win installer which designed to save and restore netkvm network settings automatically virtio-win/virtio-win-guest-tools-installer@ea0643f

Best, Vadim.

Thank you for the info!

Florian

CHN-STUDENT commented 1 month ago

I have same issue, when i open a c# program in server2016 vm, we lose all network connect.

vrozenfe commented 1 month ago

@CHN-STUDENT Not sure that your issue somehow related to this case.

This particular case is about loosing network interface settings while updating virtio-win package. The problem has been solved with https://github.com/virtio-win/virtio-win-guest-tools-installer/pull/57 and should work fine on the latest virtio-win releases.

Best, Vadim.