[GH-ISSUE #241] webvirtmgr not working #188

Closed
opened 2026-02-27 16:38:19 +03:00 by kerem · 17 comments
Owner

Originally created by @jaydeepch15 on GitHub (Feb 18, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/241

My KVM and webvirtmgr is installed on same server (CentOS 6.5)

followed below link to install webvirtmgr
https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr

Getting same error
Failed to connect to server (code: 1006)

When I run
[root@kvm ~]# websockify 6080 10.10.8.107:5900
WebSocket server settings:

Listen on :6080
Flash security policy server
No SSL/TLS support (no cert file) Traceback (most recent call last): File "/usr/bin/websockify", line 9, in load_entry_point('websockify==0.4.1', 'console_scripts', 'websockify')() File "/usr/lib/python2.6/site-packages/websockify/websocketproxy.py", line 390, in websockify_init server.start_server() File "/usr/lib/python2.6/site-packages/websockify/websocket.py", line 834, in start_server lsock = self.socket(self.listen_host, self.listen_port, False, self.prefer_ipv6) File "/usr/lib/python2.6/site-packages/websockify/websocket.py", line 198, in socket sock.bind(addrs[0][4]) File "", line 1, in bind socket.error: [Errno 98] Address already in use

Removed comment in /etc/libvirt/qemu.conf file, then restart libvirted service.
vnc_listen = "0.0.0.0"
&
remote_display_port_min = 5900
remote_display_port_max = 65535

FYI

I haven't created VM from Webvirtmgr, I had created it from backend

[root@kvm ~]# virt-install --connect qemu:///system -n vm10 -r 1024 --vcpus=2 --disk path=/var/lib/libvirt/images/vm10.img,size=12 -c /dev/sr0 --vnc --noautoconsole --os-type windows --os-variant win7 --accelerate --network=bridge:br0 --hvm

Originally created by @jaydeepch15 on GitHub (Feb 18, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/241 My KVM and webvirtmgr is installed on same server (CentOS 6.5) followed below link to install webvirtmgr https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr Getting same error Failed to connect to server (code: 1006) When I run [root@kvm ~]# websockify 6080 10.10.8.107:5900 WebSocket server settings: ``` Listen on :6080 Flash security policy server No SSL/TLS support (no cert file) Traceback (most recent call last): File "/usr/bin/websockify", line 9, in load_entry_point('websockify==0.4.1', 'console_scripts', 'websockify')() File "/usr/lib/python2.6/site-packages/websockify/websocketproxy.py", line 390, in websockify_init server.start_server() File "/usr/lib/python2.6/site-packages/websockify/websocket.py", line 834, in start_server lsock = self.socket(self.listen_host, self.listen_port, False, self.prefer_ipv6) File "/usr/lib/python2.6/site-packages/websockify/websocket.py", line 198, in socket sock.bind(addrs[0][4]) File "", line 1, in bind socket.error: [Errno 98] Address already in use ``` Removed comment in /etc/libvirt/qemu.conf file, then restart libvirted service. vnc_listen = "0.0.0.0" & remote_display_port_min = 5900 remote_display_port_max = 65535 FYI I haven't created VM from Webvirtmgr, I had created it from backend [root@kvm ~]# virt-install --connect qemu:///system -n vm10 -r 1024 --vcpus=2 --disk path=/var/lib/libvirt/images/vm10.img,size=12 -c /dev/sr0 --vnc --noautoconsole --os-type windows --os-variant win7 --accelerate --network=bridge:br0 --hvm
kerem closed this issue 2026-02-27 16:38:19 +03:00
Author
Owner

@retspen commented on GitHub (Feb 20, 2014):

$ netstat -awtun | grep 6080
$ ps axf | grep webvirtmgr

Show your date

<!-- gh-comment-id:35633206 --> @retspen commented on GitHub (Feb 20, 2014): $ netstat -awtun | grep 6080 $ ps axf | grep webvirtmgr Show your date
Author
Owner

@jaydeepch15 commented on GitHub (Feb 20, 2014):

[root@kvm ~]# date
Thu Feb 20 12:33:23 EST 2014
[root@kvm ~]# ps axf | grep webvirtmgr
29357 pts/3 S+ 0:00 _ grep webvirtmgr
31677 ? S 0:08 python /var/www/webvirtmgr/console/webvirtmgr-novnc
[root@kvm ~]# netstat -awtun | grep 6080
tcp 0 0 0.0.0.0:6080 0.0.0.0:* LISTEN

<!-- gh-comment-id:35647669 --> @jaydeepch15 commented on GitHub (Feb 20, 2014): [root@kvm ~]# date Thu Feb 20 12:33:23 EST 2014 [root@kvm ~]# ps axf | grep webvirtmgr 29357 pts/3 S+ 0:00 _ grep webvirtmgr 31677 ? S 0:08 python /var/www/webvirtmgr/console/webvirtmgr-novnc [root@kvm ~]# netstat -awtun | grep 6080 tcp 0 0 0.0.0.0:6080 0.0.0.0:\* LISTEN
Author
Owner

@retspen commented on GitHub (Feb 20, 2014):

$ ps axf | grep 590

<!-- gh-comment-id:35662467 --> @retspen commented on GitHub (Feb 20, 2014): $ ps axf | grep 590
Author
Owner

@jaydeepch15 commented on GitHub (Feb 20, 2014):

[root@kvm ~]# ps axf | grep 590
14862 pts/1 S+ 0:00 | _ grep 590

<!-- gh-comment-id:35667925 --> @jaydeepch15 commented on GitHub (Feb 20, 2014): [root@kvm ~]# ps axf | grep 590 14862 pts/1 S+ 0:00 | _ grep 590
Author
Owner

@retspen commented on GitHub (Feb 20, 2014):

Did you have was running instance?

<!-- gh-comment-id:35668202 --> @retspen commented on GitHub (Feb 20, 2014): Did you have was running instance?
Author
Owner

@jaydeepch15 commented on GitHub (Feb 20, 2014):

Sorry I didn't get you.... which instance ?
If you are referring to VM which is running on KVM , then Yes one was running.

<!-- gh-comment-id:35669325 --> @jaydeepch15 commented on GitHub (Feb 20, 2014): Sorry I didn't get you.... which instance ? If you are referring to VM which is running on KVM , then Yes one was running.
Author
Owner

@retspen commented on GitHub (Feb 22, 2014):

At instance page hover on button console and you will show VNC port. Then on host sever run:

netstat -atn | grep (port VNC).

Does port listen?

<!-- gh-comment-id:35808525 --> @retspen commented on GitHub (Feb 22, 2014): At instance page hover on button console and you will show VNC port. Then on host sever run: netstat -atn | grep (port VNC). Does port listen?
Author
Owner

@jaydeepch15 commented on GitHub (Feb 24, 2014):

[root@kvm ~]# netstat -atn | grep 5900
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN

<!-- gh-comment-id:35923211 --> @jaydeepch15 commented on GitHub (Feb 24, 2014): [root@kvm ~]# netstat -atn | grep 5900 tcp 0 0 0.0.0.0:5900 0.0.0.0:\* LISTEN
Author
Owner

@retspen commented on GitHub (Feb 24, 2014):

Stop VNC daemon and run manualy:

$ sudo service webvirtmgr-novnc stop
$ /var/www/webvirtmgr/console/webvirtmgr-novnc

open VNC console and show console debug

<!-- gh-comment-id:35924124 --> @retspen commented on GitHub (Feb 24, 2014): Stop VNC daemon and run manualy: $ sudo service webvirtmgr-novnc stop $ /var/www/webvirtmgr/console/webvirtmgr-novnc open VNC console and show console debug
Author
Owner

@jaydeepch15 commented on GitHub (Feb 24, 2014):

As instructed ,

[root@kvm ~]# service webvirtmgr-novnc stop
Stopping webvirtmgr-novnc: [ OK ]
You have new mail in /var/spool/mail/root
[root@kvm ~]# /var/www/webvirtmgr/console/webvirtmgr-novnc
WebSocket server settings:

  • Listen on 0.0.0.0:6080

  • Flash security policy server

  • SSL/TLS support

  • proxying from 0.0.0.0:6080 to ignore:ignore

    1: 10.10.10.205: Plain non-SSL (ws://) WebSocket connection
    1: 10.10.10.205: Version hybi-13, base64: 'False'
    1: connecting to: 10.10.8.107:5900

    I am able to connect Console now
    How to fix it permanently?
    Thanks in advance.

<!-- gh-comment-id:35928346 --> @jaydeepch15 commented on GitHub (Feb 24, 2014): As instructed , [root@kvm ~]# service webvirtmgr-novnc stop Stopping webvirtmgr-novnc: [ OK ] You have new mail in /var/spool/mail/root [root@kvm ~]# /var/www/webvirtmgr/console/webvirtmgr-novnc WebSocket server settings: - Listen on 0.0.0.0:6080 - Flash security policy server - SSL/TLS support - proxying from 0.0.0.0:6080 to ignore:ignore 1: 10.10.10.205: Plain non-SSL (ws://) WebSocket connection 1: 10.10.10.205: Version hybi-13, base64: 'False' 1: connecting to: 10.10.8.107:5900 I am able to connect Console now How to fix it permanently? Thanks in advance.
Author
Owner

@retspen commented on GitHub (Feb 25, 2014):

Restart service and try again

<!-- gh-comment-id:35985359 --> @retspen commented on GitHub (Feb 25, 2014): Restart service and try again
Author
Owner

@jaydeepch15 commented on GitHub (Feb 25, 2014):

Already tried but unfortunately it didn't work.

<!-- gh-comment-id:36038000 --> @jaydeepch15 commented on GitHub (Feb 25, 2014): Already tried but unfortunately it didn't work.
Author
Owner

@retspen commented on GitHub (Feb 26, 2014):

$ git pull
$ sudo cp conf/initd/webvirtmgr-novnc-redhat /etc/init.d/webvirtmgr-novnc
$ sudo service webvirtmgr-novnc restart

<!-- gh-comment-id:36098850 --> @retspen commented on GitHub (Feb 26, 2014): $ git pull $ sudo cp conf/initd/webvirtmgr-novnc-redhat /etc/init.d/webvirtmgr-novnc $ sudo service webvirtmgr-novnc restart
Author
Owner

@johnerramirez commented on GitHub (Oct 15, 2015):

didn't help
I still cannot connect to console

<!-- gh-comment-id:148347097 --> @johnerramirez commented on GitHub (Oct 15, 2015): didn't help I still cannot connect to console
Author
Owner

@johnerramirez commented on GitHub (Oct 15, 2015):

this is my error

Failed to connect to server (code: 1006)

<!-- gh-comment-id:148347208 --> @johnerramirez commented on GitHub (Oct 15, 2015): this is my error Failed to connect to server (code: 1006)
Author
Owner

@johnerramirez commented on GitHub (Oct 15, 2015):

Im using a CentOS 6.7

<!-- gh-comment-id:148347556 --> @johnerramirez commented on GitHub (Oct 15, 2015): Im using a CentOS 6.7
Author
Owner

@johnerramirez commented on GitHub (Oct 15, 2015):

[root@WebVirtMgr initd]# yum list installed | grep novnc
novnc.noarch 0.5.1-2.el6 @epel

<!-- gh-comment-id:148348231 --> @johnerramirez commented on GitHub (Oct 15, 2015): [root@WebVirtMgr initd]# yum list installed | grep novnc novnc.noarch 0.5.1-2.el6 @epel
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#188
No description provided.