mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-25 23:55:57 +03:00
[GH-ISSUE #69] Only one VNC console #58
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 @JeroenOmaha on GitHub (Jun 13, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/69
Running multiple virtual machines I can only connect to the first VM I choose with the VNC console. Even if I close the console I'm not able to connect to another VM. I'm getting "connection timeout". The initial one still connects.
@retspen commented on GitHub (Jun 13, 2013):
How you run WebVirtMgr?
@JeroenOmaha commented on GitHub (Jun 13, 2013):
Virtualhost on Ubuntu 12.10
(btw thanks for creating Webvirtmgr, great work!)
@retspen commented on GitHub (Jun 13, 2013):
Thanks.
You setup apache or run ./manage.py runserver ?
@JeroenOmaha commented on GitHub (Jun 13, 2013):
I setup apache with a virtual host in sites-available and then activate with a2ensite
BTW I run the VM's in user networking not a public bridge
@retspen commented on GitHub (Jun 19, 2013):
Can you show your all process where install proces?
when you open second VNC window
@JeroenOmaha commented on GitHub (Jun 20, 2013):
It’s not running at all when I try to start the second vnc session so probably I’ve configured something wrong.. I’ll look into it..
Van: Anatoliy Guskov [mailto:notifications@github.com]
Verzonden: woensdag 19 juni 2013 12:31
Aan: retspen/webvirtmgr
CC: Jeroen T. Bos (Bossers & Cnossen BV)
Onderwerp: Re: [webvirtmgr] Only one VNC console (#69)
Can you show your all process where install proces?
$ ps axf | grep websokify
when you open second VNC window
—
Reply to this email directly or view it on GitHubhttps://github.com/retspen/webvirtmgr/issues/69#issuecomment-19675316.
@retspen commented on GitHub (Jun 20, 2013):
Sorry, my fault need:
@JeroenOmaha commented on GitHub (Jun 20, 2013):
Ahh sorry, maybe I should have read better:
$ ps axf | grep websockify:
root@Meterkast:~/.cache/libvirt# ps axf | grep websockify
2187 pts/0 S+ 0:00 _ grep --color=auto websockify
31717 ? S 0:00 /usr/bin/python /usr/bin/websockify 6081 192.168.6.30:5901 -D
32356 ? S 0:00 /usr/bin/python /usr/bin/websockify 6080 192.168.6.30:5900 -D
32363 ? Z 0:00 _ [websockify]
Van: Anatoliy Guskov [mailto:notifications@github.com]
Verzonden: donderdag 20 juni 2013 10:24
Aan: retspen/webvirtmgr
CC: Jeroen T. Bos (Bossers & Cnossen BV)
Onderwerp: Re: [webvirtmgr] Only one VNC console (#69)
Sorry, my fault need:
$ ps axf | grep websockify
—
Reply to this email directly or view it on GitHubhttps://github.com/retspen/webvirtmgr/issues/69#issuecomment-19737014.
@retspen commented on GitHub (Jun 20, 2013):
http://kanaka.github.io/noVNC/noVNC/vnc.html - open this page twice. 1 page - connect 192.168.6.30 port 6080; 2 page 192.168.6.30 port 6081.
Password view:
$ virsh edit your_vm_name
@JeroenOmaha commented on GitHub (Jun 20, 2013):
How is it possible to connect to my internal IP adresses through an external webbased VNC console?
Van: Anatoliy Guskov [mailto:notifications@github.com]
Verzonden: donderdag 20 juni 2013 10:37
Aan: retspen/webvirtmgr
CC: Jeroen T. Bos (Bossers & Cnossen BV)
Onderwerp: Re: [webvirtmgr] Only one VNC console (#69)
http://kanaka.github.io/noVNC/noVNC/vnc.html - open this page twice. 1 page - connect 192.168.6.30 port 6080; 2 page 192.168.6.30 port 6081.
Password view:
$ virsh edit your_vm_name
—
Reply to this email directly or view it on GitHubhttps://github.com/retspen/webvirtmgr/issues/69#issuecomment-19737525.
@retspen commented on GitHub (Jun 22, 2013):
Update WebVirtMgr and setup new noVNC server.
@JeroenOmaha commented on GitHub (Jun 22, 2013):
Hi Anatoliy,
There’s another strange thing, starting a vnc session from webvirtmgr after starting a vm shows the bootprocess of the vm but it stops showing output randomly halfway the bootprocess. I do know that the VM is running correctly because I can SSH to it.
Regards,
Jeroen
Van: Anatoliy Guskov [mailto:notifications@github.com]
Verzonden: zaterdag 22 juni 2013 12:57
Aan: retspen/webvirtmgr
CC: Jeroen T. Bos (Bossers & Cnossen BV)
Onderwerp: Re: [webvirtmgr] Only one VNC console (#69)
Update WebVirtMgr and setup new noVNC server.
—
Reply to this email directly or view it on GitHubhttps://github.com/retspen/webvirtmgr/issues/69#issuecomment-19854886.
@retspen commented on GitHub (Jun 22, 2013):
Fix this bug (COOKIE not refresh)
@JeroenOmaha commented on GitHub (Jun 24, 2013):
Hi Anatoly,
If I do a grep on ps aux with vnc I see two running instances with each their VNC service on differtent portnumbers:
root 15721 99.9 0.1 1475736 17824 ? Sl Jun23 833:53 /usr/bin/kvm -name Zabbix -S -M pc-1.2 -cpu SandyBridge,+osxsave,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -enable-kvm -m 1024 -smp 2,sockets=2,cores=1,threads=1 -uuid bc97a663-113e-9775-accf-6fdf700dc281 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/Zabbix.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot order=cd,menu=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/mnt/KVM_NFS/Zabbix.img,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -drive file=/mnt/media/ISO/Linux/ubuntu-13.04-server-amd64.iso,if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=22,id=hostnet0,vhost=on,vhostfd=24 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:6a:e3:c5,bus=pci.0,addr=0x3 -device usb-tablet,id=input0 -vnc 0.0.0.0:1 -k en-us -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
root 25258 11.9 13.1 6821424 2153976 ? Rl Jun23 97:41 /usr/bin/kvm -name Windows8 -S -M pc-1.2 -cpu SandyBridge,+osxsave,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -enable-kvm -m 2048 -smp 2,sockets=2,cores=1,threads=1 -uuid 3c28e23b-6709-616f-38cd-6cc4df94be02 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/Windows8.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot order=cd,menu=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/mnt/KVM_SSD/Windows8.img,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -drive file=/mnt/media/ISO/Microsoft/nl_windows_8_enterprise_x64_dvd_917912.iso,if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=22,id=hostnet0,vhost=on,vhostfd=23 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:32:e1:d9,bus=pci.0,addr=0x3 -device usb-tablet,id=input0 -vnc 0.0.0.0:0 -k en-us -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
Only the first connected VM with VNC keeps connecting.
Jeroen
Van: Anatoliy Guskov [mailto:notifications@github.com]
Verzonden: zaterdag 22 juni 2013 22:44
Aan: retspen/webvirtmgr
CC: Jeroen T. Bos (Bossers & Cnossen BV)
Onderwerp: Re: [webvirtmgr] Only one VNC console (#69)
Fix this bug (COOKIE not refresh)
—
Reply to this email directly or view it on GitHubhttps://github.com/retspen/webvirtmgr/issues/69#issuecomment-19864394.
@retspen commented on GitHub (Jun 24, 2013):
Show your COOKIE when you open fist console and second console.
@JeroenOmaha commented on GitHub (Jun 24, 2013):
HI Anatoliy,
What do you mean exactly? The Cookie you see in Chrome under advanced? Like:
[cid:image001.png@01CE70D7.96959CB0]
Jeroen
Van: Anatoliy Guskov [mailto:notifications@github.com]
Verzonden: maandag 24 juni 2013 10:34
Aan: retspen/webvirtmgr
CC: Jeroen T. Bos (Bossers & Cnossen BV)
Onderwerp: Re: [webvirtmgr] Only one VNC console (#69)
Show your COOKIE when you open fist console and second console.
—
Reply to this email directly or view it on GitHubhttps://github.com/retspen/webvirtmgr/issues/69#issuecomment-19894867.
@retspen commented on GitHub (Jun 24, 2013):
Need token value in COOKIE. Click favicon in address bar then show cookie - chrome.
@JeroenOmaha commented on GitHub (Jun 24, 2013):
Here you go, it both gives the same token value although the first one says: /vnc/1/Zabbix and the second one /vnc/1/Windows8
[cid:image001.png@01CE70E1.69569EC0]
Van: Anatoliy Guskov [mailto:notifications@github.com]
Verzonden: maandag 24 juni 2013 13:12
Aan: retspen/webvirtmgr
CC: Jeroen T. Bos (Bossers & Cnossen BV)
Onderwerp: Re: [webvirtmgr] Only one VNC console (#69)
Need token value in COOKIE. Click favicon in address bar then show cookie - chrome.
—
Reply to this email directly or view it on GitHubhttps://github.com/retspen/webvirtmgr/issues/69#issuecomment-19900846.
@retspen commented on GitHub (Jun 25, 2013):
Your attach's not showing. Show your file vnc/views.py
@JeroenOmaha commented on GitHub (Jun 26, 2013):
Hi Anatoliy,
Sorry for the delay, very busy day yesterday, the is my views.py:
-- coding: utf-8 --
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from django.template import RequestContext
from vds.models import Host, Vm
from libvirt_func import libvirt_conn, vnc_get_port
import re
def vnc(request, host_id, vname):
"""
regards,
Jeroen
Van: Anatoliy Guskov [mailto:notifications@github.com]
Verzonden: dinsdag 25 juni 2013 8:25
Aan: retspen/webvirtmgr
CC: Jeroen T. Bos (Bossers & Cnossen BV)
Onderwerp: Re: [webvirtmgr] Only one VNC console (#69)
Your attach's not showing. Show your file vnc/views.py:
—
Reply to this email directly or view it on GitHubhttps://github.com/retspen/webvirtmgr/issues/69#issuecomment-19955563.
@retspen commented on GitHub (Jun 26, 2013):
Open first "Console" and second "Console". Show your cookie parameter "token" first and second window.
@JeroenOmaha commented on GitHub (Jun 26, 2013):
I think you mean this:
[cid:image001.png@01CE7256.A241FAB0]
[cid:image002.png@01CE7256.A241FAB0]
Different tokens but same output:
[cid:image003.png@01CE7256.A241FAB0]
[cid:image004.png@01CE7256.A241FAB0]
Van: Anatoliy Guskov [mailto:notifications@github.com]
Verzonden: woensdag 26 juni 2013 10:10
Aan: retspen/webvirtmgr
CC: Jeroen T. Bos (Bossers & Cnossen BV)
Onderwerp: Re: [webvirtmgr] Only one VNC console (#69)
Open first "Console" and second "Console". Show your cookie parameter "token" first and second window.
[cookie]https://f.cloud.github.com/assets/688722/708032/a6c65890-de37-11e2-908e-af1fff5b3514.jpg
—
Reply to this email directly or view it on GitHubhttps://github.com/retspen/webvirtmgr/issues/69#issuecomment-20032564.
@retspen commented on GitHub (Jun 26, 2013):
Not view. Attach via GitHub please.
@JeroenOmaha commented on GitHub (Jun 26, 2013):
Hereby the screenshots:
@JeroenOmaha commented on GitHub (Jul 2, 2013):
Working now.. not sure if it was an update of webvirtmgr or adding these to lines to nova.conf:
vncserver_listen=0.0.0.0
vncserver_ proxyclient_ address =127.0.0.1
@retspen commented on GitHub (Jul 2, 2013):
If need settings like nova (OpenStack) it found vnc/webvirtmgr-novnc