Jump to content
  • [6.9.2] VNC password not saving


    c0d3m0nk3y
    • Minor

    Steps to recreate

     

    Basic view only

    1. Enter VM edit on a VM with VNC already selected as the graphics option
    2. Enter password
    3. Click update button
    4. 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

    1. Enter VM edit on a VM with VNC already selected as the graphics option
    2. Switch to advanced view
    3. Add "passwd" attribute and value to the "graphics" xml element
    4. Click update button
    5. 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"

    rmofrequirement-diagnostics-20220414-1001.zip




    User Feedback

    Recommended Comments

    twiikker

    Posted

    I have similiar problem now and editing "/etc/libvirt/qemu/VM.xml" has no effect on it.

     

    I'm on 6.10.2.

    So my problem is that i cannot save settings with basic template which saves password since it bricks my virtiofs settings from xml and xml setup does not save VNC password.

    Manchineel

    Posted

    This is still an issue. Anyone found a fix yet?

    SimonF

    Posted

    13 minutes ago, Manchineel said:

    This is still an issue. Anyone found a fix yet?

    Which release are you on 6.92 still?

    Manchineel

    Posted

    On 6/2/2023 at 2:28 PM, SimonF said:

    Which release are you on 6.92 still?

    I'm on 6.11.5 actually

    Lukáš Řádek

    Posted

    I am on a 6.12.3 and the VNC Console Password is saved but when the VM is edited again, it is missing and if saved again, there is no password protection now... ie. you have to retype the password every time you edit the VM in order to be protected.

    SimonF

    Posted

    7 hours ago, Lukáš Řádek said:

    I am on a 6.12.3 and the VNC Console Password is saved but when the VM is edited again, it is missing and if saved again, there is no password protection now... ie. you have to retype the password every time you edit the VM in order to be protected.

    I have just looked at tthe code and it doesnt read from xml will look into a fix.

    SimonF

    Posted

    Created pr for this Retain VNC password during update. #1387, This has now merged so will be in the next released version.

    • Thanks 1


    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.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.

×
×
  • Create New...