terraform-provider-proxmox icon indicating copy to clipboard operation
terraform-provider-proxmox copied to clipboard

Selection of the components you want to be hotpluggable

Open Luquor opened this issue 1 year ago • 1 comments

``Is your feature request related to a problem? Please describe. There might be a way to do this that I am not aware of ! When I want a VM to have RAM and CPU with hotplug, just RAM and CPU, I need to instantiate them by using Terraform, and then go in Proxmox UI and check RAM/CPU, than reboot. It is now viable to do this if I have to instantiate hundreds of VMs.

Describe the solution you'd like Add an array in the resource block NUMA that let me choose which components I want to have hotplug enabled on. Or having a new resources that let us configure the file /etc/pve/qemu-server/100.conf for example.

Additional context This is one resource that instantiate one VM, I have hundreds of them. I cannot just choose which component to hotplug.

resource "proxmox_virtual_environment_vm" "master_vm" {
  name = "base-bookworm-web-inf-ncy"
  tags = ["bookworm", "prod", "terraform"]

  node_name = var.resourcehost_name
  vm_id     = 100

  clone {
    vm_id = data.proxmox_virtual_environment_vm.template.id
    node_name = var.template_resourcehost
    datastore_id = "local-data"
  }

  cpu {
    cores = 4
    numa = true
    type = "host"
  }

  memory {
    dedicated = 3072
  }

  disk {
    datastore_id = "local-data"
    interface = "scsi0"
    size      = 25
  }
}

Luquor avatar May 30 '24 10:05 Luquor

Duplicates #987

bpg avatar Jun 02 '24 19:06 bpg

Marking this issue as stale due to inactivity in the past 180 days. This helps us focus on the active issues. If this issue is reproducible with the latest version of the provider, please comment. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

bpg-autobot[bot] avatar Nov 30 '24 00:11 bpg-autobot[bot]

Duplicates #987

bpg avatar Dec 08 '24 15:12 bpg