Steps to recreate
Basic view only
- Enter VM edit on a VM with VNC already selected as the graphics option
- Enter password
- Click update button
- Enter VM edit
Expected result: VNC password field has value and VNC connection requires password
Actual result: VNC password field is empty and VNC connection does not require password
Advanced view
- Enter VM edit on a VM with VNC already selected as the graphics option
- Switch to advanced view
- Add "passwd" attribute and value to the "graphics" xml element
- Click update button
- Enter VM edit
Expected result: VNC password field has value in basic view, "graphics" xml element has "passwd" attribute in advanced view, and VNC connection requires password
Actual result: VNC password field is empty in basic view, "passwd" attribute is removed from graphics xml element in advanced view, and VNC connection does not require password
Additional details
- If I SSH into the server and manually edit the xml to add the "passwd" attribute, it works, but I have to edit anytime I make a change to the VM
-
For anyone experiencing this issue, setup a User Script with this command to fix it (replace [YOUR PASSWORD] and [YOUR VM NAME] with their respective values
- sed -i "s_<graphics type='vnc' port='-1' autoport='yes' websocket='-1'_<graphics type='vnc' port='-1' autoport='yes' websocket='-1' passwd='[YOUR PASSWORD]'_" "/etc/libvirt/qemu/[YOUR VM NAME].xml"
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.