New Question
0

Can I use cloud-init for azure windows VMs

asked 2018-09-06 12:06:02 +0200

sahebjade gravatar image

Can I use cloud-init for azure windows VMs, please can you help with this query

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2018-09-06 19:20:37 +0200

avladu gravatar image

Hello,

yes, you can use cloudbase-init for Azure Windows images.

You are required to enable the azure metadata service in the cloudbase-init configuration files:

[DEFAULT]
metadata_services=cloudbaseinit.metadata.services.azureservice.AzureService

Thanks,
Adrian

edit flag offensive delete link more
0

answered 2018-10-04 16:30:53 +0200

vgsandz gravatar image

Hi Adrian Is there a new installer supporting this module, could you please help me with the version of it or where i could download it.

I tried this and getting error

2018-10-01 08:59:22.908 2848 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.metadata.services.azureservice.AzureService' loadclass c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\classloader.py:27 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell [-] No module named 'cloudbaseinit.metadata.services.azureservice' 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell Traceback (most recent call last): 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\shell.py", line 41, in main 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell init.InitManager().configurehost() 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\init.py", line 184, in configurehost 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell service = metadatafactory.getmetadataservice() 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\metadata\factory.py", line 30, in getmetadataservice 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell service = cl.loadclass(classpath)() 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\classloader.py", line 29, in load_class 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell module = import(parts[0], fromlist=parts[1]) 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell ImportError: No module named 'cloudbaseinit.metadata.services.azureservice' 2018-10-01 08:59:23.018 2848 ERROR cloudbaseinit.shell 2018-10-01 08:59:23.198 2004 INFO cloudbaseinit.init [-] Process execution ended with exit code: 1

Thank you for your support. Venu

edit flag offensive delete link more

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: 2018-09-06 12:06:02 +0200

Seen: 64 times

Last updated: Oct 04