Not able to access a vm console

asked 2016-11-03 06:40:06 -0600

Al-stack gravatar image

updated 2016-11-03 09:11:49 -0600

I'm running newton, with virt_type=lxc Can't configure vnc console for my instances, tried different ways...Although i can access console by virsh tool.

root@controller# grep vnc /etc/nova/nova.conf 
[vnc]
novncproxy_base_url = http://127.0.0.1:6080/vnc_auto.html
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = $my_ip
xvpvncproxy_base_url = http://127.0.0.1:6081/console
novncproxy_host = 0.0.0.0
novncproxy_port = 6080

root@controller# lsof -i :6080
COMMAND    PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
nova-novn 4769 nova    4u  IPv4 3800268      0t0  TCP *:6080 (LISTEN)


root@controller# /etc/init.d/nova-novncproxy status
● nova-novncproxy.service - OpenStack Compute novncproxy
   Loaded: loaded (/lib/systemd/system/nova-novncproxy.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2016-11-03 17:02:57 MSK; 5min ago
  Process: 4763 ExecStartPre=/bin/chown nova:adm /var/log/nova (code=exited, status=0/SUCCESS)
  Process: 4759 ExecStartPre=/bin/chown nova:nova /var/lock/nova /var/lib/nova (code=exited, status=0/SUCCESS)
  Process: 4755 ExecStartPre=/bin/mkdir -p /var/lock/nova /var/log/nova /var/lib/nova (code=exited, status=0/SUCCESS)
 Main PID: 4769 (nova-novncproxy)
    Tasks: 1
   Memory: 123.9M
      CPU: 2.829s
   CGroup: /system.slice/nova-novncproxy.service
           └─4769 /usr/bin/python /usr/bin/nova-novncproxy --config-file=/etc/nova/nova.conf --log-file=/var/log/nova/nova-novncproxy.log

Nov 03 17:02:57 controller systemd[1]: Starting OpenStack Compute novncproxy...
Nov 03 17:02:57 controller systemd[1]: Started OpenStack Compute novncproxy.
Nov 03 17:03:00 controller nova-novncproxy[4769]: 2016-11-03 17:03:00.806 4769 WARNING oslo_reports.guru_meditation_report [-] Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIG...enerate reports.
Nov 03 17:03:00 controller nova-novncproxy[4769]: 2016-11-03 17:03:00.807 4769 INFO nova.console.websocketproxy [-] WebSocket server settings:
Nov 03 17:03:00 controller nova-novncproxy[4769]: 2016-11-03 17:03:00.808 4769 INFO nova.console.websocketproxy [-]   - Listen on 0.0.0.0:6080
Nov 03 17:03:00 controller nova-novncproxy[4769]: 2016-11-03 17:03:00.809 4769 INFO nova.console.websocketproxy [-]   - Flash security policy server
Nov 03 17:03:00 controller nova-novncproxy[4769]: 2016-11-03 17:03:00.809 4769 INFO nova.console.websocketproxy [-]   - Web server (no directory listings). Web root: /usr/share/novnc
Nov 03 17:03:00 controller nova-novncproxy[4769]: 2016-11-03 17:03:00.810 4769 INFO nova.console.websocketproxy [-]   - No SSL/TLS support (no cert file)
Nov 03 17:03:00 controller nova-novncproxy[4769]: 2016-11-03 17:03:00.811 4769 INFO nova.console.websocketproxy [-]   - Recording to '/var/lib/nova/False.*'
Nov 03 17:03:00 controller nova-novncproxy[4769]: 2016-11-03 17:03:00.811 4769 INFO nova.console.websocketproxy [-]   - proxying from 0.0.0.0:6080 to None:None

so, what should be here instead of

proxying from 0.0.0.0:6080 to None:None

to get it working?

Any suggestion is appreciated

edit retag flag offensive close merge delete