mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-25 23:55:57 +03:00
[GH-ISSUE #241] webvirtmgr not working #188
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
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
@retspen commented on GitHub (Feb 20, 2014):
$ netstat -awtun | grep 6080
$ ps axf | grep webvirtmgr
Show your date
@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
@retspen commented on GitHub (Feb 20, 2014):
$ ps axf | grep 590
@jaydeepch15 commented on GitHub (Feb 20, 2014):
[root@kvm ~]# ps axf | grep 590
14862 pts/1 S+ 0:00 | _ grep 590
@retspen commented on GitHub (Feb 20, 2014):
Did you have was running instance?
@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.
@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?
@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
@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
@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.
@retspen commented on GitHub (Feb 25, 2014):
Restart service and try again
@jaydeepch15 commented on GitHub (Feb 25, 2014):
Already tried but unfortunately it didn't work.
@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
@johnerramirez commented on GitHub (Oct 15, 2015):
didn't help
I still cannot connect to console
@johnerramirez commented on GitHub (Oct 15, 2015):
this is my error
Failed to connect to server (code: 1006)
@johnerramirez commented on GitHub (Oct 15, 2015):
Im using a CentOS 6.7
@johnerramirez commented on GitHub (Oct 15, 2015):
[root@WebVirtMgr initd]# yum list installed | grep novnc
novnc.noarch 0.5.1-2.el6 @epel