New Question
0

Windows Server 2016 Hostname and Password

asked 2021-04-01 14:00:08 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi,

I'm trying to get cloudbase-init to work with my Windows Server 2016 template. Set hostname does not work and when following procedures in similar questions and get issue with password. I have followed the below steps:

Create Template: https://blogs.vmware.com/management/2...

When I follow the above link the password works but not the hostname.

I have followed https://ask.cloudbase.it/question/103... and https://ask.cloudbase.it/question/331.... I have changed the unattended.xml as in https://pastebin.com/xLATygNd and removed cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin from cloudbase-init-unattend.conf but nothing of this works. When I do like this I don´t get a log for cloudbase-init-unattend.log.

Can you please advise?

/Martin

cloudbase-init.conf https://pastebin.com/jcXZ8kmg

cloudbase-init-unattend.conf https://pastebin.com/9KQepMU9

Unattend.xml https://pastebin.com/CD3kPxQ5

cloudbae-init.log https://pastebin.com/JBMejzjE

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2021-04-01 21:34:05 +0300

avladu gravatar image

Hello,

From the cloudbase-init logs shared, cloudbase-init does not find the config drive that should be attached and should contain the required metadata. Please make sure that the VM creator middleware attaches the proper metadata disk to the VM.

Thank you,
Adrian Vladu

edit flag offensive delete link more

Comments

Thank you Adrian, it was indeed the virtual CD-ROM that was disconnected. The metadata is now pushed to the config. However I decided to use PowerShell inside cloud-config to set the hostname as it fits my needs better. Cheers! /Martin

hoffmania gravatar imagehoffmania ( 2021-04-07 12:31:01 +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

Stats

Asked: 2021-04-01 14:00:08 +0300

Seen: 197 times

Last updated: Apr 01