Skip to content
Discussion options

You must be logged in to vote

what is the most convenient way to test cloud-init files? ... I wish i could use the convenience of disposable docker instances and being already logged in the machine before execution so i can inspect it more easily. (something like cloud-init init --local --file user.yml but without all the errors one can expect such as missing network)

i'd like to avoid having to deal with meta-data/vendor files, temporary webservers, local dns hacks, qemu, etc. Is this possible?

I would use LXD. This allows using different distros, running an lxc container locally, login during early boot, and no need to run any commands manually. Just pass the user-data, vendor-data, and meta-data as arguments on l…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gcb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants