Skip to contentSkip to conversation

libxl: Store VNC passwd in xenstore with QEMU upstream.

PATCH In review Anthony PERARD 2 participants 2 messages May 21, 2012 – Jun 8, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 tools/libxl/libxl_qmp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/libxl/libxl_qmp.c +1 -0
index ce9ab75..e33b130 100644
@@ -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);
Signature · 1 line
Anthony PERARD