Hello!
I have an installed Proxmox server which is functional through GUI and CLI.
I want to launch a VM through the proxmox API, and i am trying to do so by sending a POST request to /nodes/{node}/qemu.
I am able to get the VM instantiated, but it wont run. I think the problem is due to the scsi0 volume is not being allocated. If i go manually into the hardware option after instantiation of the VM through API calls, and delete the scsi0 disk before creating a new one through GUI then the VM starts without problems.
I would love some feedback on my config, is there something i have misunderstood here? I think the problem lies in the magic command referenced in the API Docs "STORAGE_ID:SIZE_IN_GB", but i cant find any reference to how to actually use this.
config:
"vmid": 604,
"sockets":1,
"cores":2,
"memory":4096,
"ostype":"l26"
"cdrom":"local:iso/ubuntu-20.04.2-live-server-amd64.iso,media=cdrom",
"scsi0":32, #STORAGE_ID:SIZE_IN_GB"
"scsi0": "file=local-lvm:vm-604-disk-0,size=32", #trying to replicate the specs from GUI
"scsihw":"virtio-scsi-pci",
"start":0
response:
200
{"data":"UPID: pve:000079EA:001193BB:60E838C2:qmcreate:604:root@pam:"} (edited space between : and P to avoid getting smileyface)
Hope this was the right place to ask, say the word and i will move/delete post
I have an installed Proxmox server which is functional through GUI and CLI.
I want to launch a VM through the proxmox API, and i am trying to do so by sending a POST request to /nodes/{node}/qemu.
I am able to get the VM instantiated, but it wont run. I think the problem is due to the scsi0 volume is not being allocated. If i go manually into the hardware option after instantiation of the VM through API calls, and delete the scsi0 disk before creating a new one through GUI then the VM starts without problems.
I would love some feedback on my config, is there something i have misunderstood here? I think the problem lies in the magic command referenced in the API Docs "STORAGE_ID:SIZE_IN_GB", but i cant find any reference to how to actually use this.
config:
"vmid": 604,
"sockets":1,
"cores":2,
"memory":4096,
"ostype":"l26"
"cdrom":"local:iso/ubuntu-20.04.2-live-server-amd64.iso,media=cdrom",
"scsi0":32, #STORAGE_ID:SIZE_IN_GB"
"scsi0": "file=local-lvm:vm-604-disk-0,size=32", #trying to replicate the specs from GUI
"scsihw":"virtio-scsi-pci",
"start":0
response:
200
{"data":"UPID: pve:000079EA:001193BB:60E838C2:qmcreate:604:root@pam:"} (edited space between : and P to avoid getting smileyface)
Hope this was the right place to ask, say the word and i will move/delete post
Last edited: