WRITELOOP

TERRAFORM ON ARCH LINUX

2021 April 20

IMPORTANT: Before moving on with terraform, to use it with kvm make sure to follow the steps described here for Arch Linux.

I use Terraform to provide KVM virtual machines. To do that, I must have terraform installed on my arch linux boxes. Here are the instructions:

$ paru -Syu terraform terraform-provider-libvirt
$ mkdir -p ~/.local/share/terraform/plugins/registry.terraform.io/dmacvicar/libvirt/0.6.3/linux_amd64
$ ln -s /usr/share/terraform/plugins/registry.terraform.io/dmacvicar/libvirt/0.6.3/linux_amd64/terraform-provider-libvirt ~/.local/share/terraform/plugins/registry.terraform.io/dmacvicar/libvirt/0.6.3/linux_amd64/terraform-provider-l
ibvirt

After finished, you must :

  • Install polkit:
$ paru install -Syu polkit polkit-gnome

I must reboot again, and then I can use my terraform kvm cookiecutter to ease generation of my VMs.