virtio-win-pkg-scripts icon indicating copy to clipboard operation
virtio-win-pkg-scripts copied to clipboard

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

Open nlarenti opened this issue 2 years ago • 6 comments

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:

  • Disto: Proxmox
  • Kernel Linux 6.2.9-1-pve

Guest:

  • Windows version
  • virtio-win version virtio-win-0.1.229.iso

nlarenti avatar Apr 26 '23 16:04 nlarenti

@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

vrozenfe avatar Apr 28 '23 10:04 vrozenfe

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

Hedius avatar Jan 16 '24 20:01 Hedius

@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.

vrozenfe avatar Jan 17 '24 01:01 vrozenfe

@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

Hedius avatar Jan 17 '24 19:01 Hedius

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

CHN-STUDENT avatar May 09 '24 11:05 CHN-STUDENT

@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.

vrozenfe avatar May 10 '24 00:05 vrozenfe