New Question
0

What should be on CDROM?

asked 2016-01-20 16:50:38 +0200

aburluka gravatar image

Hello! I would like to create CDROM with some personalization data for QEMU VM. I've installed windows and cloudbase init, service is running. If I understand it correctly, I should prepare ISO and and attach it as CDROM to VM. I try to add user-data and meta-data similar to cloud-init and this attempt failed. I want to execute arbitrary commands and add ssh keys. Could you please provide me examples of ISO contents?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2016-02-02 09:41:31 +0200

SV gravatar image

Hi Adrian,

I am also facing the same issue with cloudbase-init...i installed windows and cloudbase-init in it but when i try to put some data from cloud-init metadata.json and userdata file...the VM doesn't accept it and failed...

Would you mind to provide an example metadata.json file....also does it require this format under ISO "/openstack/latest/metadata.json" or just generate the simple iso with meta-data file and attach to vm ??

edit flag offensive delete link more

Comments

Hello, The format is a convention cloudbase-init or cloud-init requires. You can start from the example ISO I provided before. Thanks.

avladu gravatar imageavladu ( 2016-02-02 11:05:14 +0200 )edit
0

answered 2016-01-27 16:29:11 +0200

avladu gravatar image

Hello,

This is an example of an ISO with one user data script for PowerShell: https://github.com/ader1990/configs/b...

More info on the format of the user data scripts can be found here: http://cloudbase-init.readthedocs.org...

Let me know other scenarios that you would like to know about.

Adrian.

edit flag offensive delete link more

Comments

Thank you! Your example helped me a lot! But there is still a problem with multipart/mixed user data. I walked up through sources and currently it's not implemented. Can you please tell me how to combine cloud-config data with scripts execution?

aburluka gravatar imageaburluka ( 2016-02-08 17:59:26 +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

Stats

Asked: 2016-01-20 16:50:38 +0200

Seen: 833 times

Last updated: Feb 02 '16