|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] how to list vnc port in xen 4.1
Thanks Diego.
But I think '(vncdisplay 0)' is default, because there are 2 domains running: # xl list Name ID Mem VCPUs State Time(s) Domain-0 0 2048 8 r----- 6666.9
teste4 2 498 2 -b---- 177.3 teste3 3 498 2 -b---- 19.6
In both: (vnclisten 0.0.0.0) (vncdisplay 0)
(vncunused 1)
Listed by ps: # ps -ef|grep qemu root 2987 1 7 08:49 ? 00:00:51 qemu-dm -d 3 -domain-name teste3 -vnc 0.0.0.0:0,password -vncunused -videoram 8 -boot c -usb -usbdevice tablet -acpi -vcpus 2 -vcpu_avail 0x3 -net none -M xenfv
root 8741 1 5 Aug24 ? 00:55:41 qemu-dm -d 2 -domain-name teste4 -vnc 0.0.0.0:0,password -vncunused -videoram 8 -boot c -usb -usbdevice tablet -acpi -vcpus 2 -vcpu_avail 0x3 -net none -M xenfv
And their vnc ports: # lsof -nPi | grep `ps -ef| grep "domain-name teste3"| awk '{ print $2}'` qemu-dm 2987 root 17u IPv4 78997 TCP *:5901 (LISTEN) # lsof -nPi | grep `ps -ef| grep "domain-name teste4"| awk '{ print $2}'`
qemu-dm 8741 root 17u IPv4 16302 TCP *:5900 (LISTEN)
In older xen, 4.0.2, the command 'xm list --long' shows vncport: (vfb (vncunused 1) (vnc 1) (uuid 841ef3a4-214a-2722-a9b2-f3936a5f0e1c)
(location 0.0.0.0:5902) )
What's the new command for vncports list by domain?
Best regards,
-- Roberto Scudeller
2011/8/24 Diego Dave <diego.dave.s@xxxxxxxxx>
Hi Roberto,
"(vncdisplay 0)" means "The VM specified is listening on port 5900",
because 5900 is the first port for VNC. VNC display 9 will listen on
port 5909.
Also VNC clients allow you to connect to displays, in the format
"server:display", in your case "server:0".
But if you need connect with the port, you can make sure installing
nmap and run "nmap localhost" to see the available ports in Dom0.
Regards,
Diego
2011/8/24 Roberto Scudeller <beto.rvs@xxxxxxxxx>:
> Hi all,
>
> I try xen 4.1, but in my domU's HVM don't appear vnc port. I used in my
> domU.cfg the parameter 'vncunused=1'.
> How to get vnc port specified domU?
>
> In another Xen (4.0.2), I get vnc port with 'xm list --long domU'.
> (vfb
> (vncunused 1)
> (vnc 1)
> (uuid cb20995f-55ae-55ce-143d-dd6a2ecc5969)
> (location 0.0.0.0:5909)
> )
>
> In xen 4.1, with xl list --long:
> (vnc 1)
> (vnclisten 0.0.0.0)
> (vncdisplay 0)
> (vncunused 1)
>
>
> Any ideas?
>
> Best regards,
>
> --
> Roberto Scudeller
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|