Citrix Xen VM's lose networking

10,688

Remove ghosted NICs

This can happen if you set your network configuration prior to installing the XenServer tools on the guest.

Open device manager on the server, and ensure you have "Show hidden devices enabled" (View menu->Show hidden devices).

If you see any additional network adapters listed, such as Realtek RTL8139 devices, remove them from device manager.

Then double-check your network adaptor is set to the correct IP address, and reboot. It should retain the IP settings you configure.

This problem occurs as the XenServer tools install a new paravirtualised network adaptor, using the same IP settings as the initially configured virtualised network adaptor (Usually a virtual Realtek NIC), without removing the settings from the old NIC. This causes an IP conflict, and the new NIC reverts to automatic configuration.

Further reading

Share:
10,688

Related videos on Youtube

Ash
Author by

Ash

Updated on September 18, 2022

Comments

  • Ash
    Ash over 1 year

    My client has a XenServer 6.0.2 installation with 2 Window Server 2008 R2 virtual machines.

    Whenever the virtual machines are rebooted they lose their IP settings (IP address, subnet, gateway). Each time after a reboot I need to login to each VM via XenCenter and re-apply the required static IP settings.

    This causes issues with connected iSCSI drives within each VM - drives need to be reconnected after each reboot.

    For example, a network adapter has the following settings pre-reboot:

    Description . . . . . . . . . . . : Citrix PV Ethernet Adapter #0
    Physical Address. . . . . . . . . : C6-FB-A2-4F-2C-F3
    IPv4 Address. . . . . . . . . . . : 10.101.0.101(Preferred) 
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 10.101.0.10
    DNS Servers . . . . . . . . . . . : 10.101.0.100
    NetBIOS over Tcpip. . . . . . . . : Enabled
    

    Post-reboot:

    Description . . . . . . . . . . . : Citrix PV Ethernet Adapter #0
    Physical Address. . . . . . . . . : C6-FB-A2-4F-2C-F3
    Autoconfiguration IPv4 Address. . : 169.254.153.174(Preferred) 
    Subnet Mask . . . . . . . . . . . : 255.255.0.0
    Default Gateway . . . . . . . . . : 
    DNS Servers . . . . . . . . . . . : 10.101.0.100
    NetBIOS over Tcpip. . . . . . . . : Enabled
    

    Under XenCenter --> Virtual Network Interfaces, each adapter is set to a static MAC address (i.e. "Use this MAC address").

    I have tried the following commands within one VM but this had no effect:

    netsh winsock reset catalog 
    netsh int ip reset 
    

    Can someone please help?