resource "incus_profile" "test_profile" {
name = "test-profile"
device {
name = "eth0"
type = "nic"
properties = {
nictype = "bridged"
parent = "bound-to-lan"
}
}
device {
type = "disk"
name = "root"
properties = {
pool = "default"
path = "/"
}
}
}
resource "incus_instance" "gobble" {
name = "gobble"
image = "talos/1.11.2-qagent"
type = "virtual-machine"
ephemeral = false
profiles = ["${incus_profile.test_profile.name}"]
device {
name = "eth0"
type = "nic"
properties = {
nictype = "bridged"
parent = "bound-to-lan"
}
}
config = {
"security.secureboot" = false
"limits.cpu" = 8
"limits.memory" = "6GiB"
}
}
output "incus_public_ip" {
depends_on = [incus_instance.gobble]
description = "ip from instance"
value = resource.incus_instance.gobble.ipv4_address
}
bound-to-lan is an unmanaged bridge not configured by incus but netplan.
I am trying to figure out :
Is the posted network setup ever going to yield a incus_instance.NAME.ipv4_address if the image used for the vm does not include the incus-agent?
What is the best way to use the qemu-guest-agent with incus if this is the only agent available and will this result in incus_instance.NAME.ipv4_address to be populated?
Thanks