Thanks, --security-info option is the right way to get vnc password in dumpxml mode.<br><br><div class="gmail_quote">On Tue, Sep 11, 2012 at 4:58 PM, Michal Privoznik <span dir="ltr"><<a href="mailto:mprivozn@redhat.com" target="_blank">mprivozn@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 11.09.2012 05:50, Timon Wang wrote:<br>
> I use vnc with password for the vm graphics, it works well.<br>
> When I want to dump the xml of the vm, I found that the dumped xml does<br>
> not contains the password properties in the graphics node.<br>
> But when I use virsh edit to check the xml of the vm,  I found the<br>
> password is displayed.<br>
><br>
> It's it a bug or it's just what libvirt designed to perform.<br>
<br>
</div>You need to pass --security-info to the dumpxml command:<br>
<br>
    virsh dumpxml --security-info $domain<br>
<br>
Michal<br>
<div class="im">><br>
> --<br>
> Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW<br>
> Blog: <a href="http://www.nohouse.net" target="_blank">http://www.nohouse.net</a><br>
><br>
><br>
</div>> _______________________________________________<br>
> libvirt-users mailing list<br>
> <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW<br>Blog: <a href="http://www.nohouse.net" target="_blank">http://www.nohouse.net</a><br>