[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] libxl: Store VNC passwd in xenstore with QEMU upstream.



This patch stores the VNC password in xenstore after it has been sent to QEMU.
This will be usefull with the vncviewer command with --autopass.

Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>

---
 tools/libxl/libxl_qmp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c
index ce9ab75..e33b130 100644
--- a/tools/libxl/libxl_qmp.c
+++ b/tools/libxl/libxl_qmp.c
@@ -928,6 +928,7 @@ int libxl__qmp_initializations(libxl__gc *gc, uint32_t 
domid,
     ret = libxl__qmp_query_serial(qmp);
     if (!ret && vnc && vnc->passwd) {
         ret = qmp_change(gc, qmp, "vnc", "password", vnc->passwd);
+        qmp_write_domain_console_item(gc, domid, "vnc-pass", vnc->passwd);
     }
     if (!ret) {
         ret = qmp_query_vnc(qmp);
-- 
Anthony PERARD

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.