cloud-init support for KVM #1653
arpadszasz
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
User story
The so called cloud images (like the ones provided by Canonical for Ubuntu) expect a YAML metadata to be provided for provisioning basic features like creating users / adding SSH keys / etc and is achived using cloud-init.
The provisioning is useful to be able to use an out-of-the-box image vs. having to bake one yourself with specific user/password and SSH key to be able to use it as a Rex Box.
For KVM boxes this cloud-init metadata can be provided as a
cdrom
device using an ISO image, which can be generated like so:Describe the solution you would like
Have a
$box->cloud_init()
function which accepts a cloud-init user-data configuration in YAML format.Also provide a minimal cloud-init configuration example to set up user
rex
with passwordbox
and enable passwordlesssudo
for that user.The instance-data feature of cloud-init is to be ignored.
Additional context
My fork contains an implementation of the cloud-init functionality in the
feature/cloud-init-kvm
branch (relevant commit: arpadszasz@5017f5a)Beta Was this translation helpful? Give feedback.
All reactions