Code:
file = "local:0,import-from=/home/spiderunderurbed/hdd/vms/vm-1/nixos.qcow2";
size = "20G"; # This should match or be larger than the size of your current disk image
format = "qcow2"; # Specify that the format is qcow2
Error:
https://pastebin.com/RXmftQLD
Here is my configuration (dont focus on the nix part, you can still understand what does what):
[EDIT]
I heard there was this option called target-datastore with qm importdisk
you use when running the qm command, is there something equivalent to this over the api or file
https://pastebin.com/cGC9cLgN
and incase anyone knows nixmoxer, so i can fix the code in the project i am using, does anyone know how to use proxmoxer or proxmox's api to force a created vm to use a disk directly, rather than importing, here is some proxmoxer code:
https://pastebin.com/CQAyX16p
Refer to the create_vm bit
that is, if nothing else relating to my configuration would fix this, then the solution might be in the api
Last edited: