New Question

markoates's profile - activity

2016-01-11 08:14:44 +0300 received badge  Famous Question (source)
2015-12-29 14:54:43 +0300 received badge  Notable Question (source)
2015-12-29 14:54:43 +0300 received badge  Popular Question (source)
2015-12-23 20:10:23 +0300 commented question Windows 2012 Network Adapters not discovered

I'm continuing to investigate... my hypothesis of permissions seems off... if I set WMI perms or the service user it fails on first boot, but succeeds on subsequent runs. I think it might have to do with my template and the NIC not being discovered in device manager, so it's a timing issue...

2015-12-22 22:39:00 +0300 commented question Windows 2012 Network Adapters not discovered

P.S. - Sorry for the comment trail, but the post itself wouldn't let me do this all as one block, it kept timing out.

2015-12-22 22:38:30 +0300 commented question Windows 2012 Network Adapters not discovered

Please help me find a way of accomplishing this without needing to change who the service runs as... Thanks, Mark

2015-12-22 22:38:23 +0300 commented question Windows 2012 Network Adapters not discovered

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}

2015-12-22 22:38:15 +0300 commented question Windows 2012 Network Adapters not discovered

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 22:37:46 +0300 commented question Windows 2012 Network Adapters not discovered

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

2015-12-22 22:37:36 +0300 commented question Windows 2012 Network Adapters not discovered

Running the WMI query manually (as administrator): PS C:\Users\Administrator> $query = "SELECT * FROM Win32_NetworkAdapter WHERE AdapterTypeId = 0 AND MACAddress IS NOT NULL"

2015-12-22 22:36:23 +0300 answered a question Windows 2012 Network Adapters not discovered

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
2015-12-22 22:30:26 +0300 asked a question 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
2015-07-29 09:46:11 +0300 received badge  Famous Question (source)
2015-02-24 11:41:24 +0300 received badge  Notable Question (source)
2015-02-05 10:42:42 +0300 received badge  Popular Question (source)
2015-01-28 20:08:10 +0300 answered a question ConfigDrive - How to configure static networking?

With some hacking around, I was able to answer my own question.

Presently the networkconfig piece requires the following: - a "networkconfig" element in the JSON document - a "contentpath" key as a child of the "networkconfig" element that has a string to a file containing the debian formatted network configuration file - the aforementioned configuration file located at /openstack/content/<configuration file="" name="">

My example JSON: { "uuid": "fake-UUID", "hostname": "hostname", "networkconfig":{ "contentpath": "/content/0000/network_config" } }

Contents of the network_config file: iface eth0 inet static address 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255 gateway 10.0.0.1 dns-nameservers 8.8.8.8

Things of note: - the "0000" in the contentpath is ignored due to the split function in the code. I have submitted a pull request in github with a change that will correct this issue. - for the time being, I recommend placing the "networkconfig" file in the full path /openstack/content/0000/networkconfig and /openstack/content/networkconfig of your filesystem's data structure.

Mark

2015-01-27 00:22:52 +0300 received badge  Editor (source)
2015-01-27 00:21:59 +0300 asked a question ConfigDrive - How to configure static networking?

Using the ConfigDrive service, how do I go about statically configuring the NIC on my Windows instance?

I've tried creating a metadata.json file that points to /contents/0000 with a file called "networkconfig". However it doesn't seem to be picked up.

Let's assume the following details: iface eth0 inet static address 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255 gateway 10.0.0.1 dns-nameservers 8.8.8.8

How should I properly create the ConfigDrive's folder and file structure such that the Windows instance will be configured with the above details?

Please help me to understand the structure and the JSON contents...

/openstack/latest - meta_data.json

/openstack/content/0000 - network_config