New Question

cloudbaseinit and Windows 10

asked 2017-06-13 21:30:57 +0300

Julen gravatar image

updated 2017-06-14 10:55:21 +0300

I have successfully used the cloudbaseinit image to generate cloud images of Windows Server 2012 and 2016. As in theory it should also work with Windows 7 and 10, I tried the exact same procedure I followed with the Server versions, but it does not work.

I have tried the stable and the beta versions. I have tried setting Admin and Administrator users (Administrator gets disabled after reboot), and after plenty of attempts I always get the same result: A VM which reboots and prompts for the "Admin" password, instead of the "Set new password" thing.

I can log in with the old Admin password, so it seems that the password is not getting overwritten.

Are the stable and beta versions supposed to work on windows 10? Am I the only one getting this error?

Update:Apparently I am not the only one with this problem. But it was asked more than on year ago, and nobody replied:

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2017-06-14 14:46:24 +0300

avladu gravatar image


The Windows client versions have, for security reasons, the Administrator account disabled by default, therefore cloudbase-init and imaging tools do not change the default behavior because that means less secure systems. You can find here a more complete security assessment on what are the implications:

Nonetheless, if you prefer to manage Windows client VMs as you manage Windows Server VMs, you can enable the Administrator account by putting in a powershell LocalScript or userdata:

net user Administrator /active:yes

More on this here:

On Windows 10, due to a known Windows bug. please make sure you address the hostname set issue presented here:

I do not understand this line: "I can log in with the old Admin password, so it seems that the password is not getting overwritten." Can you give more information on this? As there should not be any Admin user created before the first cloudbase-init run, thus no "old" password. Any cloudbase-init logs and cloudbase-init configurations can be very useful to debug/understand your issue.

Thank you, Adrian Vladu

edit flag offensive delete link more


During the installation I created a user called `Admin` (not `Administrator`). I can log in with `Admin` and the password I set while installing Windows. But I'll try your suggestion, and let you know how it went.

Julen gravatar imageJulen ( 2017-06-14 14:54:50 +0300 )edit

You can also use an updated version of Windows image tools to create the images:

avladu gravatar imageavladu ( 2017-06-14 15:28:05 +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-06-13 21:30:57 +0300

Seen: 1,436 times

Last updated: Jun 14 '17