-
Notifications
You must be signed in to change notification settings - Fork 483
Closed
Description
System Information
amd64
Linux distribution
Ubuntu22.04
Terraform version
v1.6.1
Provider and libvirt versions
0.7.4
Description of Issue/Question
I use the plugin to provision vm's on rack within my network.
I always implement an install with the latest Terraform and plugin versions.
With version 0.7.4. I get the following error when executing my code:
Error: failed to connect: dial unix /var/run/libvirt/libvirt-sock: connect: permission denied
│
│ with provider["registry.terraform.io/dmacvicar/libvirt"],
│ on connection.tf line 14, in provider "libvirt":
│ 14: provider "libvirt" {
Falling back to version 0.7.1 (since it is the latest version that is useable): it works again.
Setup
my connection.tf not working
terraform {
required_version = ">= 1.6.1"
required_providers {
libvirt = {
version = "0.7.4"
source = "dmacvicar/libvirt"
}
}
}
# instance the provider
provider "libvirt" {
uri = "qemu+ssh://user@xxx.xxx.hosts/system?keyfile=/home/xxx/.ssh/xxx&sshauth=privkey"
}
my connection.tf working
terraform {
required_version = ">= 1.6.1"
required_providers {
libvirt = {
version = "0.7.1"
source = "dmacvicar/libvirt"
}
}
}
# instance the provider
provider "libvirt" {
uri = "qemu+ssh://user@xxx.xxx.hosts/system?keyfile=/home/xxx/.ssh/xxx&sshauth=privkey"
}
daniel-weisse, elfranciswilliams, FlxPeters, Eusebius1920, torvitas and 1 more
Metadata
Metadata
Assignees
Labels
No labels