[GH-ISSUE #69] Only one VNC console #58

Closed
opened 2026-02-27 16:00:54 +03:00 by kerem · 26 comments
Owner

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.

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.
kerem closed this issue 2026-02-27 16:00:54 +03:00
Author
Owner

@retspen commented on GitHub (Jun 13, 2013):

How you run WebVirtMgr?

<!-- gh-comment-id:19391300 --> @retspen commented on GitHub (Jun 13, 2013): How you run WebVirtMgr?
Author
Owner

@JeroenOmaha commented on GitHub (Jun 13, 2013):

Virtualhost on Ubuntu 12.10

(btw thanks for creating Webvirtmgr, great work!)

<!-- gh-comment-id:19410964 --> @JeroenOmaha commented on GitHub (Jun 13, 2013): Virtualhost on Ubuntu 12.10 (btw thanks for creating Webvirtmgr, great work!)
Author
Owner

@retspen commented on GitHub (Jun 13, 2013):

Thanks.

You setup apache or run ./manage.py runserver ?

<!-- gh-comment-id:19415577 --> @retspen commented on GitHub (Jun 13, 2013): Thanks. You setup apache or run ./manage.py runserver ?
Author
Owner

@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

<!-- gh-comment-id:19415902 --> @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
Author
Owner

@retspen commented on GitHub (Jun 19, 2013):

Can you show your all process where install proces?

$ ps axf | grep websokify

when you open second VNC window

<!-- gh-comment-id:19675316 --> @retspen commented on GitHub (Jun 19, 2013): Can you show your all process where install proces? ``` $ ps axf | grep websokify ``` when you open second VNC window
Author
Owner

@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.

<!-- gh-comment-id:19736352 --> @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.
Author
Owner

@retspen commented on GitHub (Jun 20, 2013):

Sorry, my fault need:

$ ps axf | grep websockify
<!-- gh-comment-id:19737014 --> @retspen commented on GitHub (Jun 20, 2013): Sorry, my fault need: ``` $ ps axf | grep websockify ```
Author
Owner

@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.

<!-- gh-comment-id:19737087 --> @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] <defunct> 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.
Author
Owner

@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

<!-- gh-comment-id:19737525 --> @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
Author
Owner

@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.

<!-- gh-comment-id:19753612 --> @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.
Author
Owner

@retspen commented on GitHub (Jun 22, 2013):

Update WebVirtMgr and setup new noVNC server.

<!-- gh-comment-id:19854886 --> @retspen commented on GitHub (Jun 22, 2013): Update WebVirtMgr and setup new noVNC server.
Author
Owner

@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.

<!-- gh-comment-id:19862640 --> @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.
Author
Owner

@retspen commented on GitHub (Jun 22, 2013):

Fix this bug (COOKIE not refresh)

<!-- gh-comment-id:19864394 --> @retspen commented on GitHub (Jun 22, 2013): Fix this bug (COOKIE not refresh)
Author
Owner

@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.

<!-- gh-comment-id:19892871 --> @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.
Author
Owner

@retspen commented on GitHub (Jun 24, 2013):

Show your COOKIE when you open fist console and second console.

<!-- gh-comment-id:19894867 --> @retspen commented on GitHub (Jun 24, 2013): Show your COOKIE when you open fist console and second console.
Author
Owner

@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.

<!-- gh-comment-id:19899660 --> @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.
Author
Owner

@retspen commented on GitHub (Jun 24, 2013):

Need token value in COOKIE. Click favicon in address bar then show cookie - chrome.

<!-- gh-comment-id:19900846 --> @retspen commented on GitHub (Jun 24, 2013): Need token value in COOKIE. Click favicon in address bar then show cookie - chrome.
Author
Owner

@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.

<!-- gh-comment-id:19902180 --> @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.
Author
Owner

@retspen commented on GitHub (Jun 25, 2013):

Your attach's not showing. Show your file vnc/views.py

<!-- gh-comment-id:19955563 --> @retspen commented on GitHub (Jun 25, 2013): Your attach's not showing. Show your file vnc/views.py
Author
Owner

@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):
"""

VNC vm's block

"""

if not request.user.is_authenticated():
    return HttpResponseRedirect('/login')

host = Host.objects.get(id=host_id)
conn = libvirt_conn(host)

if type(conn) == dict:
    return HttpResponseRedirect('/overview/%s/' % host_id)
else:
    vnc_port = vnc_get_port(conn, vname)
    try:
        vm = Vm.objects.get(host=host_id, vname=vname)
        socket_port = 6080
        socket_host = request.META['HTTP_HOST']
        if ':' in socket_host:
            socket_host = re.sub('\:[0-9]+', '', socket_host)
    except:
        vm = None

    conn.close()

response = render_to_response('vnc.html', locals(), context_instance=Reques$
response.set_cookie('token', vname)
return response

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.

<!-- gh-comment-id:20031456 --> @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): """ ``` VNC vm's block """ if not request.user.is_authenticated(): return HttpResponseRedirect('/login') host = Host.objects.get(id=host_id) conn = libvirt_conn(host) if type(conn) == dict: return HttpResponseRedirect('/overview/%s/' % host_id) else: vnc_port = vnc_get_port(conn, vname) try: vm = Vm.objects.get(host=host_id, vname=vname) socket_port = 6080 socket_host = request.META['HTTP_HOST'] if ':' in socket_host: socket_host = re.sub('\:[0-9]+', '', socket_host) except: vm = None conn.close() response = render_to_response('vnc.html', locals(), context_instance=Reques$ response.set_cookie('token', vname) return response ``` 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.
Author
Owner

@retspen commented on GitHub (Jun 26, 2013):

Open first "Console" and second "Console". Show your cookie parameter "token" first and second window.

cookie

<!-- gh-comment-id:20032564 --> @retspen commented on GitHub (Jun 26, 2013): 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)
Author
Owner

@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.

<!-- gh-comment-id:20032910 --> @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.
Author
Owner

@retspen commented on GitHub (Jun 26, 2013):

Not view. Attach via GitHub please.

<!-- gh-comment-id:20033302 --> @retspen commented on GitHub (Jun 26, 2013): Not view. Attach via GitHub please.
Author
Owner

@JeroenOmaha commented on GitHub (Jun 26, 2013):

Hereby the screenshots:

win8

zabbix

<!-- gh-comment-id:20042655 --> @JeroenOmaha commented on GitHub (Jun 26, 2013): Hereby the screenshots: ![win8](https://f.cloud.github.com/assets/4686395/708961/8ca05552-de59-11e2-925d-44339c1e46bf.png) ![zabbix](https://f.cloud.github.com/assets/4686395/708963/92e68b02-de59-11e2-9deb-8f414ccb424f.png)
Author
Owner

@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

<!-- gh-comment-id:20361319 --> @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
Author
Owner

@retspen commented on GitHub (Jul 2, 2013):

If need settings like nova (OpenStack) it found vnc/webvirtmgr-novnc

<!-- gh-comment-id:20363787 --> @retspen commented on GitHub (Jul 2, 2013): If need settings like nova (OpenStack) it found vnc/webvirtmgr-novnc
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#58
No description provided.