Guest Windows VM lost static IP after ugrade VirtIO drivers

prxmxEDS

Member
Apr 21, 2023
4
0
6
Hi,
we have upgraded a Windows Server 2022 VM with the latest version of VirtIO win drivers (virtio-win-0.1.271.iso).
After reboot, the VM has changed its IP address (previously set as static IP), getting the new value from our DHCP.

Is it possible (and how), upgrading the VirtIO drivers, and maintain the same initial fixed IP address of VM ?

Thank you for yout help
 
I have now also carried out the update here on my Server 2022. I can confirm that I have received a new network interface. However, the MAC and IP remain the same. The server generally obtains its IP via DHCP (fixed via MAC).
 
If you know in advance that this problem will occur, simply switch all interfaces to DHCP. After the update and reboot, after you can set a fixed IP again.
However, if a fixed IP is still configured in the background, a winsock reset may also help:

Code:
netsh winsock reset

Then reboot the Windows VM.

If this does not help either, the IP address, including all referenced interfaces, must be manually deleted from the Windows registry.