Network interface disappears from VMware virtual machine


I recently had an issue where an interface on a VM disappeared from the VM configuration seemingly without warning. Checking the events showed that there had been no changes to the VM configuration by any other administrators. In the vmware.log for the VM I found the following lines:

Nov xx 11:02:18.831: vcpu-1| Ethernet0 MAC Address: 00:50:56:xx:xx:xx
Nov xx 11:02:19.395: vmx| Powering off Ethernet0
Nov xx 11:02:19.396: vmx| Hot removal done.

This indicated that the interface had been hotplug removed. vSphere now supports more hotpluggable devices. While this makes it easier to add devices while the VM is running it also means that the devices can be removed. This means they show up in windows’ “Safely Remove Hardware” dialogue in the system tray:

Safely Remove Hardware Screen

So one mis-double click on the system tray icon causes the interface to be ejected from windows and removed from the VM configuration.

There is two ways to fix this:

Disable hotplug for the whole VM

Edit the registry on the VM to disable being able to eject the interface in windows

The former will of course stop you adding or removing any other hardware, not just the interface, while the VM is still running. This is probably the best option for VMware View VMs.

The latter will require a bit of hacking and isn’t really desired either.

Both methods are discussed in the VMware links below:

VMware blog: NIC is missing in my machine

Virtual machines in the VMware View environment lose network connectivity

Disabling the HotPlug capability in ESX 4.x virtual machines

Advertisements
Tagged , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: