I know that you can import disk from file to VM using CLI:
However I want to do this using the API, but there is no endpoint for that.
I have attempted to change the configuration and move the disk..
VM config is set to:
	
	
	
		
Moving the disk:
	
	
	
		
Every attempt has just resulted in "no bootable devices found" (bios error).
And it works perfectly fine when using the CLI importdisk command.
Any suggestions for a workaround?
				
			qm importdisk 9000 bionic-server-cloudimg-amd64.img local-lvmHowever I want to do this using the API, but there is no endpoint for that.
I have attempted to change the configuration and move the disk..
VM config is set to:
POST /api2/json/nodes/pve/qemu/9000/config
		Code:
	
	vmid=        9000
name=        ubuntu-tmp
net0=        virtio,bridge=vmbr0
memory=        2048
scsihw=        virtio-scsi-pci
scsi0=        local:iso/bionic-server-cloudimg-amd64.img
ide2=        local-lvm:cloudinit
bootdisk=    scsi0
boot=        c
	Moving the disk:
POST /api2/json/nodes/pve/qemu/9000/move_disk
		Code:
	
	disk=        scsi0
storage=    local-lvm
	Every attempt has just resulted in "no bootable devices found" (bios error).
And it works perfectly fine when using the CLI importdisk command.
Any suggestions for a workaround?