# Install terraform-provider-libvirt with Homebrew

Terraform provisioning with Linux KVM using libvirt. Version 0.9.8 via Homebrew; verified 2026-05-31.

## Install

```sh
sudo av install brew:terraform-provider-libvirt
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install terraform-provider-libvirt
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:terraform-provider-libvirt
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/terraform-provider-libvirt>
- **Version:** 0.9.8
- **Source summary:** Terraform provisioning with Linux KVM using libvirt
- **Homepage:** <https://github.com/dmacvicar/terraform-provider-libvirt>
- **Repository:** <https://github.com/dmacvicar/terraform-provider-libvirt>
- **Upstream docs:** <https://github.com/dmacvicar/terraform-provider-libvirt#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/dmacvicar/terraform-provider-libvirt/archive/refs/tags/v0.9.8.tar.gz>
- **Last updated:** 2026-05-31T16:11:41Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- terraform-provider-libvirt (cli)
- terraform-provider-libvirt (alias)

## Dependencies

- libvirt

## Build dependencies

- go
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.9.8
- Package-manager updated: 2026-05-31
- Local data: ok
- Upstream repository: https://github.com/dmacvicar/terraform-provider-libvirt
- Upstream latest detected: v0.9.8 (current)
## Project history and usage

terraform-provider-libvirt is a Terraform provider for managing local or remote libvirt virtualization resources such as virtual machines, networks, storage pools, and volumes.

### Project history

The project dates to February 2016, making it one of the older community Terraform providers for local virtualization. Its purpose is to let Terraform manage Linux KVM/libvirt infrastructure through provider resources rather than ad hoc shell scripts or virt-manager workflows.

The current README describes v0.9.0 and later as a complete rewrite of the legacy provider. The legacy v0.8 branch remains available, while the rewritten provider is built on the Terraform Plugin Framework and models libvirt XML schemas more directly through libvirtxml.

### Adoption history

The provider has long occupied a practical niche for homelab, workstation, CI, and private-cloud users who want Terraform workflows without a public cloud control plane. The GitHub repository has a large star count for a community provider, and Homebrew packages current releases as a convenient way to install the provider binary outside Terraform's normal provider installer paths.

Its documentation now points users to both the Terraform Registry and the OpenTofu registry, reflecting the post-Terraform-fork packaging world where provider consumers may use either registry ecosystem.

### How it is used

Users declare `dmacvicar/libvirt` as a required provider and configure a libvirt URI such as `qemu:///system`, `qemu+ssh://.../system`, `qemu+sshcmd://.../system`, or `qemu+tls://.../system`. The provider then manages domains, networks, pools, and volumes using HCL that maps closely to libvirt XML.

The README also documents local development installation under `~/.terraform.d/plugins/registry.terraform.io/dmacvicar/libvirt/dev/linux_amd64/` with a Terraform CLI dev override, which matters to packagers and provider developers testing local builds.

### Why package nerds care

For package nerds, terraform-provider-libvirt is a classic non-cloud Terraform provider with awkward packaging edges: it is both a Terraform registry provider and a Homebrew formula, depends on libvirt concepts, and bridges the Terraform provider installation model with local virtualization workflows.

### Timeline

- 2016: GitHub repository created.
- 2026: v0.9.x releases continue the rewritten Terraform Plugin Framework provider line.
- 2026: Homebrew packages v0.9.8.

### Related projects

- libvirt, KVM, and QEMU are the virtualization stack managed by the provider.
- Terraform Registry and OpenTofu Registry are the documented provider distribution surfaces.

### Sources

- <https://api.github.com/repos/dmacvicar/terraform-provider-libvirt>
- <https://formulae.brew.sh/api/formula/terraform-provider-libvirt.json>
- <https://github.com/dmacvicar/terraform-provider-libvirt#readme>
- <https://registry.terraform.io/providers/dmacvicar/libvirt/latest/docs>


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- infrastructure mutation or orchestration signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** terraform-provider-libvirt
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [libvirt](https://www.automicvault.com/pkg/brew/libvirt/) - Runtime dependency declared by Homebrew.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [aiac](https://www.automicvault.com/pkg/brew/aiac/) - Shares av.db curated category or tags: cli, cloud-infrastructure, terraform.
- [atlantis](https://www.automicvault.com/pkg/brew/atlantis/) - Shares av.db curated category or tags: cli, cloud-infrastructure, terraform.
- [aztfexport](https://www.automicvault.com/pkg/brew/aztfexport/) - Shares av.db curated category or tags: cli, cloud-infrastructure, terraform.
- [cdktf](https://www.automicvault.com/pkg/brew/cdktf/) - Shares av.db curated category or tags: cli, cloud-infrastructure, terraform.
- [cf-terraforming](https://www.automicvault.com/pkg/brew/cf-terraforming/) - Shares av.db curated category or tags: cli, cloud-infrastructure, terraform.
- [cf2tf](https://www.automicvault.com/pkg/brew/cf2tf/) - Shares av.db curated category or tags: cli, cloud-infrastructure, terraform.
- [colima](https://www.automicvault.com/pkg/brew/colima/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [container](https://www.automicvault.com/pkg/brew/container/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [terraform-cleaner](https://www.automicvault.com/pkg/brew/terraform-cleaner/) - Package names and metadata indicate a similar tool family. Shared terms: cli, cloud, cloud-infrastructure, infrastructure, terraform.
- [terraform-graph-beautifier](https://www.automicvault.com/pkg/brew/terraform-graph-beautifier/) - Package names and metadata indicate a similar tool family. Shared terms: cli, cloud, cloud-infrastructure, infrastructure, terraform.

## Combined YAML source

View the package source record on GitHub. [combined/terraform-provider-libvirt.yml](https://github.com/automic-vault/db/blob/main/combined/terraform-provider-libvirt.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
