[libvirt-users] dumpxml and edit the vm xml are not match.

I use vnc with password for the vm graphics, it works well. When I want to dump the xml of the vm, I found that the dumped xml does not contains the password properties in the graphics node. But when I use virsh edit to check the xml of the vm, I found the password is displayed. It's it a bug or it's just what libvirt designed to perform. -- Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW Blog: http://www.nohouse.net

On 11.09.2012 05:50, Timon Wang wrote:
I use vnc with password for the vm graphics, it works well. When I want to dump the xml of the vm, I found that the dumped xml does not contains the password properties in the graphics node. But when I use virsh edit to check the xml of the vm, I found the password is displayed.
It's it a bug or it's just what libvirt designed to perform.
You need to pass --security-info to the dumpxml command: virsh dumpxml --security-info $domain Michal
-- Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW Blog: http://www.nohouse.net
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Thanks, --security-info option is the right way to get vnc password in dumpxml mode. On Tue, Sep 11, 2012 at 4:58 PM, Michal Privoznik <mprivozn@redhat.com>wrote:
On 11.09.2012 05:50, Timon Wang wrote:
I use vnc with password for the vm graphics, it works well. When I want to dump the xml of the vm, I found that the dumped xml does not contains the password properties in the graphics node. But when I use virsh edit to check the xml of the vm, I found the password is displayed.
It's it a bug or it's just what libvirt designed to perform.
You need to pass --security-info to the dumpxml command:
virsh dumpxml --security-info $domain
Michal
-- Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW Blog: http://www.nohouse.net
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW Blog: http://www.nohouse.net
participants (2)
-
Michal Privoznik
-
Timon Wang