Create VM

Digambar Borse

New Member
Feb 20, 2025
2
0
1
Hello,

I want to crate VM using REST API , I have all disk copied in storage , but getting below error for below POST API

https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu

O/P:
{
"errors": {
"tpmstate0": "invalid format - duplicate key in comma-separated list property: file\n",
"ide0": "invalid format - duplicate key in comma-separated list property: file\n",
"efidisk0": "invalid format - duplicate key in comma-separated list property: file\n"
},
"data": null
}

What am I missing for this?

Thanks
-Digambar
 
Hi,
that sounds like the parameter you are passing along for these disks specify the file property multiple times. This is the default key, so as part of the string you pass along it can either be file=volume-id or volume-id by itself without the key.