-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cloud init custom user-data script not picked up #41
Comments
CauseThe reason it's not picked is because Feature requestCan you allow supplying a custom cloud-config? If no cloud-config has been supplied, then the default can be used. I think the cloud config should not be hardcoded. By default Example without sudo's
|
I agree, @eayin2 ... the hard-coding of cloud-config is a deal breaker for me ... discourages me from using this most useful effort. OTOH, one can just add the bits required in the hardcoded cloud-config and still run with it. |
If I recall correctly, a non hard coded version with an optional python dependency was made in the pull request #56 (comment) |
@eayin2, thanks for the update ... and yes, I agree with the maintainer on adding python as a dependency, that can throw up a whole pile of complications (with modules, python versions, and whatnot) ... If I was to try and address this, I would prefer that people create their ISO cloud-config files, and then supply it as a parameter ... yeah, not smooth, but easier to accommodate in the existing eco-system ... just an optional flag/param to avoid generating ISO and read it from a given path. |
Platform
Hypervisor OS: Ubuntu-18.04
Guest OS: Ubuntu-18.04
kvm-install-vm: latest github version
Goal
I want to add an additional user with a specified password and without NOPASSWD in sudoers. By default
kvm-install-vm
usesALL=(ALL) NOPASSWD:ALL
for additional users.Attempt
I tried to create a
user-data.sh
and runkvm-install-vm create -s "$HOME/user-data.sh" my-vm01
, but it seems to have no effect. I can't login withssh
, nor through tty withvirt-manager
's graphical interface.My guess is the config is not picked up. What might I be missing?
user-data.sh
.kivrc
The text was updated successfully, but these errors were encountered: