| page_title | libvirt Provider |
|---|---|
| description | The Libvirt provider is used to interact with libvirt to manage virtual machines, networks, storage pools, and other resources. This provider follows the libvirt XML schemas https://libvirt.org/format.html closely, providing fine-grained control over all libvirt features. |
The Libvirt provider is used to interact with libvirt to manage virtual machines, networks, storage pools, and other resources.
This provider follows the libvirt XML schemas closely, providing fine-grained control over all libvirt features.
terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
}
}
}
# Configure the Libvirt Provider
provider "libvirt" {
# Connection URI - defaults to qemu:///system if not specified
# uri = "qemu:///system"
# For user session:
# uri = "qemu:///session"
# For remote connections (not yet implemented):
# uri = "qemu+ssh://user@remote-host/system"
}uri(String) Libvirt connection URI. Defaults toqemu:///systemif not specified. See libvirt URI documentation for details.