Not able to set a per VM VNC password in the XML
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello,
I am trying to give every VM one my host a different password for the VNC connections, but this doesn't work.
According to the libvirt documentation this should be possible: http://
"The passwd attribute provides a VNC password in clear text."
A "virsh dumpxml" gives me: <graphics type='vnc' port='5901' autoport='yes' keymap='en-us'/>
When i output this to a file and manually add the "passwd" attribute it gets lost when defining the VM again with "virsh define" and no VNC password is set.
I am aware of the fact that i can set a VNC password in /etc/libvirt/
In our envirioment i have different system administrators for each VM so i need different VNC passwords for the VM's.
Is this possible?
When reading "man kvm-qemu" it is not possible to set a password with KVM:
" "password"
Require that password based authentication is used for client connections. The password must be set separately using the "change" command in the pcsys_monitor"
Can somebody clearify this, is setting a VNC per VM possible?
After some more testing i found that setting a VNC password is possible, but that "virsh dumpxml" does not display the "passwd".
cat /etc/libvirt/ qemu/vps200. xml displays the "passwd"
virsh dumpxml vps200 does not display the "passwd" attribute.
This is a pain in the ass, since i use "virsh dumpxml" as a base when i want to edit the configuration of a VPS.
But why does "virsh dumpxml" not display the "passwd" attribute? Security? Who knows?