vishesh92 commented on issue #9718: URL: https://github.com/apache/cloudstack/issues/9718#issuecomment-5619483322
It should be possible to do this without restart using `virsh domdisplay-reload <domain> --type vnc`. This command is available from libvirt 10.2.0 https://www.libvirt.org/manpages/virsh.html#domdisplay-reload For older versions, `virsh qemu-monitor-command i-2-4-VM '{"execute":"display-reload","arguments":{"type":"vnc","tls-certs":true}}'` should work. Please note that `"tls-certs": true` needs to be added, otherwise it doesn't work. A small script for doing it for all VMs on a host. ```bash for vm in $(virsh list --name); do echo "Reloading VNC certs for: $vm" virsh qemu-monitor-command "$vm" '{"execute":"display-reload","arguments":{"type":"vnc","tls-certs":true}}'' done ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
