Terraform Provider Libvirt

dmacvicar’s libvirt provider is already in the official registry. Yet, I indend to contribute functionalities, which I would like to use in my homelab. This post is the progressive summary of the process. Development setup Set the environment: 1 2 mkdir -p ~/GitRepos mkdir -p ~/terraform.d/plugins/local-registry/cbugk/libvirt/0.7.0/linux_amd64 For installing terrraform and the initial provider test Fabian Lee’s introduction was followed. His main.tf file: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 terraform { required_version = ">= 1....

2022-11-13 · 2 min · 389 words · Celil Buğra Karacan

KVM Guest Network Isolation

Edited: 2022-06-30, added capability to block multiple subnets. First things first! 1 2 mkdir -p ~/Bench/libvirt-nwfilter-test cd ~/Bench/libvirt-nwfilter-test Preface Until I learn how to tame VXLAN for a virtualization cluster, I need a dirty way of seperating infrastructure network and the VM network. The solution presented in this post is to apply libvirt’s network filters (nwfilter) to drop packages from and to the “uplink”, namely home LAN (10.0.0.0/18), for any guest connected to the NAT (192....

2022-06-29 · 5 min · 992 words · Celil Buğra Karacan