-
Notifications
You must be signed in to change notification settings - Fork 67
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
configdrive2? How does this work? #37
Comments
Very good question and I don't see that either. Maybe @travisghansen can help, he implemented it. |
Create the cloud init settings/drive on your template vm, it will then carry over. The type can change on a vm by vm basis as necessary and settings will still work as defined in the template drive. |
You kind of missed my point. I shouldn't havent o use a VM template in order for cloudinit to work. In fact it can work without a template. This is how I manage many of my VMs now. I just don't have a way to automate their creation (hence Terraform and this provider). Can we refactor the code so that I can say, please use a clouddrive, here are the things to shove in it, attach it and create the vm. Yes? :) |
I suppose anything can be done, but the cloud-init support was intentionally limited to templates in this context. Can you spell out the use-case in a bit of detail to help me understand what you're doing? You're somehow using terraform with docker-manchine? EDIT: Looking at the code more closely, the comment above is incorrect. It's scope in the non-template scenario is to effectively use it as a means of sending the newly minted ssh key for the docker-machine into the VM in scenarios where username/password are not feasible or wanted. |
Good :D I wasn't going nuts then! This is totally doable without "VM Templates" :)
Ignore the So here's what I want:
I should not have to go and pre-configure some random VM template for this :) |
For example, uLInux are a bunch of VMs I spin up in Proxmox VE today, but unfortunately I have to build them by hand (unless I use a VM Template). But if I choose to swap out to say RancherOS then I have to go build another VM Template. We can avoid that step entirely with VMs and OSes that support CloudInit natively :) |
Can you send over the exact command you’re attempting to use along with specific iso etc for me to test when I get a moment? The code appears like it might be relatively easy to support this but not sure yet. |
Also, it's kinda hard to ignore the docker machine part since this project is...a docker machine driver. It sounds to me like you're just building pure VMs with terraform..am I missing something? Why is docker machine (and thus this driver) in the picture at all? Also note, the VM templates are not 'random' but meant to scale more sanely in various fashions vs manually building out machines. If you use VM templates you have potential space savings from using the same base VM, you have a much faster boot/install process (everything is already installed) and is just generally more robust than building essentially one-off VMs. I'm not exactly sure how these are auto-joining swarm but with rancher/k8s you click a few buttons and scale out the cluster as much as desired..no manual intervention at all. |
Sure I will provide an example. |
So I apolgoize, I was getting mixed up with a Terraform Provider and this project. I just had a look at the help output of this Docker Machine Driver:
And note that there are no options to pass in even the most basic CloudInit parameters. If we added at least the following:
And use those to create the CloudDrive and attach it to the VM I think this would be enough to be useful. |
Can you send an example of what you’re invoking now with the specific distro/iso etc? |
I'm basically using a modified script from the README:
But as this lacks any way to actually create the CloudDrive, this won't work. |
The above does create a cloud drive and adds the machine ssh key to it right? The iso may not have cloud-init installed however.. |
It was blank for me? 🤔 |
OK, I've prototyped this up but it appears rancheros simply ignores all the cloud-init values besides the ssh key anyhow. Got another distro you want me to try out instead of rancheros? |
Yes! uLinux respects the following:
😀 You can either download an ISO from the release page or build from source. |
@prologic I'm not sure this ulinux iso is prepped to do what needs to be done. I'm just booting manually at this point but a few things to note:
Generically docker-machine allows you to tell it a URL of an install script (
In the case of this project, Regarding the script, I would recommend you host it on your project site (ie: github) since you know the project best and can update as appropriate. |
This is simply not true. I do not have the guest agent on any of my VMs in Proxmox VE. It's unfortunately cloudinit wasn't working for you, it does for me :) I'll look at this more closely later when I have more time. |
@prologic Are any of your vms working with docker machine? I didn’t say proxmox generally requires the agent, but images using this integration do. It’s how the machine driver discovers the ip associated with the newly created vm. Without it this driver simply has no way to determine what IP can be used for connecting to the vm. |
Yes all of them using Yuen generic driver |
Ok, not sure that is but seems unrelated to this project. In any case, agent is required for this project to work. |
I set the following flags:
And I see the Clouddrive is created and attached to the VM. But most of the values are not filled in.
How do we fill these in when creating the Clouddrive2? I don't see where this is happenning in the code.
The text was updated successfully, but these errors were encountered: