New Question
0

Hostname not set on Windows Server 2012 R2 | 2016

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

ged0 gravatar image

Hi guys,

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

Here is log https://pastebin.com/yvVLKBcj

Cloudbase-init-unatended https://pastebin.com/wcfVqCC4

Cloudbase-init https://pastebin.com/NsmLUhGn

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

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

avladu gravatar image

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

Hello,

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:
allow_reboot=true
stop_service_on_exit=true

It is mandatory that you have in the cloudbase-init-unattend.conf:
allow_reboot=false
stop_service_on_exit=false

Thank you,
Adrian Vladu

edit flag offensive delete link more

Comments

I will try and let you know

ged0 gravatar imageged0 ( 2017-11-21 14:45:23 +0200 )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 +0200 )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 +0200 )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 +0200 )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 +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

1 follower

Stats

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

Seen: 1,084 times

Last updated: Nov 17 '17