New Question
0

UserData loads but doesn't do anything.

asked 2021-10-14 17:39:40 +0300

simone-benati gravatar image

updated 2021-10-14 17:40:19 +0300

Hey,

I've been setting up a very basic cloudbase init to test. The config files seems to be working properly: https://pastebin.com/G9hZNep2 (config file) These are the logs: https://pastebin.com/E4YCnvCf

And this is the powershell script i'm trying to run via userdata.

'#ps1_sysnative

New-LocalUser -Name "wt75" -NoPassword -Description "Description of your new account."

As you can see from the logs there isn't any ERROR but the powershell script isn't being executed. I'm using openstack and copy pasting my script in the "Configuration" option, also known as Customization Script.

Could you please guide me into finding out what i'm doing wrong?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2021-10-15 00:00:49 +0300

avladu gravatar image

Hello,

Please use the Openstack metadata services, not the empty metadata service: https://cloudbase-init.readthedocs.io... .

The default installer configuration is perfect for the OpenStack usecase. The MSI installer prioritizes config drive openstack metadata service in the unattend specialize, and the http openstack metadata service in the cloudbase-init service run.

Thank you,
Adrian Vladu

edit flag offensive delete link more

Comments

Thank you very much. It worked!

simone-benati gravatar imagesimone-benati ( 2021-10-15 20:27:32 +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-10-14 17:39:40 +0300

Seen: 196 times

Last updated: Oct 15 '21