New Question

Simple example for user-data / meta-data

asked 2016-08-05 16:59:34 +0300

Fabian gravatar image

Hi guys, i am used to working with linux. Creating a simple iso like so:

vi user-data 
vi meta-data
genisoimage -output ws2012-ds.iso -volid cidata -joliet -rock user-data meta-data

After this i am able to boot the virtual machine and everything seems to work.

Now i tried following various tutorials doing the same for windows, but it seems that the file user-data with ps1_sysnative on the first line is not getting executed. I read a bit about, but this is not my setup.

Just a simple kvm which i want to setup with my password and install some apps.



Write-Output "Changing Administrator password"
#change admin password
net user Administrator $AdminPassword
Write-Output "Changed Administrator password"

Write-Output "Changing Computer Name"
Rename-Computer -NewName $computerName
Write-Output "Changed Computer Name"

Write-Output "Installing Puppet 3.8.7"
msiexec.exe /qn /forcerestart /i c:\temp\puppet-3.8.7-x64.msi
Write-Output "Installed Puppet  3.8.7"

A simple "getting started"-section would be a great addition to your documentation.


edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2022-04-21 20:52:01 +0300

mareza gravatar image


Could you please share the cloudbase-init configuration file?

edit flag offensive delete link more

answered 2016-11-11 22:11:33 +0300

Claudiu Belu gravatar image

updated 2016-11-11 22:12:41 +0300


In order to quickly create an ISO on Windows, mkisofs is good enough, it is currently being used by the nova Hyper-V Driver when creating configdrives for the newly created instances.

As far as the userdata scripts go, on Windows guests, you will need to have cloudbase-init (which is the cloud-init of the Windows world). The current heat templates use #ps1_sysnative on the first line, and they work fine. If you encountered an issue with this, can you provide a little more information regarding your environment? (what OpenStack release, what hypervisors, what templates, what version of cloudbase-init are you using, etc.)


Best regards,

Claudiu Belu

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-08-05 16:59:34 +0300

Seen: 4,153 times

Last updated: Apr 21 '22