WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] how to list vnc port in xen 4.1

To: Diego Dave <diego.dave.s@xxxxxxxxx>
Subject: Re: [Xen-users] how to list vnc port in xen 4.1
From: Roberto Scudeller <beto.rvs@xxxxxxxxx>
Date: Thu, 25 Aug 2011 09:08:31 -0300
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 25 Aug 2011 05:11:01 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=LXhTzHMp3ZSI/bem1TIW8dE1ucjjXKkR+VmKCbKWJd8=; b=TQq6l0qf8aThu36g5Ps5wk1FnpdhVU0umyFrwNymhVPeL94tAu6GS34AIIuAIZPcXD 3CE5oNxzJv+oTBnztfyjmE+8UKjh1mJW+BcLzN07I9dE4WOoBcs71fWk3TcbxBucHoEf FCQojISpZOAbowLWNpbIhQjeULUSjLzO4paxQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAPbp-BkVm4gwgPM-uQXfvWiRMbueu1D9L0A78YU2En7ojKCP_g@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <CAOdhohc60S4gnLkdo4a5VmhNnKLCsEgckiZgivraozhtJtr4SA@xxxxxxxxxxxxxx> <CAPbp-BkVm4gwgPM-uQXfvWiRMbueu1D9L0A78YU2En7ojKCP_g@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>