Skip to content

Conversation

@dmacvicar
Copy link
Owner

Enable acceptance tests in GitHub Actions using QEMU TCG emulation. Tests run in a matrix with both Terraform and OpenTofu.

Sets TF_PROVIDER_LIBVIRT_DOMAIN_TYPE=qemu to force TCG instead of KVM, allowing tests to run in environments without nested virtualization support.

Enable acceptance tests in GitHub Actions using QEMU TCG emulation.
Tests run in a matrix with both Terraform and OpenTofu.

Sets TF_PROVIDER_LIBVIRT_DOMAIN_TYPE=qemu to force TCG instead of KVM,
allowing tests to run in environments without nested virtualization support.
The testing framework requires TF_ACC_TERRAFORM_PATH to be an absolute
path, not just the binary name. Use 'which' to get the full path to
the terraform or tofu binary installed by the setup actions.
Change socket permissions to allow the runner user to connect to libvirt
without sudo. This is safe in the CI environment.
@dmacvicar dmacvicar closed this Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants