resource "proxmox_virtual_environment_vm" "main" { name = var.hostname description = "Managed by Terraform" tags = ["terraform"] node_name = var.node cpu { cores = 1 } memory { dedicated = 2048 } agent { enabled = true } network_device { bridge = "vmbr0" } disk { datastore_id = "local-lvm" file_id = proxmox_virtual_environment_file.freebsd14_cloud.id interface = "scsi0" size = 32 } serial_device {} initialization { datastore_id = "local-lvm" user_data_file_id = proxmox_virtual_environment_file.cloud_config.id ip_config { ipv4 { address = "dhcp" } } } }