Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nlarenti opened this issue Apr 26, 2023 · 6 comments
Open
Assignees

Comments

@nlarenti
Copy link

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
@vrozenfe
Copy link
Collaborator

@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
Copy link

Hedius commented Jan 16, 2024

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

@vrozenfe
Copy link
Collaborator

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

@Hedius
Copy link

Hedius commented Jan 17, 2024

@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
Copy link

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

@vrozenfe
Copy link
Collaborator

@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 virtio-win/virtio-win-guest-tools-installer#57
and should work fine on the latest virtio-win releases.

Best,
Vadim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants