Not able to set a per VM VNC password in the XML

Bug #410281 reported by Wido den Hollander
6
This bug affects 1 person
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://libvirt.org/formatdomain.html#elementsGraphics

"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/qemu.conf, but this password is the same for ALL the VM's.

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?

Revision history for this message
Wido den Hollander (wido) wrote :

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?

Revision history for this message
Chuck Short (zulcss) wrote :

This bug report is being closed due to your last comment regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in libvirt (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.