mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-26 16:15:50 +03:00
[GH-ISSUE #189] Console can not open a vm #145
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 @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.
@retspen commented on GitHub (Jan 3, 2014):
$ telnet x.x.x.x 6080
$ netstat -atn | grep 6080
$ netstat -atn | grep 590
What show?
@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
@retspen commented on GitHub (Jan 6, 2014):
In URL have token key?
@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.
@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.
@retspen commented on GitHub (Jan 7, 2014):
In order console token open VM page.
@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?
@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.
@jinkk commented on GitHub (Jan 8, 2014):
VM is created in WeVirtMgr , I choose the micro type .
@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 ?
@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
@jinkk commented on GitHub (Jan 8, 2014):
It seems that a new WebSocket connection has not been established. I do not know why .
@retspen commented on GitHub (Jan 8, 2014):
$ telnet 192.168.33.34 6080
show debug
@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.
@retspen commented on GitHub (Jan 8, 2014):
No, debug WebSocket
@jinkk commented on GitHub (Jan 8, 2014):
1: 192.168.33.34: ignoring socket not ready
@retspen commented on GitHub (Jan 8, 2014):
$ telnet 192.168.33.34 5900 #or port use VM
show debug telnet connection
@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
@retspen commented on GitHub (Jan 8, 2014):
$ sqlite3 /var/www/webvirtmgr/webvirtmgr.sqlite3
sqlite> select * from instance_instance;
show your instaces
@kadus commented on GitHub (Jan 8, 2014):
sqlite> select * from instance_instance;
sqlite>
I got nothing .
@retspen commented on GitHub (Jan 8, 2014):
$ ls -la /var/www/webvirtmgr/webvirtmgr.sqlite3
show permission
@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
@retspen commented on GitHub (Jan 8, 2014):
create VM in WebVirtMgr ?
@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
@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;
@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.
@retspen commented on GitHub (Jan 8, 2014):
Why you use developer mode? Setup Apache
@kadus commented on GitHub (Jan 8, 2014):
I got it , thanks a lot. I am a beginner of django . Thank you for your patience!
@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 .
@retspen commented on GitHub (Jan 9, 2014):
What's the difference where you put apache config for virtual host?
@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?
@retspen commented on GitHub (Jan 9, 2014):
Yes, coming soon!
@jinkk commented on GitHub (Jan 9, 2014):
Looking forward to !