Viewing docs for libvirt 0.9.7
published on Sunday, Mar 29, 2026 by dmacvicar
published on Sunday, Mar 29, 2026 by dmacvicar
Libvirt Provider
I want to use the Pulumi libvirt package (libvirt) in my project.
## Provider details
- Package: libvirt
- Version: 0.9.7
- Publisher: dmacvicar
- Source: opentofu
- Repository: https://github.com/dmacvicar/terraform-provider-libvirt
## Documentation
The Pulumi Cloud Registry API serves canonical, up-to-date docs for this package — including private packages and every published version. Send the "Accept: text/markdown" header for clean readable content, or "application/json" for structured data.
Start at the navigation tree, which cross-links to the readme, installation guide, and per-resource docs URL template:
- https://api.pulumi.com/api/registry/packages/opentofu/dmacvicar/libvirt/versions/latest/nav
Returns a summary by default. The full tree can be hundreds of kB for large providers, so prefer targeted search: append "?q=<query>&depth=full" to filter by resource/function title or token (for example "?q=bucket&depth=full"). Only request the full nav without a query if you actually need to enumerate every resource.
Other endpoints:
- Overview and getting started: https://api.pulumi.com/api/registry/packages/opentofu/dmacvicar/libvirt/versions/latest/readme
- Installation and configuration: https://api.pulumi.com/api/registry/packages/opentofu/dmacvicar/libvirt/versions/latest/installation
- Per-resource/function docs: https://api.pulumi.com/api/registry/packages/opentofu/dmacvicar/libvirt/versions/latest/docs/{token}?lang={lang}
Replace {token} with the percent-encoded token from the nav response (for example aws:s3/bucket:Bucket).
Replace {lang} with typescript, python, go, csharp, java, or yaml.
Fetch the installation endpoint above for the correct setup steps — install instructions vary between native providers, bridged Terraform providers, and component packages.
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
Viewing docs for libvirt 0.9.7
published on Sunday, Mar 29, 2026 by dmacvicar
published on Sunday, Mar 29, 2026 by dmacvicar
Generate Provider
The Libvirt provider must be installed as a Local Package by following the instructions for Any Terraform Provider:
pulumi package add terraform-provider dmacvicar/libvirt
~> NOTE: This provider was previously published as @pulumi/libvirt. However, that package is no longer being updated.Going forward, it is available as a Local Package instead. Please see the provider’s repository for details.
Overview
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
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: nodejs
import * as pulumi from "@pulumi/pulumi";
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: python
import pulumi
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: dotnet
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: go
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: yaml
{}
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: java
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
}
}
Configuration Reference
uri(String) Libvirt connection URI. Defaults toqemu:///systemif not specified. See libvirt URI documentation for details.
Viewing docs for libvirt 0.9.7
published on Sunday, Mar 29, 2026 by dmacvicar
published on Sunday, Mar 29, 2026 by dmacvicar
