The API documentation says that this request returns a string. It did previously, but it seems some update broke this.
It should return the Task ID as a JSON string. It now returns a plain text string before the JSON string, e.g. running
produces
This is on PVE 7.2-5.
It should return the Task ID as a JSON string. It now returns a plain text string before the JSON string, e.g. running
Bash:
pvesh create /nodes/net2-pve/qemu -vmid 7777 -name yolo -memory 2048 -cpu kvm64 -cores 4 -sockets 1 -balloon 0 -agent 0 -onboot true -numa true -boot 'order=virtio0;ide0' -args '-cpu kvm64,+ssse3,+sse4.1,+sse4.2' -net0 virtio=40:40:40:40:0f:a9 -scsihw virtio-scsi-pci -virtio0 'local-zfs:4,discard=on,iothread=1' -ide0 'local:iso/talos-1.0.6-amd64.iso,media=cdrom' --output-format=json
produces
JSON:
virtio0: successfully created disk 'local-zfs:vm-7777-disk-0,discard=on,iothread=1,size=4G'
"UPID:net2-pve:002605B4:00FB48C2:62B9E7EB:qmcreate:7777:root@pam:"
This is on PVE 7.2-5.
Last edited: