mirror of
https://git.proxmox.com/git/qemu-server
synced 2026-01-03 10:49:56 +00:00
enable vncproxy with vncterm for serial ports
this enables the output via vncterm when the vm has configured a serial port Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
8730200273
commit
9e6d6e97c4
@ -1429,14 +1429,22 @@ __PACKAGE__->register_method({
|
||||
|
||||
if ($conf->{vga} && ($conf->{vga} =~ m/^serial\d+$/)) {
|
||||
|
||||
die "Websocket mode is not supported in vga serial mode!" if $websocket;
|
||||
|
||||
my $termcmd = [ '/usr/sbin/qm', 'terminal', $vmid, '-iface', $conf->{vga} ];
|
||||
#my $termcmd = "/usr/bin/qm terminal -iface $conf->{vga}";
|
||||
|
||||
$cmd = ['/usr/bin/vncterm', '-rfbport', $port,
|
||||
'-timeout', $timeout, '-authpath', $authpath,
|
||||
'-perm', 'Sys.Console', '-c', @$remcmd, @$termcmd];
|
||||
'-perm', 'Sys.Console'];
|
||||
|
||||
if ($param->{websocket}) {
|
||||
$ENV{PVE_VNC_TICKET} = $ticket; # pass ticket to vncterm
|
||||
push @$cmd, '-notls', '-listen', 'localhost';
|
||||
}
|
||||
|
||||
push @$cmd, '-c', @$remcmd, @$termcmd;
|
||||
|
||||
PVE::Tools::run_command($cmd);
|
||||
|
||||
} else {
|
||||
|
||||
$ENV{LC_PVE_TICKET} = $ticket if $websocket; # set ticket with "qm vncproxy"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user