Replies: 1 comment 9 replies
-
Hi @KittyKatt 👋🏼 If I understand you correctly, you've created a VM using the providers, with SMBIOS settings as per https://registry.terraform.io/providers/bpg/proxmox/latest/docs/resources/virtual_environment_vm#smbios-1 (omitting UUID), and want to read back the generated UUID from the VM? Could you share a stripped down version of your config to help me understand better what are you trying to achieve? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there! I have some automation/IaC I'm cooking up and I've found I have a need to get the SMBIOS UUID of a created/imported VM. I'm creating a handful of Talos Linux nodes and they use the SMBIOS UUID as their own unique identifier. With Omni on top managing these Talos nodes, you can create and manage clusters via cluster templates. Machine resources that represent individual Kubernetes nodes are represented as this SMBIOS UUID. Scaling up or down these clusters would require knowing the UUIDs of the nodes/VMs I'm trying to remove/add to the cluster.
I'm actually trying my hand at creating a Terraform provider to interact with Omni and my current homelab uses this Proxmox provider to manage my Proxmox VMs (including the Talos nodes). I'm trying to write Terraform (and thus features into the Omni provider) that can take input of a UUID string from either a use or something else in Terraform. Since I'm already creating these VMs with Terraform and their information is stored in state, I'd like to be able to pull the SMBIOS UUID from a created VM, an imported VM, or a VM grabbed via a data source.
I see a bunch of references to SMBIOS settings (and even the UUID) across the VM-related resource/datasource files, but I can admit that I'm not a Golang pro and have having a hard time figuring out if this information is actually exported back to Terraform via the provider. Am I missing something? Is it just not exported (despite being known from a vmRead)? If not, I can open a new issue/feature request for this as it would MASSIVELY help to know this information.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions