Comments (4)
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)
from kvm-install-vm.
Cause
The reason it's not picked is because -s user-data.sh
allows to execute a shell script and not add cloud-config settings, as seen by the Content-Type: text/x-shellscript; charset="us-ascii"
boundary.
Feature request
Can 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 kvm-install-vm
uses NOPASSWD
for sudo users. I prefer to provide a hashed password to cloud-init like so:
Example without sudo's NOPASSWD
users:
- default
- name: ${ADDITIONAL_USER}
groups: ['${SUDOGROUP}']
shell: /bin/bash
sudo: ALL=(ALL) ALL
ssh-authorized-keys:
- ${KEY}
chpasswd:
list: |
root:\$6\$some-hash
myuser:\$6\$some-hash
expire: false
- The hash password can be stored encrypted with
openssl
and decrypted interactively before runningkvm-install-vm
.
Note
Because the hashes are within a heredoc
format $
-sign has to be escaped by a backslash and not single quotes.
from kvm-install-vm.
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.
from kvm-install-vm.
@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.
from kvm-install-vm.
Related Issues (20)
- Share a directory from host machine to vm HOT 2
- No need to remove cloud-init HOT 4
- No static network options? HOT 5
- License? HOT 4
- possible CoreOS? HOT 3
- ubuntu1804 cannot boot HOT 8
- cloud-init user-data example
- Amazon Linux 2 doesn't boot if disk resized HOT 1
- Network config alternative HOT 3
- How to get root on created instance HOT 1
- "kvm-install-vm delete" doesn't work if the VM has snapshots
- Add support to custom list of distros HOT 2
- Debian 10 cloud-init not properly intializing HOT 20
- missing function detach-disk
- Unused var SOURCE in attach-disk
- Could not create domain with virt-install HOT 2
- Adding Rocky Linux HOT 4
- How to add Bridge1 Network Adaptor to Existing VM
- start created vm upon reboot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kvm-install-vm.