New Question

Hostname not set on Windows Server 2012 R2 | 2016

asked 2017-11-17 10:08:46 +0300

ged0 gravatar image

Hi guys,

I have problem with host name set on Windows Server 2012 R2 | 2016 on CloudStack system.

Here is log



edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2017-11-17 13:50:40 +0300

avladu gravatar image

updated 2017-11-17 14:19:50 +0300


As a first, please install Cloudbase-Init using the installer and then tweak the configuration files to match your requirements.

On the configuration you have, it is mandatory to set the following for the cloudbase-init.conf:

It is mandatory that you have in the cloudbase-init-unattend.conf:

Thank you,
Adrian Vladu

edit flag offensive delete link more


I will try and let you know

ged0 gravatar imageged0 ( 2017-11-21 14:45:23 +0300 )edit

@avladu, this didn't worked. After further studying logs I have noticed that there is no request to get hostname. For example: http://X.X.X.X/latest/meta-data/local-hostname Why not? How I can debug it?

ged0 gravatar imageged0 ( 2017-11-21 15:47:53 +0300 )edit

from the logs it says that: Plugin 'SetHostNamePlugin' execution already done. The hostname plugin has been executed at the first boot and cloudbase-init keeps record of the plugins that it needs to execute only once (like the hostname change). You can remove that state from the registry.

avladu gravatar imageavladu ( 2017-11-22 11:50:14 +0300 )edit

The registry path where cloudbase-init keeps the state is HKLM:\SOFTWARE\\Cloudbase Solutions\\Cloudbase-Init\\

avladu gravatar imageavladu ( 2017-11-22 11:52:10 +0300 )edit

@avladu Thank you for Registry info. My host name sets only when I delete all keys under HKLM:\SOFTWARE\\Cloudbase Solutions\\Cloudbase-Init\ branch. After restart new UUID branch don't create and if there is some old branch host name set plugin marks as executed...

ged0 gravatar imageged0 ( 2017-11-22 15:36:48 +0300 )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

1 follower


Asked: 2017-11-17 10:08:46 +0300

Seen: 1,062 times

Last updated: Nov 17 '17