-
Notifications
You must be signed in to change notification settings - Fork 496
Open
Description
vm description:
resource "libvirt_domain" "example" {
provider = libvirt.kvm3
name = "example-vm"
memory = 1024
memory_unit = "MiB"
vcpu = 1
type = "kvm"
os = {
type = "hvm"
type_arch = "x86_64"
type_machine = "q35"
boot = {
devices = ["hd"]
}
}
features = {
acpi = true
}
devices = {
graphics = [
{
type = "vnc"
vnc = {
autoport = true
listen = "0.0.0.0"
passwd = "password"
}
}
]
disks = [
{
type = "volume"
source = {
volume = {
pool = libvirt_pool.st0_pool_kvm3.name
volume = libvirt_volume.st0_volume_kvm3.name
}
}
target = {
dev = "vda"
bus = "virtio"
}
driver = {
name = "qemu"
type = "raw"
}
}
]
interfaces = [
{
type = "bridge"
model = {
type = "virtio"
}
source = {
bridge = {
bridge = "br0"
}
}
mac = {
address = "52:54:00:12:34:56"
}
}
]
consoles = [
{
type = "pty"
target_port = "0"
target_type = "serial"
}
]
}
running = true
}
vm runs successfully and vnc works fine with password i set
but terraform output
libvirt_domain.example: Creating...
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to libvirt_domain.example, provider "provider[\"registry.terraform.io/dmacvicar/libvirt\"].kvm3" produced an unexpected new value:
│ .devices.graphics[0].vnc.passwd: was cty.StringVal("password"), but now null.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Metadata
Metadata
Assignees
Labels
No labels