Hi there,
When I deploy the Virtual Machines to my `linstor_storage`, I get the… following error because the Terraform project is not recognizing the Linstor Proxmox VMs' names. I got the following URL with more details about the Linstor naming convention for the VMs' disks:
https://forums.linbit.com/t/linstor-proxmox-v8-0-0/58
How do I skip the Telmate `terraform-provider-proxmox` project to not use the standard disk name, which is with the format `vm-<<<vmid>>>-disk-<<<disk number>>>`? Or how should I resolve this issue with the Terraform project, and accept the disks deployment by using the Linstor storage option instead?
I am not sure if there's something I can use with the disk's option called `disk_file` in this provider to resolve this issue with a Terraform deployment, instead of creating the servers manually.
## Provider:
```
terraform {
required_providers {
null = {
source = "hashicorp/null"
version = "3.2.4"
}
proxmox = {
source = "telmate/proxmox"
version = "3.0.2-rc03"
}
}
}
provider "null" {
# Configuration options
}
provider "proxmox" {
pm_api_url = "https://${var.pm_host}:8006/api2/json"
pm_user = var.pm_user
pm_api_token_id = var.pm_api_token_id
pm_api_token_secret = var.pm_api_token_secret
pm_tls_insecure = var.pm_tls_insecure
pm_parallel = 10
pm_timeout = 600
pm_debug = true
pm_log_enable = true
pm_log_file = "terraform-plugin-proxmox.log"
pm_log_levels = {
_default = "debug"
_capturelog = ""
}
}
```
## ERROR:
```
│ Error: error updating VM: 500 API Return-Code: 404. Message: Could not create diskless resource vm-111501-disk-0 on pve-01, because:, error status: {"message":"API Return-Code: 404. Message: Could not create diskless resource vm-111501-disk-0 on pve-01, because:\n[{\"ret_code\":-4611686018407202515,\"message\":\"Resource definition 'vm-111501-disk-0' not found.\",\"cause\":\"The specified resource definition 'vm-111501-disk-0' could not be found in the database\",\"details\":\"Node: pve-01, Resource: 'vm-111501-disk-0'\",\"correction\":\"Create a resource definition with the name 'vm-111501-disk-0' first.\",\"obj_refs\":{\"RscDfn\":\"vm-111501-disk-0\",\"Node\":\"pve-01\"},\"created_at\":\"2025-07-21T18:31:37.340762077-05:00\"}]\n at /usr/share/perl5/PVE/Storage/Custom/LINSTORPlugin.pm line 568.\n\tPVE::Storage::Custom::LINSTORPlugin::activate_volume(\"PVE::Storage::Custom::LINSTORPlugin\", \"linstor_storage\", HASH(0x59002c883f10), \"vm-111501-disk-0\", undef, HASH(0x59002c95b1c8)) called at /usr/share/perl5/PVE/Storage.pm line 1261\n\tPVE::Storage::activate_volumes(HASH(0x59002c96a528), ARRAY(0x59002c95b0d8)) called at /usr/share/perl5/PVE/API2/Qemu.pm line 673\n\tPVE::API2::Qemu::__ANON__(\"scsi0\", HASH(0x59002c95b000)) called at /usr/share/perl5/PVE/API2/Qemu.pm line 95\n\tPVE::API2::Qemu::__ANON__(HASH(0x59002c96dee0), CODE(0x59002c979990)) called at /usr/share/perl5/PVE/API2/Qemu.pm line 683\n\teval {...} called at /usr/share/perl5/PVE/API2/Qemu.pm line 683\n\tcreate_disks(PVE::RPCEnvironment=HASH(0x5900265f6980), \"terraform\\@pam!terraform_token_id\", HASH(0x59002c800bb8), \"x86_64\", HASH(0x59002c96a528), 111501, undef, HASH(0x59002c96dee0), ...) called at /usr/share/perl5/PVE/API2/Qemu.pm line 2304\n\tPVE::API2::Qemu::__ANON__() called at /usr/share/perl5/PVE/API2/Qemu.pm line 2466\n\tPVE::API2::Qemu::__ANON__() called at /usr/share/perl5/PVE/AbstractConfig.pm line 299\n\tPVE::AbstractConfig::__ANON__() called at /usr/share/perl5/PVE/Tools.pm line 270\n\teval {...} called at /usr/share/perl5/PVE/Tools.pm line 270\n\tPVE::Tools::lock_file_full(\"/var/lock/qemu-server/lock-111501.conf\", 10, 0, CODE(0x59002c989b20)) called at /usr/share/perl5/PVE/AbstractConfig.pm line 302\n\tPVE::AbstractConfig::__ANON__(\"PVE::QemuConfig\", 111501, 10, 0, CODE(0x59002c8e2678)) called at /usr/share/perl5/PVE/AbstractConfig.pm line 322\n\tPVE::AbstractConfig::lock_config_full(\"PVE::QemuConfig\", 111501, 10, CODE(0x59002c8e2678)) called at /usr/share/perl5/PVE/AbstractConfig.pm line 330\n\tPVE::AbstractConfig::lock_config(\"PVE::QemuConfig\", 111501, CODE(0x59002c8e2678)) called at /usr/share/perl5/PVE/API2/Qemu.pm line 2499\n\tPVE::API2::Qemu::__ANON__(HASH(0x59002c8e2420), 1) called at /usr/share/perl5/PVE/API2/Qemu.pm line 2638\n\tPVE::API2::Qemu::__ANON__(HASH(0x59002c8e2420)) called at /usr/share/perl5/PVE/RESTHandler.pm line 503\n\tPVE::RESTHandler::handle(\"PVE::API2::Qemu\", HASH(0x59002a704f10), HASH(0x59002c8e2420)) called at /usr/share/perl5/PVE/HTTPServer.pm line 187\n\teval {...} called at /usr/share/perl5/PVE/HTTPServer.pm line 143\n\tPVE::HTTPServer::rest_handler(PVE::HTTPServer=HASH(0x59002c74e2d0), \"::ffff:192.168.1.30\", \"PUT\", \"/nodes/pve-01/qemu/111501/config\", HASH(0x59002c8e2000), HASH(0x59002c97a200), \"json\") called at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 961\n\teval {...} called at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 935\n\tPVE::APIServer::AnyEvent::handle_api2_request(PVE::HTTPServer=HASH(0x59002c74e2d0), HASH(0x59002c93b238), HASH(0x59002c8e2000), \"PUT\", \"/api2/json/nodes/pve-01/qemu/111501/config\") called at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1190\n\teval {...} called at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1182\n\tPVE::APIServer::AnyEvent::handle_request(PVE::HTTPServer=HASH(0x59002c74e2d0), HASH(0x59002c93b238), HASH(0x59002c8e2000), \"PUT\", \"/api2/json/nodes/pve-01/qemu/111501/config\") called at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1662\n\tPVE::APIServer::AnyEvent::__ANON__(AnyEvent::Handle=HASH(0x59002c808ad8), \"nameserver=1.1.1.1+1.0.0.1&kvm=1&ipconfig0=ip%3D192.168.1.151\"...) called at /usr/lib/x86_64-linux-gnu/perl5/5.36/AnyEvent/Handle.pm line 1505\n\tAnyEvent::Handle::__ANON__(AnyEvent::Handle=HASH(0x59002c808ad8)) called at /usr/lib/x86_64-linux-gnu/perl5/5.36/AnyEvent/Handle.pm line 1315\n\tAnyEvent::Handle::_drain_rbuf(AnyEvent::Handle=HASH(0x59002c808ad8)) called at /usr/lib/x86_64-linux-gnu/perl5/5.36/AnyEvent/Handle.pm line 2015\n\tAnyEvent::Handle::__ANON__() called at /usr/lib/x86_64-linux-gnu/perl5/5.36/AnyEvent/Loop.pm line 248\n\tAnyEvent::Loop::one_event() called at /usr/lib/x86_64-linux-gnu/perl5/5.36/AnyEvent/Impl/Perl.pm line 46\n\tAnyEvent::CondVar::Base::_wait(AnyEvent::CondVar=HASH(0x59002662e638)) called at /usr/lib/x86_64-linux-gnu/perl5/5.36/AnyEvent.pm line 2034\n\tAnyEvent::CondVar::Base::recv(AnyEvent::CondVar=HASH(0x59002662e638)) called at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1999\n\tPVE::APIServer::AnyEvent::run(PVE::HTTPServer=HASH(0x59002c74e2d0)) called at /usr/share/perl5/PVE/Service/pvedaemon.pm line 52\n\tPVE::Service::pvedaemon::run(PVE::Service::pvedaemon=HASH(0x59002c74c5a8)) called at /usr/share/perl5/PVE/Daemon.pm line 171\n\teval {...} called at /usr/share/perl5/PVE/Daemon.pm line 171\n\tPVE::Daemon::__ANON__(PVE::Service::pvedaemon=HASH(0x59002c74c5a8)) called at /usr/share/perl5/PVE/Daemon.pm line 390\n\teval {...} called at /usr/share/perl5/PVE/Daemon.pm line 379\n\tPVE::Daemon::__ANON__(PVE::Service::pvedaemon=HASH(0x59002c74c5a8), undef) called at /usr/share/perl5/PVE/Daemon.pm line 549\n\teval {...} called at /usr/share/perl5/PVE/Daemon.pm line 547\n\tPVE::Daemon::start(PVE::Service::pvedaemon=HASH(0x59002c74c5a8), undef) called at /usr/share/perl5/PVE/Daemon.pm line 657\n\tPVE::Daemon::__ANON__(HASH(0x5900240964b0)) called at /usr/share/perl5/PVE/RESTHandler.pm line 503\n\tPVE::RESTHandler::handle(\"PVE::Service::pvedaemon\", HASH(0x59002c74c8f0), HASH(0x5900240964b0), 1) called at /usr/share/perl5/PVE/RESTHandler.pm line 1003\n\teval {...} called at /usr/share/perl5/PVE/RESTHandler.pm line 984\n\tPVE::RESTHandler::cli_handler(\"PVE::Service::pvedaemon\", \"pvedaemon start\", \"start\", ARRAY(0x5900240bd350), ARRAY(0x59002c74cf98), undef, undef, undef) called at /usr/share/perl5/PVE/CLIHandler.pm line 626\n\tPVE::CLIHandler::__ANON__(ARRAY(0x590024096678), CODE(0x5900244a85a8), undef) called at /usr/share/perl5/PVE/CLIHandler.pm line 707\n\tPVE::CLIHandler::run_cli_handler(\"PVE::Service::pvedaemon\", \"prepare\", CODE(0x5900244a85a8)) called at /usr/bin/pvedaemon line 27\n","data":null} (params: map[agent:1 balloon:0 bios:ovmf boot:order=scsi0;ide2;net0 cicustom:vendor=local:snippets/MicroK8s-TEST-vendorconfig.yaml ciupgrade:0 ciuser:administrator cores:4 cpu:host delete:cpuunits,vcpus,cipassword,shares description:Generated by Terraform for MicroK8s TEST hotplug:network,disk,usb ipconfig0:ip=192.168.1.151/24,gw=192.168.1.1 kvm:true memory:18432 nameserver:1.1.1.1 1.0.0.1 net0:virtio,bridge=vmbr0 numa:1 onboot:true ostype:l26 protection:false scsi0:linstor_storage:vm-111501-disk-0,cache=writeback,discard=on,replicate=0 scsi1:linstor_storage:50,cache=writeback,discard=on,format=raw,replicate=0 scsihw:virtio-scsi-pci serial0:socket sockets:1 sshkeys:ssh-rsa%xxxxxx%0A tablet:true tags:192.168.1.151;24.04;TEST;localtest-mk8s01;ubuntu])
│
│ with proxmox_vm_qemu.microk8s_vm_controller,
│ on main.tf line 29, in resource "proxmox_vm_qemu" "microk8s_vm_controller":
│ 29: resource "proxmox_vm_qemu" "microk8s_vm_controller" {
│
```
Any guidance or direction would be much appreciated!
Thanks a lot in advance!