stackhpc / ansible-role-libvirt-vm

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

howto pass "extra-args" to a VM #54

Closed harenber closed 4 years ago

harenber commented 4 years ago

Sorry for opening an "issue", it's more a question (I searched for quite a while but couldn't figure it out):

is there any way to create a VM with this role and pass "extra-args" for kickstart to it? Like you do a

virt-install -x "ks=URL ksdevice=eth0 ip=IP netmask=IP dns=IP gateway=IP"

Thanks for any answer!

Torsten

jovial commented 4 years ago

I don't think this is possible at the moment as the role would have to support something like direct kernel boot. Can you use a generic cloud image instead? Here are some generic cloud images:

harenber commented 4 years ago

Thanks for the quick reply!!! Yes, I do nothing fancy with Kickstart, so definetely cloud images would work for me as well.