Description of problem: To my surprise, I could use a VNC password in my VM over 8 characters and only needed to enter the first 8 characters. Daniel informed me that VNC has a maximum effective password length of 8 characters, and that anything over 8 characters is discarded. It might be helpful if virsh could reject a VNC passwd over 8 characters to avoid surprising users like myself. Version-Release number of selected component (if applicable): Virsh 3.2.1 How reproducible: 100% Steps to Reproduce: 1. Define VM XML with VNC display and passwd over 8 characters 2. Start VM 3. Login to VNC with first 8 characters of passwd Actual results: It's only required to enter the first 8 characters of the VNC password Expected results: Reject the VM XML that uses a VNC password > 8 characters Additional info:
https://listman.redhat.com/archives/libvir-list/2021-December/msg00717.html
Committed for 8.0.0 as: commit 27c1d06b5bd68bdce55efff0a50a15a30cb2a96b Author: Daniel P. Berrangé <berrange> Date: Thu Dec 16 10:20:37 2021 +0000 qemu: validate VNC password length