October 12, 20169 yr Hello all. I had previously setup my VM's via the Gui and had edited the XML to set custom port numbers for VNC (the objective is to have consistent port numbers for specific VM's instead of them being assigned in the order that the VM's are started). I also need to have a password on some of the VM's. This was working fine until the last unraid update... Now it seems that I can set a password in the GUI, but still need to edit the XML to add the custom port number for VNC. Unfortunately, as soon as I edit the XML for VNC, it "forgets" the password...so I go back and set the password in the GUI and it "forgets" the custom port number...so I can't figure out how to get both to stick...it just worked with previous versions... Any suggestions? What am I missing here? Thanks
March 27, 20197 yr Hey everyone! I have found an easy solution how you can both set a custom port and a password for VNC at the same time: Shut down the VM. Edit the VM and switch to XML View. Search for the <graphics type='vnc' ...> element. Set the autoport attribute to 'no' and change the attributes port and websocket to any unused ports. The line should now look something like this: <graphics type='vnc' port='5900' autoport='no' websocket='5700' listen='0.0.0.0' keymap='de'> Append the attribute named "passwd". The line should now look something like this: <graphics type='vnc' port='5900' autoport='no' websocket='5700' listen='0.0.0.0' keymap='de' passwd='Cd8B8fmCehbdaFLfCsfZyTL6'> Click the Update button at the bottom of the page to apply the changes. Start the VM. You might notice, that the "passwd" attribute and value are no longer visible, after you clicked the Update button. But looking at the XML file itself from the console reveals, that they are actually there. (You can type "cat /etc/libvirt/qemu/your-vm-name.xml" into console to verify that.) I assume, that the unRAID Web GUI hides the "passwd" attribute and value for security reasons. This is however not an ideal solution, because every time you want to change a setting you would have to do this again. @limetech, it would be great, if you could add an option to change the VNC port of a VM from within the Form View. This would fix the issue.
Archived
This topic is now archived and is closed to further replies.