# 使用 Homebrew 安装 terraform-provider-libvirt

查看 terraform-provider-libvirt 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:terraform-provider-libvirt
- **软件包管理器:** Homebrew
- **版本:** 0.9.8
- **来源摘要:** Terraform provisioning with Linux KVM using libvirt
- **主页:** <https://github.com/dmacvicar/terraform-provider-libvirt>
- **仓库:** <https://github.com/dmacvicar/terraform-provider-libvirt>
- **最后更新:** 2026-07-26T00:50:36+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- terraform-provider-libvirt (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.9.8
## 项目历史与用法

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

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
