See accompanying blog post at https://ebcrowder.dev/kvm-terraform/
Terraform infrastructure for spinning up virtual machines on linux servers using:
- KVM for Linux VMs.
- Terraform for automating the creation of VMs, the related virtual network and other resources.
- terraform-provider-libvirtd this plugin provides Terraform with the necessary functionality to create KVM infrastructure.
- CentOS will be used for each virtual machine.
The Terraform infrastructure code assumes that the VMs will be networked via a DHCP bridge network.