From 91527a265ae97d4ae64749438fcffa620550ad63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Limpinho?= <53994778+TomasLimpinho@users.noreply.github.com> Date: Wed, 20 Aug 2025 16:55:22 +0100 Subject: [PATCH] VM01 --- proxmox.tf | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/proxmox.tf b/proxmox.tf index 31ac446..4a4c767 100644 --- a/proxmox.tf +++ b/proxmox.tf @@ -63,11 +63,26 @@ resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" { } } +} + +resource "proxmox_virtual_environment_vm" "VM_Kubernetes_01" { + name = "VM_Kubernetes_01" + node_name = "fenix" + + clone { + vm_id = proxmox_virtual_environment_vm.proxmox-kubernetes-VM-template.id + } + + agent { + # NOTE: The agent is installed and enabled as part of the cloud-init configuration in the template VM, see cloud-config.tf + # The working agent is *required* to retrieve the VM IP addresses. + # If you are using a different cloud-init configuration, or a different clone source + # that does not have the qemu-guest-agent installed, you may need to disable the `agent` below and remove the `vm_ipv4_address` output. + # See https://registry.terraform.io/providers/bpg/proxmox/latest/docs/resources/virtual_environment_vm#qemu-guest-agent for more details. + enabled = false + } } - - -