mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
fix(instances): console changes that cannot be made are refused, not reported as done
A switch to the serial console removed the graphics device but kept a serial console of another type, a TCP one say, which the browser does not open; the audit log said the console type was set. The switch is now refused, with nothing changed, unless the serial console is a pty one. A listen address change of a console that listens on a network, a socket or nowhere did nothing without a word. It is refused with the reason. The .vv file pointed virt-viewer at "::" for a console on all IPv6 addresses; such a console is reached through the host, as one on 0.0.0.0.
This commit is contained in:
parent
88e7e0fa90
commit
d6df6b1df4
11 changed files with 291 additions and 210 deletions
|
|
@ -2485,7 +2485,8 @@ def getvvfile(request, pk):
|
|||
listen = proxy.get_console_listener_addr()
|
||||
response.writelines("[virt-viewer]\n")
|
||||
response.writelines(f"type={proxy.get_console_type()}\n")
|
||||
response.writelines(f"host={proxy.host if listen == '0.0.0.0' else listen}\n")
|
||||
# a console on all IPv4 or IPv6 addresses is reached through the host
|
||||
response.writelines(f"host={proxy.host if listen in ('0.0.0.0', '::') else listen}\n")
|
||||
response.writelines(f"port={proxy.get_console_port()}\n")
|
||||
response.writelines(f"title={keyfile_value(proxy.instance.name())}\n")
|
||||
# as the console page: without the permission the viewer asks for the password
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue