[pve-devel] [PATCH] Fixed OpenVZ noVNC console not showing in PVE3.4

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jul 29 17:39:32 CEST 2015


In commit 8d70213 we started to generate pveui.js from include/ui.js
with a patch, but the same patch was applied to master and stable 3
branch. So there was only lxc and when we try to open a noVNC
console on a OpenVZ container a "implement me" exception gets thrown
and the window shows nothing. This patch targets the stable-3 branch
and switches lxc back to OpenVZ so that the noVNC console is usable,
again.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 debian/patches/pveui.patch |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/patches/pveui.patch b/debian/patches/pveui.patch
index 8d24e4e..e53bcdc 100644
--- a/debian/patches/pveui.patch
+++ b/debian/patches/pveui.patch
@@ -716,8 +716,8 @@ index 3d3c41e..72072b1 100644
 +	      if (UI.vmname) {
 +		  title += " ('" + UI.vmname + "')";
 +	      }
-+	  } else if (UI.consoletype === 'lxc') {
-+	      var baseUrl = '/nodes/' + UI.nodename + '/lxc/' + UI.vmid;
++	  } else if (UI.consoletype === 'openvz') {
++	      var baseUrl = '/nodes/' + UI.nodename + '/openvz/' + UI.vmid;
 +	      url =  baseUrl + '/vncproxy';
 +	      wsurl = baseUrl + '/vncwebsocket';
 +	      title = "CT " + UI.vmid;
-- 
1.7.10.4



More information about the pve-devel mailing list