-
Notifications
You must be signed in to change notification settings - Fork 162
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
Network config alternative #30
Comments
You generated an image with your custom cloud-init configuration. Can you use the default image and instead run |
Not really that time consuming @eayin2. resizing my qcow2 images from 8 (default) to 32GB takes more time than generating this iso via genisoimage. cloud-init uses user-data, network-config & metadata files which are needed in a readable format at boot time, in the vm. that's why the ISO. cloud-init is a widely adopted standard for configuring the virtual machines (from aws to my home-lab) and this is how it works. from kvm perspective you're attaching a "virtual" drive from which it boots and there is no such abstraction of running a script when you start the vm. alternatively you can edit the qcow2 images as explained here [ Edit ] https://github.com/giovtorres/kvm-install-vm/blob/master/kvm-install-vm#L454 and if you're referring to the runcmd part of cloud-init. but still, this script is still packaged in the iso, look into the deep-link above. |
Yep I just saw it :-) |
Hi,
First of all, thanks for your work, really nice assembled, (however i'm trying master on a debian host, as a non root user, with all permissions given to libvirt, some vars fail to get assigned properly; i'll open a separate issue for that).
So in the light of the above, i had to cut down to a working solution and also solve static networking.
Wrt networking:
i'm using centos-atomic which at this moment has cloud-init version 18.2 https://cloudinit.readthedocs.io/en/18.2/
I'm adding to the ISO cloud-init image the following yaml file named
network-config
which gets picked up. Be aware that in cloud-init NoCloud this should NOT be under YAML nodenetworking:
just the: version:1 config: .... works perfectly fine.
Again this is Cloud-Init dependent and works fine in my ATM latest centos atomic.
The text was updated successfully, but these errors were encountered: