[GH-ISSUE #189] Console can not open a vm #145

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

Originally created by @jinkk on GitHub (Jan 3, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/189

Hello , I like webvirtmgr . It is amazing . After I install webvirtmgr , everything goes well but the console can not show the VM. I use Ubuntu 13.10 . Console shows that Failed to connect to server (code: 1006) . I can use vncviewer to get to the VM.

Originally created by @jinkk on GitHub (Jan 3, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/189 Hello , I like webvirtmgr . It is amazing . After I install webvirtmgr , everything goes well but the console can not show the VM. I use Ubuntu 13.10 . Console shows that Failed to connect to server (code: 1006) . I can use vncviewer to get to the VM.
kerem closed this issue 2026-02-27 16:38:08 +03:00
Author
Owner

@retspen commented on GitHub (Jan 3, 2014):

$ telnet x.x.x.x 6080
$ netstat -atn | grep 6080
$ netstat -atn | grep 590

What show?

<!-- gh-comment-id:31516442 --> @retspen commented on GitHub (Jan 3, 2014): $ telnet x.x.x.x 6080 $ netstat -atn | grep 6080 $ netstat -atn | grep 590 What show?
Author
Owner

@jinkk commented on GitHub (Jan 6, 2014):

$ telnet 192.168.140.21 6080
Trying 192.168.140.21...
Connected to 192.168.140.21.
Escape character is '^]'.
Connection closed by foreign host.
~$ netstat -atn | grep 6080
tcp 0 0 0.0.0.0:6080 0.0.0.0:* LISTEN
tcp 0 0 192.168.140.21:6080 192.168.140.21:44582 TIME_WAIT
$ netstat -atn | grep 590
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN

<!-- gh-comment-id:31624249 --> @jinkk commented on GitHub (Jan 6, 2014): $ telnet 192.168.140.21 6080 Trying 192.168.140.21... Connected to 192.168.140.21. Escape character is '^]'. Connection closed by foreign host. ~$ netstat -atn | grep 6080 tcp 0 0 0.0.0.0:6080 0.0.0.0:\* LISTEN tcp 0 0 192.168.140.21:6080 192.168.140.21:44582 TIME_WAIT $ netstat -atn | grep 590 tcp 0 0 0.0.0.0:5900 0.0.0.0:\* LISTEN
Author
Owner

@retspen commented on GitHub (Jan 6, 2014):

In URL have token key?

<!-- gh-comment-id:31644034 --> @retspen commented on GitHub (Jan 6, 2014): In URL have token key?
Author
Owner

@jinkk commented on GitHub (Jan 7, 2014):

http://192.168.140.21:8000/console/?token=None, but I remember I got one token key once ,I can not get one now.

<!-- gh-comment-id:31707048 --> @jinkk commented on GitHub (Jan 7, 2014): http://192.168.140.21:8000/console/?token=None, but I remember I got one token key once ,I can not get one now.
Author
Owner

@jinkk commented on GitHub (Jan 7, 2014):

I use another pc set webvirtmgr , this time I got token ticke, but still can not show the VM.

<!-- gh-comment-id:31717624 --> @jinkk commented on GitHub (Jan 7, 2014): I use another pc set webvirtmgr , this time I got token ticke, but still can not show the VM.
Author
Owner

@retspen commented on GitHub (Jan 7, 2014):

In order console token open VM page.

<!-- gh-comment-id:31720272 --> @retspen commented on GitHub (Jan 7, 2014): In order console token open VM page.
Author
Owner

@jinkk commented on GitHub (Jan 8, 2014):

http://192.168.33.34:8000/console/?token=946872e6-fbba-9789-0561-3fe491862850 , is that I break some configuration?

<!-- gh-comment-id:31798983 --> @jinkk commented on GitHub (Jan 8, 2014): http://192.168.33.34:8000/console/?token=946872e6-fbba-9789-0561-3fe491862850 , is that I break some configuration?
Author
Owner

@retspen commented on GitHub (Jan 8, 2014):

Only if VM's create not in WebVirtMgr need open VM page for add connection info to database.

<!-- gh-comment-id:31806006 --> @retspen commented on GitHub (Jan 8, 2014): Only if VM's create not in WebVirtMgr need open VM page for add connection info to database.
Author
Owner

@jinkk commented on GitHub (Jan 8, 2014):

VM is created in WeVirtMgr , I choose the micro type .

<!-- gh-comment-id:31807620 --> @jinkk commented on GitHub (Jan 8, 2014): VM is created in WeVirtMgr , I choose the micro type .
Author
Owner

@retspen commented on GitHub (Jan 8, 2014):

Stop service webvirtmgr-novnc and run in console manual:

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

are you have connection in debug mode ?

<!-- gh-comment-id:31810173 --> @retspen commented on GitHub (Jan 8, 2014): Stop service webvirtmgr-novnc and run in console manual: $ sudo service webvirtmgr-novnc stop $ /var/www/webvirtmgr/console/webvirtmgr-novnc are you have connection in debug mode ?
Author
Owner

@jinkk commented on GitHub (Jan 8, 2014):

WebSocket server settings:

  • Listen on 0.0.0.0:6080

  • Flash security policy server

  • No SSL/TLS support (no cert file)

  • proxying from 0.0.0.0:6080 to ignore:ignore

    1: 192.168.33.34: Plain non-SSL (ws://) WebSocket connection
    1: 192.168.33.34: Version hybi-13, base64: 'False'
    1: connecting to: None:None
    1: handler exception: Connect mode requires a port
    I got this

<!-- gh-comment-id:31810607 --> @jinkk commented on GitHub (Jan 8, 2014): WebSocket server settings: - Listen on 0.0.0.0:6080 - Flash security policy server - No SSL/TLS support (no cert file) - proxying from 0.0.0.0:6080 to ignore:ignore 1: 192.168.33.34: Plain non-SSL (ws://) WebSocket connection 1: 192.168.33.34: Version hybi-13, base64: 'False' 1: connecting to: None:None 1: handler exception: Connect mode requires a port I got this
Author
Owner

@jinkk commented on GitHub (Jan 8, 2014):

It seems that a new WebSocket connection has not been established. I do not know why .

<!-- gh-comment-id:31811170 --> @jinkk commented on GitHub (Jan 8, 2014): It seems that a new WebSocket connection has not been established. I do not know why .
Author
Owner

@retspen commented on GitHub (Jan 8, 2014):

$ telnet 192.168.33.34 6080

show debug

<!-- gh-comment-id:31811222 --> @retspen commented on GitHub (Jan 8, 2014): $ telnet 192.168.33.34 6080 show debug
Author
Owner

@jinkk commented on GitHub (Jan 8, 2014):

~$ telnet 192.168.33.34 6080
Trying 192.168.33.34...
Connected to 192.168.33.34.
Escape character is '^]'.
Connection closed by foreign host.

<!-- gh-comment-id:31811322 --> @jinkk commented on GitHub (Jan 8, 2014): ~$ telnet 192.168.33.34 6080 Trying 192.168.33.34... Connected to 192.168.33.34. Escape character is '^]'. Connection closed by foreign host.
Author
Owner

@retspen commented on GitHub (Jan 8, 2014):

No, debug WebSocket

<!-- gh-comment-id:31811361 --> @retspen commented on GitHub (Jan 8, 2014): No, debug WebSocket
Author
Owner

@jinkk commented on GitHub (Jan 8, 2014):

1: 192.168.33.34: ignoring socket not ready

<!-- gh-comment-id:31811435 --> @jinkk commented on GitHub (Jan 8, 2014): 1: 192.168.33.34: ignoring socket not ready
Author
Owner

@retspen commented on GitHub (Jan 8, 2014):

$ telnet 192.168.33.34 5900 #or port use VM

show debug telnet connection

<!-- gh-comment-id:31817481 --> @retspen commented on GitHub (Jan 8, 2014): $ telnet 192.168.33.34 5900 #or port use VM show debug telnet connection
Author
Owner

@kadus commented on GitHub (Jan 8, 2014):

I got this problem,too. Here is what shows for
$ telnet 210.76.215.234 5900
Trying 210.76.215.234...
Connected to 210.76.215.234.
Escape character is '^]'.
RFB 003.008

<!-- gh-comment-id:31824553 --> @kadus commented on GitHub (Jan 8, 2014): I got this problem,too. Here is what shows for $ telnet 210.76.215.234 5900 Trying 210.76.215.234... Connected to 210.76.215.234. Escape character is '^]'. RFB 003.008
Author
Owner

@retspen commented on GitHub (Jan 8, 2014):

$ sqlite3 /var/www/webvirtmgr/webvirtmgr.sqlite3
sqlite> select * from instance_instance;

show your instaces

<!-- gh-comment-id:31831159 --> @retspen commented on GitHub (Jan 8, 2014): $ sqlite3 /var/www/webvirtmgr/webvirtmgr.sqlite3 sqlite> select \* from instance_instance; show your instaces
Author
Owner

@kadus commented on GitHub (Jan 8, 2014):

sqlite> select * from instance_instance;
sqlite>
I got nothing .

<!-- gh-comment-id:31839392 --> @kadus commented on GitHub (Jan 8, 2014): sqlite> select \* from instance_instance; sqlite> I got nothing .
Author
Owner

@retspen commented on GitHub (Jan 8, 2014):

$ ls -la /var/www/webvirtmgr/webvirtmgr.sqlite3

show permission

<!-- gh-comment-id:31839655 --> @retspen commented on GitHub (Jan 8, 2014): $ ls -la /var/www/webvirtmgr/webvirtmgr.sqlite3 show permission
Author
Owner

@kadus commented on GitHub (Jan 8, 2014):

-rw-r--r-- 1 www-data www-data 38912 1月 7 09:25 /var/www/webvirtmgr/webvirtmgr.sqlite3

<!-- gh-comment-id:31839889 --> @kadus commented on GitHub (Jan 8, 2014): -rw-r--r-- 1 www-data www-data 38912 1月 7 09:25 /var/www/webvirtmgr/webvirtmgr.sqlite3
Author
Owner

@retspen commented on GitHub (Jan 8, 2014):

create VM in WebVirtMgr ?

<!-- gh-comment-id:31839959 --> @retspen commented on GitHub (Jan 8, 2014): create VM in WebVirtMgr ?
Author
Owner

@kadus commented on GitHub (Jan 8, 2014):

Yes,I can see the created VM through vncviewer. The address is http://210.76.212.154:5900

<!-- gh-comment-id:31840179 --> @kadus commented on GitHub (Jan 8, 2014): Yes,I can see the created VM through vncviewer. The address is http://210.76.212.154:5900
Author
Owner

@retspen commented on GitHub (Jan 8, 2014):

When you create VM in DataBase add line with VM UUID if VM created not in WebVirtMgr panel need open VM page and UUID auto write to DataBase. Open VM page and show your DataBase items.

$ sqlite3 /var/www/webvirtmgr/webvirtmgr.sqlite3
sqlite> select * from instance_instance;

<!-- gh-comment-id:31840908 --> @retspen commented on GitHub (Jan 8, 2014): When you create VM in DataBase add line with VM UUID if VM created not in WebVirtMgr panel need open VM page and UUID auto write to DataBase. Open VM page and show your DataBase items. $ sqlite3 /var/www/webvirtmgr/webvirtmgr.sqlite3 sqlite> select \* from instance_instance;
Author
Owner

@kadus commented on GitHub (Jan 8, 2014):

My new created VM's name is two .Is the VM page the address http://210.76.212.154:8000/instance/1/two/? I open that page, I still can't get instance info.

<!-- gh-comment-id:31842993 --> @kadus commented on GitHub (Jan 8, 2014): My new created VM's name is two .Is the VM page the address http://210.76.212.154:8000/instance/1/two/? I open that page, I still can't get instance info.
Author
Owner

@retspen commented on GitHub (Jan 8, 2014):

Why you use developer mode? Setup Apache

<!-- gh-comment-id:31843551 --> @retspen commented on GitHub (Jan 8, 2014): Why you use developer mode? Setup Apache
Author
Owner

@kadus commented on GitHub (Jan 8, 2014):

I got it , thanks a lot. I am a beginner of django . Thank you for your patience!

<!-- gh-comment-id:31844627 --> @kadus commented on GitHub (Jan 8, 2014): I got it , thanks a lot. I am a beginner of django . Thank you for your patience!
Author
Owner

@jinkk commented on GitHub (Jan 9, 2014):

I know why this happen , it is something wrong with the apache2 configuration . The installation say add file webvirtmgr.conf in conf.d directory (Debian, Ubuntu: "/etc/apache2/conf.d" ). it should be at /etc/apache2/apache2.conf .

<!-- gh-comment-id:31893447 --> @jinkk commented on GitHub (Jan 9, 2014): I know why this happen , it is something wrong with the apache2 configuration . The installation say add file webvirtmgr.conf in conf.d directory (Debian, Ubuntu: "/etc/apache2/conf.d" ). it should be at /etc/apache2/apache2.conf .
Author
Owner

@retspen commented on GitHub (Jan 9, 2014):

What's the difference where you put apache config for virtual host?

<!-- gh-comment-id:31903011 --> @retspen commented on GitHub (Jan 9, 2014): What's the difference where you put apache config for virtual host?
Author
Owner

@jinkk commented on GitHub (Jan 9, 2014):

Well , It seems that I use vim create /etc/apache2/conf.d file. I should had noticed this .Thanks for your help.
Last question, I see your serverlog app, is there will be a new log function soon?

<!-- gh-comment-id:31908034 --> @jinkk commented on GitHub (Jan 9, 2014): Well , It seems that I use vim create /etc/apache2/conf.d file. I should had noticed this .Thanks for your help. Last question, I see your serverlog app, is there will be a new log function soon?
Author
Owner

@retspen commented on GitHub (Jan 9, 2014):

Yes, coming soon!

<!-- gh-comment-id:31908283 --> @retspen commented on GitHub (Jan 9, 2014): Yes, coming soon!
Author
Owner

@jinkk commented on GitHub (Jan 9, 2014):

Looking forward to !

<!-- gh-comment-id:31908705 --> @jinkk commented on GitHub (Jan 9, 2014): Looking forward to !
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#145
No description provided.