Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.33 KB

File metadata and controls

48 lines (37 loc) · 1.33 KB
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.

libvirt Provider

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.

Example Usage

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

Schema

Optional

  • uri (String) Libvirt connection URI. Defaults to qemu:///system if not specified. See libvirt URI documentation for details.