[PATCH qemu-server 0/1] Fix #5033: Add target-filename parameter in move_disk endpoint

Markus Ebner info at ebner-markus.de
Wed Nov 8 17:52:38 CET 2023

When using the POST endpoint at /node/<nodeid>/storage/<storageid>/content
a filename can be specified that will be used for the created image.
If said image is then moved from one vm to another vm, the target disk-image
has an automatically generated filename with the vm-<id>-disk-<nr> schema.

This patch adds the optional target-filename parameter to the reassignment
action at the qemu/move_disk endpoint, which allows to specify a custom
target filename for the disk image at the vm it's reassigned to.

Note: At the moment, this throws a parameter validation error when the
target-filename parameter is specified for the move (storage->other storage)
action of the move_disk endpoint.

Markus Ebner (1):
  fix #5033: api: Add target-filename option to move_disk reassign

 PVE/API2/Qemu.pm | 14 ++++++++++++++
 1 file changed, 14 insertions(+)


More information about the pve-devel mailing list