Libvirt is an API to KVM ( and LXC )
https://github.com/dmacvicar/terraform-provider-libvirt
Package:
https://software.opensuse.org/package/terraform-provider-libvirt?search_term=terraform-provider-libvirt