Does a kind soul have a pointer for me to a more detailed documentation
of the virt module or of handling libvirt VMs in general?
I can define a VM, I should be able to start/stop it. What I didn't
figure out yet is how to install the initial OS on the VM (from a
playbook, of course).
You can run a kickstart or preseed installation, import disk-images or do various other things… For example see (an old version) of my provisioning config:
You can run a kickstart or preseed installation, import disk-images or
do various other things... For example see (an old version) of my
provisioning config:
thanks for your answers.
So it's not possible using only the provided modules, you have to invoke
shell commands as well.
You both use a module "qemu-img" which doesn't seem to be provided with
ansible by default!?
thanks for your answers.
So it's not possible using only the provided modules, you have to invoke
shell commands as well.
Well, it should be possible, with the virt module, run a install XML and then run the post install XML, then you would only use the template and the virt module, however since the virt-install module does this much better and I haven't figured a way how to write an acceptable and nice virt-install ansible module, I use a shell script
You both use a module "qemu-img" which doesn't seem to be provided with
ansible by default!?