Skip to content

Commit 78778bb

Browse files
committed
fix: vnc console access
Signed-off-by: Paul Kroeher <paul.kroeher@cyberus-technology.de> On-behalf-of: SAP paul.kroeher@sap.com
1 parent 02e8b60 commit 78778bb

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

modules/compute/nova.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,9 @@ let
9898
9999
[vnc]
100100
enabled = true
101-
novncproxy_base_url = http://127.0.0.1:6082/vnc_auto.html
102101
server_listen = 0.0.0.0
103102
server_proxyclient_address = $my_ip
104-
novncproxy_host = 0.0.0.0
105-
novncproxy_port = 6082
103+
novncproxy_base_url = http://127.0.0.1:6080/vnc_lite.html
106104
107105
[cells]
108106
enable = False

modules/controller/nova.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,8 @@ let
5555
5656
[vnc]
5757
enabled = true
58-
novncproxy_base_url = http://127.0.0.1:6082/vnc_auto.html
59-
server_listen = 0.0.0.0
58+
server_listen = $my_ip
6059
server_proxyclient_address = $my_ip
61-
novncproxy_host = 0.0.0.0
62-
novncproxy_port = 6082
6360
6461
[glance]
6562
api_servers = http://controller:9292

modules/testing/default.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ let
8888
the configuration of the dashboard.
8989
'';
9090
};
91+
vncProxyHostPort = mkOption {
92+
default = 6080;
93+
type = types.port;
94+
description = ''
95+
Host port to make the vnc console feature available for the
96+
OpenStack dashboard. Changing the value might requires to change
97+
the configuration of the dashboard.
98+
'';
99+
};
91100
};
92101
config = mkIf cfg.enable {
93102
virtualisation.forwardPorts = [
@@ -101,6 +110,11 @@ let
101110
host.port = cfg.serialProxyHostPort;
102111
guest.port = 6083;
103112
}
113+
{
114+
from = "host";
115+
host.port = cfg.vncProxyHostPort;
116+
guest.port = 6080;
117+
}
104118
];
105119
};
106120
};

0 commit comments

Comments
 (0)