New Question
0

'NetworkConfigPlugin' failed with error '(-2147217398, 'OLE error 0x8004100a'..

asked 2016-03-23 17:23:30 +0200

MarcelMertens gravatar image

updated 2016-03-23 17:31:36 +0200

Hello, i try to deploy Windows Server 2012 R2 with the lastest Cloudbase-Init. Hypervisor is VMware vSphere 6.0 Meta-data ist Provided via ConfigDrive, during sysprep phase i receive the following error:

cloudbase-init-unattend.log

2016-03-16 14:52:52.685 1896 DEBUG cloudbaseinit.utils.debiface [-] Found new interface: {'mac': 'FA:16:3E:59:E2:B0', 'netmask6': None, 'dnsnameservers': ['145.228.121.70'], 'name': 'eth0', 'broadcast': '10.6.228.127', 'gateway6': None, 'netmask': '255.255.255.192', 'address': '10.6.228.74', 'address6': None, 'gateway': '10.6.228.65'} _add_nic c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\debiface.py:103
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init [-] plugin 'NetworkConfigPlugin' failed with error '(-2147217398, 'OLE error 0x8004100a', None, None)'
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init [-] (-2147217398, 'OLE error 0x8004100a', None, None)
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init Traceback (most recent call last):
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init   File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\init.py", line 75, in _exec_plugin
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init     shared_data)
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init   File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\plugins\common\networkconfig.py", line 131, in execute
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init     network_adapters = osutils.get_network_adapters()
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init   File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py", line 474, in get_network_adapters
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init     q = conn.query(wql)
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init   File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\wmi.py", line 1030, in query
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init     return [ _wmi_object (obj, instance_of, fields) for obj in self._raw_query(wql) ]
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init   File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\wmi.py", line 1030, in <listcomp>
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init     return [ _wmi_object (obj, instance_of, fields) for obj in self._raw_query(wql) ]
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init   File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\win32com\client\dynamic.py", line 247, in __getitem__
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init     return self._get_good_object_(self._enum_.__getitem__(index))
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init   File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\win32com\client\util.py", line 37, in __getitem__
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init     return self.__GetIndex(index)
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init   File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\win32com\client\util.py", line 53, in __GetIndex
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init     result = self._oleobj_.Next(1)
2016-03-16 14:52:52.763 1896 ERROR cloudbaseinit.init pywintypes.com_error: (-2147217398, 'OLE error 0x8004100a', None, None)
2016-03-16 14 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2016-03-23 19:53:07 +0200

avladu gravatar image

Hello,

The unattend cloudbase-init phase during sysprep is targeted to prevent an extra reboot, due to the hostname change.

This happens possibly because the cloudbase-init-unattend.conf you have set the NetworkConfigPlugin to be run. If this is the case, you can remove NetworkConfigPlugin from the unattend phase and just leave it in the normal cloudbase-init service run(cloudbase-init.conf).

Let me know if you have another configuration. If that is the case, can you put in a pastebin your configuration files(cloudbase-init*.conf), so that we can better debug this issue?

Thanks.

edit flag offensive delete link more
0

answered 2016-03-24 08:27:12 +0200

MarcelMertens gravatar image

Hi,

let me tell what i try to archiv:

I'd like to deploy a Windows Server OS with installed Microsoft SCCM Client. The installation of the SCCM Client should be done via USERDATA Commands.

So i see two possiblities:

  1. (i currently try) Configure Network, download/install/configure SCCM Client during Sysprep. For downloading and configuring i need a network connection.

  2. Configure Network, download/install/configure SCCM Client during normal startup (Cloudbase-Init Service). Here i'm not 100% clear: The USERDATA Script will be executed every time the instance starts up? So i have to insert a precheck if the script was executed before?

edit flag offensive delete link more

Comments

You can use the 2nd method. The userdata script gets executed only once. If you need to have it executed more than once, you can use the exit codes for the userdata script. More information here: http://ask.cloudbase.it/question/530/does-localscriptsplugin-support-a-reboot-based-on-script-exit-code

avladu gravatar imageavladu ( 2016-03-24 13:45:56 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-03-23 17:23:30 +0200

Seen: 2,305 times

Last updated: Mar 24 '16