mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-14 18:01:06 +00:00
vncproxy: add check if VM is running
To provide better eror message for console task.
This commit is contained in:
parent
6e0d60e4e0
commit
7786f1b0b4
@ -1348,6 +1348,8 @@ __PACKAGE__->register_method({
|
||||
$cmd = ['/bin/nc', '-l', '-p', $port, '-w', $timeout, '-c', "$qmstr 2>/dev/null"];
|
||||
}
|
||||
|
||||
die "VM $vmid not running\n" if !PVE::QemuServer::check_running($vmid);
|
||||
|
||||
PVE::Tools::run_command($cmd);
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user