Windows 2012 Network Adapters not discovered
Hi,
I'm having an issue on W2K12 where the cloudinit service won't discover networks on the W2K12 server when using the service's configured user via the default installation method..
2015-12-22 02:15:54.314 3068 DEBUG cloudbaseinit.utils.debiface [-] Found new interface: {'name': 'eth0', 'dnsnameservers': ['10.0.0.2'], 'netmask': '255.255.255.0', 'netmask6': None, 'mac': None, 'broadcast': None, 'gateway': '10.0.0.1', 'address': '10.0.0.247', 'gateway6': None, 'address6': None} _add_nic c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\debiface.py:103
2015-12-22 02:15:54.376 3068 ERROR cloudbaseinit.init [-] plugin 'NetworkConfigPlugin' failed with error 'no network adapters available'
2015-12-22 02:15:54.376 3068 ERROR cloudbaseinit.init [-] no network adapters available
Running the WMI query manually (as administrator): PS C:\Users\Administrator> $query = "SELECT * FROM Win32_NetworkAdapter WHERE AdapterTypeId = 0 AND MACAddress IS NOT NULL"
PS C:\Users\Administrator> Get-WmiObject -Query $query ServiceName : E1G60 MACAddress : 00:00:56:A1:57:20 AdapterType : Ethernet 802.3 DeviceID : 13 Name : Intel(R) PRO/1000 MT Network Connection NetworkAddresses : Speed : 1000000000
Leading me to believe the service can't enumerate the NIC. I modified the service to run as `local system` instead of `.\cloudinit`, cleared the registry of the prevent it from re-running values, and re-started the service. This time it worked...
2015-12-22 05:55:47.287 3340 DEBUG cloudbaseinit.utils.debiface [-] Found new interface: {'mac': None, 'gateway': '10.0.0.1', 'netmask6': None, 'netmask': '255.255.255.0', 'address': '10.0.0.247', 'name': 'eth0', 'address6': None, 'dnsnameservers': ['10.0.0.2'], 'broadcast': None, 'gateway6': None}
Please help me find a way of accomplishing this without needing to change who the service runs as... Thanks, Mark