stackhpc / ansible-role-libvirt-vm

This role configures and creates VMs on a KVM hypervisor.
128 stars 67 forks source link

Install VM with virt-builder #60

Open raspbeguy opened 4 years ago

raspbeguy commented 4 years ago

Hello,

I open this issue because I wish to implement a way to install VMs with virt-builder (from libguestfs project).

I wish to list here everything we need to think about and the useful information.

Do you think this is a good idea?

markgoddard commented 4 years ago

Hi, I'm wondering if there is any overlap between this and what we already have in this role? If not, maybe it would make sense as a separate role?

markgoddard commented 4 years ago

i.e. would a virt-builder implementation just replace the entire role, or would it reuse any existing code?

raspbeguy commented 4 years ago

I think it would be another method of provisionning a VM.

If I understand correctly, there is currently only 2 ways to provision a VM volume: image and backing_image. We could add a third option builder.

markgoddard commented 4 years ago

I think it sounds like an alternative without too much overlap. I'd suggest making a separate role.

raspbeguy commented 4 years ago

Could you explain a bit? I don't think it will overlap that much.

markgoddard commented 4 years ago

What I mean is that I don't think there will be much overlap. This role is one way to make a VM, and virt-builder is another way. I think adding both options to one role would be confusing.

raspbeguy commented 4 years ago

OK, I see. Thanks for clarifying.