]> git.proxmox.com Git - qemu-server.git/commitdiff
start: warn about terminating the swtpm instance
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 5 Oct 2021 05:05:39 +0000 (07:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 5 Oct 2021 05:05:42 +0000 (07:05 +0200)
if only to notice the user about the PID if the termination fails

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index 0ca5e00e4cdba11c8280f74a6106ea194318d52f..076ce59f4c9c26b3b07b3be30d199bd952dd4dc8 100644 (file)
@@ -5441,6 +5441,7 @@ sub vm_start_nolock {
 
            my $exitcode = run_command($cmd, %run_params);
            if ($exitcode) {
+               warn "stopping swtpm instance (pid $tpmpid) due to QEMU startup error\n";
                kill 'TERM', $tpmpid if $tpmpid;
                die "QEMU exited with code $exitcode\n";
            }