[one-users] Confused about VNC ports with the KVM hypervisor
Javier Fontan
jfontan at opennebula.org
Tue Jan 28 03:45:14 PST 2014
The way to specify VNC ports in OpenNebula is the TCP port, not the
VNC port number. This is passed to libvirt that will convert it to VNC
port (-5900) as this is the way qemu/kvm wants it.
>From libvirt documentation
(http://libvirt.org/formatdomain.html#elementsGraphics):
--8<------
The port attribute specifies the TCP port number
------>8--
>From qemu documentation (http://wiki.qemu.org/download/qemu-doc.html):
--8<------
'host:d'
TCP connections will only be allowed from host on display d. By
convention the TCP port is 5900+d. Optionally, host can be omitted in
which case the server will accept connections from any host.
------>8--
On Thu, Jan 23, 2014 at 7:05 PM, Gerry O'Brien <gerry at scss.tcd.ie> wrote:
>
> Hi,
>
> I'm a little confused about VNC ports with the KVM hypervisor. From the
> documentation excerpt below I would have expected that the KVM would have
> had -vnc 0.0.0.0:7744 instead of -vnc 0.0.0.0:1844. Below is also the
> Sunstone Graphice part of the template for the Vm.
> The machine was generated by the OCCI-server. I would like to firewall
> the VM but allow access for ports > 5900 so that users can get access to the
> VNC.
>
> What is the real port on the host for KVM with -vnc 0.0.0.0:1844?
>
> Could someone clarify this for me.
>
> Thanks,
> Gerry
>
>
>
>
> http://docs.opennebula.org/pdf/4.4/opennebula_4.4_user_guide.pdf
>
> Warning:
> For KVM hypervisor the port number is a real one, not the VNC port. So for
> VNC port 0 you should
> specify 5900, for port 1 is 5901 and so on.
>
>
> GRAPHICS
> LISTEN 0.0.0.0
> PORT 7744
> TYPE vnc
>
>
>
>
>
> oneadmin 26348 1 39 17:48 ? 00:00:27 /usr/bin/kvm -S -M pc-1.1
> -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name one-1844 -uuid
> e570e501-f90e-fcc3-215c-43d0ba828349 -no-user-config -nodefaults -chardev
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-1844.monitor,server,nowait
> -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown
> -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive
> file=/var/lib/one//datastores/103/1844/disk.0,if=none,id=drive-ide0-0-0,format=qcow2,cache=none
> -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
> -netdev tap,fd=23,id=hostnet0 -device
> rtl8139,netdev=hostnet0,id=net0,mac=02:00:0a:3e:00:04,bus=pci.0,addr=0x3
> -vnc 0.0.0.0:1844 -vga cirrus -device
> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
>
> --
> Gerry O'Brien
>
> Systems Manager
> School of Computer Science and Statistics
> Trinity College Dublin
> Dublin 2
> IRELAND
>
> 00 353 1 896 1341
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
--
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
More information about the Users
mailing list