When doing a linked clone of a template, the task log, journal, nor the UPID of the task will log the VMID of the newly created VM.
We add a log message at the start of the clone. This affects both full and linked clones. Signed-off-by: Maximiliano Sandoval <[email protected]> --- src/PVE/API2/Qemu.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PVE/API2/Qemu.pm b/src/PVE/API2/Qemu.pm index 1e226f6f..b409610c 100644 --- a/src/PVE/API2/Qemu.pm +++ b/src/PVE/API2/Qemu.pm @@ -4487,6 +4487,9 @@ __PACKAGE__->register_method({ my $clonefn = sub { my ($conffile, $newconf, $oldconf, $vollist, $drives, $fullclone) = $load_and_check->(); + + print("creating a clone of VM $vmid with ID $newid\n"); + my $storecfg = PVE::Storage::config(); # auto generate a new uuid -- 2.47.3
