When you are not running a VMWare session, you may want to disable the VMware virtual network adapters. I have found that they can slow down network operations on the host. Anything doing a UDP broadcast that is sentg over all adapters will take much longer to run if they broadcast over the VMWare adapters. The ListAvailableSQLServers function call in the SQLDMO library is one example that I came across that slowed down dramaticly with the VMWare adapters running.
You have at least three ways of enabling and disabling the network adapters. You can open up the Device Manager (click the “Start” button, select “Run…”, enter devmgmt.msc), select the “VMware Network Adapter VMnet1” and “VMware Network Adapter VMnet8” adapters and press the disable button in the tool bar. The second option is to right click on “My Network Places” in the Start menu and select “properties”. You can then right click on the “VMware Network Adapter VMnet1” and “VMware Network Adapter VMnet8” adapters and enable or disable them. The third method is via the command line, so that you can script it.
Microsoft, in it’s infinite wisdom, does not provide a command line means of enabling or disabling network adapters out of the box. For that, you’ll need DevCon.exe, the command line alternative to Device Manager. You can get from Microsoft as Knowledge Base article Q311272. With devcon, you can disable/enable a netwoirk adapter by it’s hardware id. You can get the id from Device Manager, or by running devcon.exe like this:
devcon hwids =net
That will spit out a great deal of information, the ID’s that you are looking for are *VMnetAdapter1 and *VMnetAdapter8. You can disable them individually or do both with a wildcard
devcon disable *VMnetAdapter1
devcon disable *VMnetAdapter8
devcon disable VMnetAdapter
The former probably executes faster, the latter is simpler. I run with the adapters disabled and I only enable them whem I am running a VMWare session.
If you are running Windows 7, you should head to Windows Driver Kit (WDK) Version 7.1.0 Release N, which includes a version of devcon that will install under Win7 64bit. If you have an older release of the WDK, you can extract the devcon.exe out manually. A commenter left a link to a post that included the following instructions:
- Download the “Windows Driver Kit (WDK) 7.1.0 from MS, it is an ISO image of several hundreds meg in size.
- Using UniversalExtractor (http://legroom.net/software/uniextract) extract the ISO to a temporary folder.
- Again using UniversalExtractor, extract the install file “WDK\setuptools_x64fre.msi” to a temporary dir
- In that temporary dir you will find “WinDDK\7600.16385.win7_wdk.100208-1538\tools\devcon\amd64\devcon.exe”. It may be in a different folder hierarchy, but it should look like.
Along the way UniversalExtractor will prompt you with some warnings, just click OK. With Windows Vista and Windows 7, it will need elevated administrator rights to run.